Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
yyh
Commits
8c3339fd
Commit
8c3339fd
authored
Dec 09, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5212588c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
12 deletions
+22
-12
default.thm.json
egret/resource/default.thm.json
+2
-0
Main.ts
egret/src/Main.ts
+10
-2
sceneTypes.ts
egret/src/types/sceneTypes.ts
+2
-0
ShareStarterScene.ts
egret/src/yazuwei/ShareStarterScene.ts
+1
-0
TeamShareScene.ts
egret/src/yazuwei/TeamShareScene.ts
+1
-0
TransRecordItemRenderer.ts
egret/src/yazuwei/TransRecordItemRenderer.ts
+5
-4
TransRecordPanel.ts
egret/src/yazuwei/TransRecordPanel.ts
+1
-6
No files found.
egret/resource/default.thm.json
View file @
8c3339fd
...
@@ -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"
,
...
...
egret/src/Main.ts
View file @
8c3339fd
...
@@ -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
.
Share2
Scene
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TeamShare
Scene
);
// PanelCtrl.instance.show(ModuleTypes.
JoinShareScene
);
// PanelCtrl.instance.show(ModuleTypes.
SloganPanel
);
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
return
;
return
;
...
...
egret/src/types/sceneTypes.ts
View file @
8c3339fd
...
@@ -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
...
...
egret/src/yazuwei/ShareStarterScene.ts
View file @
8c3339fd
...
@@ -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
()
{
...
...
egret/src/yazuwei/TeamShareScene.ts
View file @
8c3339fd
...
@@ -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
(){
...
...
egret/src/yazuwei/TransRecordItemRenderer.ts
View file @
8c3339fd
...
@@ -8,8 +8,9 @@ export default class TransRecordItemRenderer extends eui.ItemRenderer {
...
@@ -8,8 +8,9 @@ export default class TransRecordItemRenderer extends eui.ItemRenderer {
this
.
skinName
=
getSkinPath
(
'TransRecordItem'
)
this
.
skinName
=
getSkinPath
(
'TransRecordItem'
)
}
}
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
egret/src/yazuwei/TransRecordPanel.ts
View file @
8c3339fd
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment