Commit c8a474cf authored by wildfirecode13's avatar wildfirecode13

update

parent 190bfaaf
......@@ -12,6 +12,10 @@
"keys": "comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common"
},
{
"keys": "draw_bg.png,draw_okbtn.png",
"name": "draw"
},
{
"keys": "index_bg.png",
"name": "index"
......
......@@ -459,7 +459,44 @@
}
}
]
},
{
"name": "draw",
"x": 67,
"y": 319,
"type": "container",
"children": [
{
"name": "draw_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "draw_bg.png"
}
},
{
"name": "draw_name",
"x": 248,
"y": 331,
"type": "text",
"props": {
"text": "提现成功",
"size": 30,
"fillColor": "#5889ce",
"textAlpha": 1
}
},
{
"name": "draw_okbtn",
"x": 126,
"y": 724,
"type": "sprite",
"props": {
"source": "draw_okbtn.png"
}
}
]
}
]
}
\ No newline at end of file
......@@ -12,7 +12,10 @@ export const ResJson = {
"keys": "comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common"
},
{
"keys": "draw_bg.png,draw_okbtn.png",
"name": "draw"
},
{
"keys": "index_bg.png",
"name": "index"
......
......@@ -459,7 +459,44 @@ export const SkinJson ={
}
}
]
},
{
"name": "draw",
"x": 67,
"y": 319,
"type": "container",
"children": [
{
"name": "draw_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "draw_bg.png"
}
},
{
"name": "draw_name",
"x": 248,
"y": 331,
"type": "text",
"props": {
"text": "提现成功",
"size": 30,
"fillColor": "#5889ce",
"textAlpha": 1
}
},
{
"name": "draw_okbtn",
"x": 126,
"y": 724,
"type": "sprite",
"props": {
"source": "draw_okbtn.png"
}
}
]
}
]
}
\ No newline at end of file
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import getObject from "../getObject";
export class DrawPanel extends Panel {
initUi() {
super.initUi();
// var skin = RES.getSkinDataByName(this.skinName);
// this.position.set(skin.x, skin.y);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
}
//两个按钮都是关闭作用
get closeBtns() {
return [getObject(this, 'draw_closebtn'), getObject(this, 'draw_okbtn')];
}
get groupNames() { return ["draw"] }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment