Commit 8c3339fd authored by wildfirecode's avatar wildfirecode

1

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