Commit 8c3339fd authored by wildfirecode's avatar wildfirecode

1

parent 5212588c
......@@ -18,6 +18,8 @@
"resource/skins/ui/SliderSkin.exml",
"resource/skins/PrizeSkin.exml",
"resource/skins/NoPrizeSkin.exml",
"resource/skins/TransRecordSkin.exml",
"resource/skins/TransRecordItemSkin.exml",
......
......@@ -41,6 +41,10 @@ import ConfirmPanel from './yazuwei/ConfirmPanel';
import JoinShareScene from './yazuwei/JoinShareScene';
import Share2Scene from './yazuwei/Share2Scene';
import PKScorePanel from './yazuwei/PKScorePanel';
import ShareStarterScene from './yazuwei/ShareStarterScene';
import TransRecordPanel from './yazuwei/TransRecordPanel';
import SloganPanel from './yazuwei/SloganPanel';
import TeamShareScene from './yazuwei/TeamShareScene';
class Main extends MainBase {
protected registerModules() {
......@@ -53,6 +57,7 @@ class Main extends MainBase {
PanelCtrl.instance.registerClass(ModuleTypes.MSG_PANEL, Msg);
PanelCtrl.instance.registerClass(ModuleTypes.RULE_PANEL, RulePanel);
PanelCtrl.instance.registerClass(ModuleTypes.ConfirmPanel, ConfirmPanel);
PanelCtrl.instance.registerClass(ModuleTypes.SloganPanel, SloganPanel);
PanelCtrl.instance.registerClass(ModuleTypes.RANK_PANEL,RankPanel);
PanelCtrl.instance.registerClass(ModuleTypes.COUNTDOWN_PANEL,CountDownPanel);
......@@ -70,8 +75,11 @@ class Main extends MainBase {
SceneCtrl.instance.registerClass(ModuleTypes.CertificateScene,CertificateScene);
SceneCtrl.instance.registerClass(ModuleTypes.JoinShareScene,JoinShareScene);
SceneCtrl.instance.registerClass(ModuleTypes.Share2Scene,Share2Scene);
SceneCtrl.instance.registerClass(ModuleTypes.TeamShareScene,TeamShareScene);
SceneCtrl.instance.registerClass(ModuleTypes.ShareStarterScene,ShareStarterScene);
PanelCtrl.instance.registerClass(ModuleTypes.TransRecordPanel,TransRecordPanel);
PanelCtrl.instance.registerClass(ModuleTypes.GUIDE_PANEL,GuidePanel);
PanelCtrl.instance.registerClass(ModuleTypes.PLACE_PANEL,PlacePanel)
PanelCtrl.instance.registerClass(ModuleTypes.NOCREDITS_PANEL,NoCreditsPanel)
......@@ -149,8 +157,8 @@ class Main extends MainBase {
// 创建游戏场景
protected createGameScene() {
super.createGameScene();
SceneCtrl.instance.change(ModuleTypes.Share2Scene);
// PanelCtrl.instance.show(ModuleTypes.JoinShareScene);
SceneCtrl.instance.change(ModuleTypes.TeamShareScene);
// PanelCtrl.instance.show(ModuleTypes.SloganPanel);
Waiting.instance.hide();
return;
......
......@@ -41,8 +41,10 @@ export enum ModuleTypes {
CertificateScene,
ConfirmPanel,
SloganPanel,
JoinShareScene,
Share2Scene,
TeamShareScene,
ShareStarterScene,
TransRecordPanel,
TOAST
......
......@@ -14,6 +14,7 @@ export default class ShareStarterScene extends Scene {
}
onTap_sharebtn() {
console.log('onTap_sharebtn');
}
onTap_transbtn() {
......
......@@ -15,6 +15,7 @@ export default class TeamShareScene extends Scene{
}
onTap_btn(){
console.log('onTap_btn');
}
initEvents(){
......
......@@ -8,8 +8,9 @@ export default class TransRecordItemRenderer extends eui.ItemRenderer {
this.skinName = getSkinPath('TransRecordItem')
}
dataChanged() {
this['nametxt'].text = '123';
this['timetxt'].text = '2019.11.19 15:50:20';
}
dataChanged() {
this['nametxt'].text = '123';
this['timetxt'].text = '2019.11.19 15:50:20';
this['bg'].visible = this.itemIndex % 2 !== 1;
}
}
\ No newline at end of file
......@@ -15,15 +15,10 @@ export default class TransRecordPanel extends Panel {
initUI() {
this.list.useVirtualLayout=true;
this.list.itemRenderer = TransRecordItemRenderer;
this.list.dataProvider=new eui.ArrayCollection([1,2,3,4]);
this.list.dataProvider=new eui.ArrayCollection([1,2,3,1,2,3,1,2,3,4]);
}
initEvents() {
super.initEvents();
this.onTap(this['btn'], this.onTap_btn);
}
onTap_btn() {
console.log('onTap_btn');
}
}
\ No newline at end of file
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