Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
feb82904
Commit
feb82904
authored
Aug 07, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充按钮贴图
parent
9025ec9c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
38 deletions
+46
-38
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+22
-22
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+18
-11
Classes/gframe/game.h
Classes/gframe/game.h
+6
-5
mobile/assets/data/textures/extra/sButton_S.png
mobile/assets/data/textures/extra/sButton_S.png
+0
-0
mobile/assets/data/textures/extra/sButton_S_pressed.png
mobile/assets/data/textures/extra/sButton_S_pressed.png
+0
-0
No files found.
Classes/gframe/event_handler.cpp
View file @
feb82904
...
@@ -2443,33 +2443,33 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2443,33 +2443,33 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
wCmdMenu
->
setVisible
(
false
);
mainGame
->
wCmdMenu
->
setVisible
(
false
);
return
;
return
;
}
}
int
height
=
1
*
mainGame
->
yScale
;
int
height
=
0
;
if
(
flag
&
COMMAND_ACTIVATE
)
{
if
(
flag
&
COMMAND_ACTIVATE
)
{
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnActivate
->
setVisible
(
false
);
}
else
mainGame
->
btnActivate
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SUMMON
)
{
if
(
flag
&
COMMAND_SUMMON
)
{
mainGame
->
btnSummon
->
setVisible
(
true
);
mainGame
->
btnSummon
->
setVisible
(
true
);
mainGame
->
btnSummon
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnSummon
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSummon
->
setVisible
(
false
);
}
else
mainGame
->
btnSummon
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SPSUMMON
)
{
if
(
flag
&
COMMAND_SPSUMMON
)
{
mainGame
->
btnSPSummon
->
setVisible
(
true
);
mainGame
->
btnSPSummon
->
setVisible
(
true
);
mainGame
->
btnSPSummon
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnSPSummon
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSPSummon
->
setVisible
(
false
);
}
else
mainGame
->
btnSPSummon
->
setVisible
(
false
);
if
(
flag
&
COMMAND_MSET
)
{
if
(
flag
&
COMMAND_MSET
)
{
mainGame
->
btnMSet
->
setVisible
(
true
);
mainGame
->
btnMSet
->
setVisible
(
true
);
mainGame
->
btnMSet
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnMSet
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnMSet
->
setVisible
(
false
);
}
else
mainGame
->
btnMSet
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SSET
)
{
if
(
flag
&
COMMAND_SSET
)
{
...
@@ -2478,9 +2478,9 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2478,9 +2478,9 @@ void ClientField::ShowMenu(int flag, int x, int y) {
else
else
mainGame
->
btnSSet
->
setText
(
dataManager
.
GetSysString
(
1159
));
mainGame
->
btnSSet
->
setText
(
dataManager
.
GetSysString
(
1159
));
mainGame
->
btnSSet
->
setVisible
(
true
);
mainGame
->
btnSSet
->
setVisible
(
true
);
mainGame
->
btnSSet
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnSSet
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSSet
->
setVisible
(
false
);
}
else
mainGame
->
btnSSet
->
setVisible
(
false
);
if
(
flag
&
COMMAND_REPOS
)
{
if
(
flag
&
COMMAND_REPOS
)
{
...
@@ -2491,42 +2491,42 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2491,42 +2491,42 @@ void ClientField::ShowMenu(int flag, int x, int y) {
else
else
mainGame
->
btnRepos
->
setText
(
dataManager
.
GetSysString
(
1156
));
mainGame
->
btnRepos
->
setText
(
dataManager
.
GetSysString
(
1156
));
mainGame
->
btnRepos
->
setVisible
(
true
);
mainGame
->
btnRepos
->
setVisible
(
true
);
mainGame
->
btnRepos
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnRepos
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnRepos
->
setVisible
(
false
);
}
else
mainGame
->
btnRepos
->
setVisible
(
false
);
if
(
flag
&
COMMAND_ATTACK
)
{
if
(
flag
&
COMMAND_ATTACK
)
{
mainGame
->
btnAttack
->
setVisible
(
true
);
mainGame
->
btnAttack
->
setVisible
(
true
);
mainGame
->
btnAttack
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnAttack
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnAttack
->
setVisible
(
false
);
}
else
mainGame
->
btnAttack
->
setVisible
(
false
);
if
(
flag
&
COMMAND_LIST
)
{
if
(
flag
&
COMMAND_LIST
)
{
mainGame
->
btnShowList
->
setVisible
(
true
);
mainGame
->
btnShowList
->
setVisible
(
true
);
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnShowList
->
setVisible
(
false
);
}
else
mainGame
->
btnShowList
->
setVisible
(
false
);
if
(
flag
&
COMMAND_OPERATION
)
{
if
(
flag
&
COMMAND_OPERATION
)
{
mainGame
->
btnOperation
->
setVisible
(
true
);
mainGame
->
btnOperation
->
setVisible
(
true
);
mainGame
->
btnOperation
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnOperation
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnOperation
->
setVisible
(
false
);
}
else
mainGame
->
btnOperation
->
setVisible
(
false
);
if
(
flag
&
COMMAND_RESET
)
{
if
(
flag
&
COMMAND_RESET
)
{
mainGame
->
btnReset
->
setVisible
(
true
);
mainGame
->
btnReset
->
setVisible
(
true
);
mainGame
->
btnReset
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnReset
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
61
*
mainGame
->
yScale
;
height
+=
50
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnReset
->
setVisible
(
false
);
}
else
mainGame
->
btnReset
->
setVisible
(
false
);
panel
=
mainGame
->
wCmdMenu
;
panel
=
mainGame
->
wCmdMenu
;
mainGame
->
wCmdMenu
->
setVisible
(
true
);
mainGame
->
wCmdMenu
->
setVisible
(
true
);
mainGame
->
wCmdMenu
->
setRelativePosition
(
irr
::
core
::
recti
(
x
-
5
*
mainGame
->
xScale
,
y
-
2
0
*
mainGame
->
yScale
-
height
,
x
+
100
*
mainGame
->
xScale
,
y
-
20
*
mainGame
->
yScale
));
mainGame
->
wCmdMenu
->
setRelativePosition
(
irr
::
core
::
recti
(
x
-
10
*
mainGame
->
xScale
,
y
-
3
0
*
mainGame
->
yScale
-
height
,
x
+
100
*
mainGame
->
xScale
,
y
-
20
*
mainGame
->
yScale
));
}
}
void
ClientField
::
UpdateChainButtons
()
{
void
ClientField
::
UpdateChainButtons
()
{
if
(
mainGame
->
btnChainAlways
->
isVisible
())
{
if
(
mainGame
->
btnChainAlways
->
isVisible
())
{
...
...
Classes/gframe/game.cpp
View file @
feb82904
...
@@ -719,29 +719,30 @@ bool Game::Initialize(ANDROID_APP app) {
...
@@ -719,29 +719,30 @@ bool Game::Initialize(ANDROID_APP app) {
stTip
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
stTip
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
stTip
->
setVisible
(
false
);
stTip
->
setVisible
(
false
);
//cmd menu
//cmd menu
wCmdMenu
=
env
->
addWindow
(
rect
<
s32
>
(
10
*
xScale
,
10
*
yScale
,
110
*
xScale
,
179
*
yScale
),
false
,
L""
);
wCmdMenu
=
env
->
addWindow
(
rect
<
s32
>
(
0
,
0
,
110
*
xScale
,
510
*
yScale
),
false
,
L""
);
wCmdMenu
->
setDrawTitlebar
(
false
);
wCmdMenu
->
setDrawTitlebar
(
false
);
wCmdMenu
->
setDrawBackground
(
false
);
wCmdMenu
->
setVisible
(
false
);
wCmdMenu
->
setVisible
(
false
);
wCmdMenu
->
getCloseButton
()
->
setVisible
(
false
);
wCmdMenu
->
getCloseButton
()
->
setVisible
(
false
);
btnActivate
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
*
yScale
,
105
*
xScale
,
61
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1150
));
btnActivate
=
env
->
addButton
(
rect
<
s32
>
(
0
,
0
,
110
*
xScale
,
50
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1150
));
ChangeToIGUIImageButton
(
btnActivate
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnActivate
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnSummon
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
62
*
yScale
,
105
*
xScale
,
122
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SUMMON
,
dataManager
.
GetSysString
(
1151
));
btnSummon
=
env
->
addButton
(
rect
<
s32
>
(
0
,
50
*
yScale
,
110
*
xScale
,
100
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SUMMON
,
dataManager
.
GetSysString
(
1151
));
ChangeToIGUIImageButton
(
btnSummon
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnSummon
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnSPSummon
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
123
*
yScale
,
105
*
xScale
,
183
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SPSUMMON
,
dataManager
.
GetSysString
(
1152
));
btnSPSummon
=
env
->
addButton
(
rect
<
s32
>
(
0
,
100
*
yScale
,
110
*
xScale
,
150
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SPSUMMON
,
dataManager
.
GetSysString
(
1152
));
ChangeToIGUIImageButton
(
btnSPSummon
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnSPSummon
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnMSet
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
184
*
yScale
,
105
*
xScale
,
244
*
yScale
),
wCmdMenu
,
BUTTON_CMD_MSET
,
dataManager
.
GetSysString
(
1153
));
btnMSet
=
env
->
addButton
(
rect
<
s32
>
(
0
,
150
*
yScale
,
110
*
xScale
,
200
*
yScale
),
wCmdMenu
,
BUTTON_CMD_MSET
,
dataManager
.
GetSysString
(
1153
));
ChangeToIGUIImageButton
(
btnMSet
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnMSet
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnSSet
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
245
*
yScale
,
105
*
xScale
,
305
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SSET
,
dataManager
.
GetSysString
(
1153
));
btnSSet
=
env
->
addButton
(
rect
<
s32
>
(
0
,
200
*
yScale
,
110
*
xScale
,
250
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SSET
,
dataManager
.
GetSysString
(
1153
));
ChangeToIGUIImageButton
(
btnSSet
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnSSet
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnRepos
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
306
*
yScale
,
105
*
xScale
,
366
*
yScale
),
wCmdMenu
,
BUTTON_CMD_REPOS
,
dataManager
.
GetSysString
(
1154
));
btnRepos
=
env
->
addButton
(
rect
<
s32
>
(
0
,
250
*
yScale
,
110
*
xScale
,
300
*
yScale
),
wCmdMenu
,
BUTTON_CMD_REPOS
,
dataManager
.
GetSysString
(
1154
));
ChangeToIGUIImageButton
(
btnRepos
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnRepos
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnAttack
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
367
*
yScale
,
105
*
xScale
,
427
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ATTACK
,
dataManager
.
GetSysString
(
1157
));
btnAttack
=
env
->
addButton
(
rect
<
s32
>
(
0
,
300
*
yScale
,
110
*
xScale
,
350
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ATTACK
,
dataManager
.
GetSysString
(
1157
));
ChangeToIGUIImageButton
(
btnAttack
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnAttack
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnShowList
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
428
*
yScale
,
105
*
xScale
,
488
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SHOWLIST
,
dataManager
.
GetSysString
(
1158
));
btnShowList
=
env
->
addButton
(
rect
<
s32
>
(
0
,
350
*
yScale
,
110
*
xScale
,
400
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SHOWLIST
,
dataManager
.
GetSysString
(
1158
));
ChangeToIGUIImageButton
(
btnShowList
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnShowList
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnOperation
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
489
*
yScale
,
105
*
xScale
,
549
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1161
));
btnOperation
=
env
->
addButton
(
rect
<
s32
>
(
0
,
400
*
yScale
,
110
*
xScale
,
450
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1161
));
ChangeToIGUIImageButton
(
btnOperation
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnOperation
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReset
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
550
*
yScale
,
105
*
xScale
,
61
0
*
yScale
),
wCmdMenu
,
BUTTON_CMD_RESET
,
dataManager
.
GetSysString
(
1162
));
btnReset
=
env
->
addButton
(
rect
<
s32
>
(
0
,
450
*
yScale
,
110
*
xScale
,
50
0
*
yScale
),
wCmdMenu
,
BUTTON_CMD_RESET
,
dataManager
.
GetSysString
(
1162
));
ChangeToIGUIImageButton
(
btnReset
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnReset
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
//deck edit
//deck edit
wDeckEdit
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
309
*
xScale
,
1
*
yScale
,
605
*
xScale
,
130
*
yScale
),
true
,
false
,
0
,
-
1
,
true
);
wDeckEdit
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
309
*
xScale
,
1
*
yScale
,
605
*
xScale
,
130
*
yScale
),
true
,
false
,
0
,
-
1
,
true
);
...
@@ -751,6 +752,7 @@ bool Game::Initialize(ANDROID_APP app) {
...
@@ -751,6 +752,7 @@ bool Game::Initialize(ANDROID_APP app) {
wDeckManage
=
env
->
addWindow
(
rect
<
s32
>
(
530
*
xScale
,
10
*
yScale
,
990
*
xScale
,
550
*
yScale
),
false
,
dataManager
.
GetSysString
(
1460
),
0
,
WINDOW_DECK_MANAGE
);
wDeckManage
=
env
->
addWindow
(
rect
<
s32
>
(
530
*
xScale
,
10
*
yScale
,
990
*
xScale
,
550
*
yScale
),
false
,
dataManager
.
GetSysString
(
1460
),
0
,
WINDOW_DECK_MANAGE
);
wDeckManage
->
setVisible
(
false
);
wDeckManage
->
setVisible
(
false
);
wDeckManage
->
getCloseButton
()
->
setVisible
(
false
);
wDeckManage
->
getCloseButton
()
->
setVisible
(
false
);
ChangeToIGUIImageWindow
(
wDeckManage
,
bgDeckManage
,
imageManager
.
tDialog_S
);
lstCategories
=
env
->
addListBox
(
rect
<
s32
>
(
10
*
xScale
,
30
*
yScale
,
140
*
xScale
,
530
*
yScale
),
wDeckManage
,
LISTBOX_CATEGORIES
,
true
);
lstCategories
=
env
->
addListBox
(
rect
<
s32
>
(
10
*
xScale
,
30
*
yScale
,
140
*
xScale
,
530
*
yScale
),
wDeckManage
,
LISTBOX_CATEGORIES
,
true
);
lstCategories
->
setItemHeight
(
25
*
yScale
);
lstCategories
->
setItemHeight
(
25
*
yScale
);
lstDecks
=
env
->
addListBox
(
rect
<
s32
>
(
150
*
xScale
,
30
*
yScale
,
340
*
xScale
,
530
*
yScale
),
wDeckManage
,
LISTBOX_DECKS
,
true
);
lstDecks
=
env
->
addListBox
(
rect
<
s32
>
(
150
*
xScale
,
30
*
yScale
,
340
*
xScale
,
530
*
yScale
),
wDeckManage
,
LISTBOX_DECKS
,
true
);
...
@@ -919,15 +921,20 @@ bool Game::Initialize(ANDROID_APP app) {
...
@@ -919,15 +921,20 @@ bool Game::Initialize(ANDROID_APP app) {
lstReplayList
=
env
->
addListBox
(
rect
<
s32
>
(
20
*
xScale
,
30
*
yScale
,
310
*
xScale
,
400
*
yScale
),
wReplay
,
LISTBOX_REPLAY_LIST
,
true
);
lstReplayList
=
env
->
addListBox
(
rect
<
s32
>
(
20
*
xScale
,
30
*
yScale
,
310
*
xScale
,
400
*
yScale
),
wReplay
,
LISTBOX_REPLAY_LIST
,
true
);
lstReplayList
->
setItemHeight
(
25
*
yScale
);
lstReplayList
->
setItemHeight
(
25
*
yScale
);
btnLoadReplay
=
env
->
addButton
(
rect
<
s32
>
(
440
*
xScale
,
310
*
yScale
,
550
*
xScale
,
350
*
yScale
),
wReplay
,
BUTTON_LOAD_REPLAY
,
dataManager
.
GetSysString
(
1348
));
btnLoadReplay
=
env
->
addButton
(
rect
<
s32
>
(
440
*
xScale
,
310
*
yScale
,
550
*
xScale
,
350
*
yScale
),
wReplay
,
BUTTON_LOAD_REPLAY
,
dataManager
.
GetSysString
(
1348
));
ChangeToIGUIImageButton
(
btnLoadReplay
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnDeleteReplay
=
env
->
addButton
(
rect
<
s32
>
(
320
*
xScale
,
310
*
yScale
,
430
*
xScale
,
350
*
yScale
),
wReplay
,
BUTTON_DELETE_REPLAY
,
dataManager
.
GetSysString
(
1361
));
btnDeleteReplay
=
env
->
addButton
(
rect
<
s32
>
(
320
*
xScale
,
310
*
yScale
,
430
*
xScale
,
350
*
yScale
),
wReplay
,
BUTTON_DELETE_REPLAY
,
dataManager
.
GetSysString
(
1361
));
ChangeToIGUIImageButton
(
btnDeleteReplay
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnRenameReplay
=
env
->
addButton
(
rect
<
s32
>
(
320
*
xScale
,
360
*
yScale
,
430
*
xScale
,
400
*
yScale
),
wReplay
,
BUTTON_RENAME_REPLAY
,
dataManager
.
GetSysString
(
1362
));
btnRenameReplay
=
env
->
addButton
(
rect
<
s32
>
(
320
*
xScale
,
360
*
yScale
,
430
*
xScale
,
400
*
yScale
),
wReplay
,
BUTTON_RENAME_REPLAY
,
dataManager
.
GetSysString
(
1362
));
ChangeToIGUIImageButton
(
btnRenameReplay
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReplayCancel
=
env
->
addButton
(
rect
<
s32
>
(
440
*
xScale
,
360
*
yScale
,
550
*
xScale
,
400
*
yScale
),
wReplay
,
BUTTON_CANCEL_REPLAY
,
dataManager
.
GetSysString
(
1347
));
btnReplayCancel
=
env
->
addButton
(
rect
<
s32
>
(
440
*
xScale
,
360
*
yScale
,
550
*
xScale
,
400
*
yScale
),
wReplay
,
BUTTON_CANCEL_REPLAY
,
dataManager
.
GetSysString
(
1347
));
ChangeToIGUIImageButton
(
btnReplayCancel
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1349
),
rect
<
s32
>
(
320
*
xScale
,
30
*
yScale
,
550
*
xScale
,
50
*
yScale
),
false
,
true
,
wReplay
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1349
),
rect
<
s32
>
(
320
*
xScale
,
30
*
yScale
,
550
*
xScale
,
50
*
yScale
),
false
,
true
,
wReplay
);
stReplayInfo
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
320
*
xScale
,
60
*
yScale
,
570
*
xScale
,
315
*
yScale
),
false
,
true
,
wReplay
);
stReplayInfo
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
320
*
xScale
,
60
*
yScale
,
570
*
xScale
,
315
*
yScale
),
false
,
true
,
wReplay
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1353
),
rect
<
s32
>
(
320
*
xScale
,
240
*
yScale
,
550
*
xScale
,
260
*
yScale
),
false
,
true
,
wReplay
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1353
),
rect
<
s32
>
(
320
*
xScale
,
240
*
yScale
,
550
*
xScale
,
260
*
yScale
),
false
,
true
,
wReplay
);
ebRepStartTurn
=
CAndroidGUIEditBox
::
addAndroidEditBox
(
L""
,
true
,
env
,
rect
<
s32
>
(
320
*
xScale
,
260
*
yScale
,
430
*
xScale
,
300
*
yScale
),
wReplay
,
-
1
);
ebRepStartTurn
=
CAndroidGUIEditBox
::
addAndroidEditBox
(
L""
,
true
,
env
,
rect
<
s32
>
(
320
*
xScale
,
260
*
yScale
,
430
*
xScale
,
300
*
yScale
),
wReplay
,
-
1
);
ebRepStartTurn
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
ebRepStartTurn
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
btnExportDeck
=
env
->
addButton
(
rect
<
s32
>
(
440
*
xScale
,
260
*
yScale
,
550
*
xScale
,
300
*
yScale
),
wReplay
,
BUTTON_EXPORT_DECK
,
dataManager
.
GetSysString
(
1282
));
btnExportDeck
=
env
->
addButton
(
rect
<
s32
>
(
440
*
xScale
,
260
*
yScale
,
550
*
xScale
,
300
*
yScale
),
wReplay
,
BUTTON_EXPORT_DECK
,
dataManager
.
GetSysString
(
1282
));
ChangeToIGUIImageButton
(
btnExportDeck
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
//single play window
//single play window
wSinglePlay
=
env
->
addWindow
(
rect
<
s32
>
(
220
*
xScale
,
100
*
yScale
,
800
*
xScale
,
520
*
yScale
),
false
,
dataManager
.
GetSysString
(
1201
));
wSinglePlay
=
env
->
addWindow
(
rect
<
s32
>
(
220
*
xScale
,
100
*
yScale
,
800
*
xScale
,
520
*
yScale
),
false
,
dataManager
.
GetSysString
(
1201
));
wSinglePlay
->
getCloseButton
()
->
setVisible
(
false
);
wSinglePlay
->
getCloseButton
()
->
setVisible
(
false
);
...
...
Classes/gframe/game.h
View file @
feb82904
...
@@ -374,11 +374,11 @@ public:
...
@@ -374,11 +374,11 @@ public:
irr
::
gui
::
IGUIImage
*
bgReplay
;
irr
::
gui
::
IGUIImage
*
bgReplay
;
irr
::
gui
::
IGUIListBox
*
lstReplayList
;
irr
::
gui
::
IGUIListBox
*
lstReplayList
;
irr
::
gui
::
IGUIStaticText
*
stReplayInfo
;
irr
::
gui
::
IGUIStaticText
*
stReplayInfo
;
irr
::
gui
::
IGUIButton
*
btnLoadReplay
;
irr
::
gui
::
IGUIButton
*
btnLoadReplay
;
//
irr
::
gui
::
IGUIButton
*
btnDeleteReplay
;
irr
::
gui
::
IGUIButton
*
btnDeleteReplay
;
//
irr
::
gui
::
IGUIButton
*
btnRenameReplay
;
irr
::
gui
::
IGUIButton
*
btnRenameReplay
;
//
irr
::
gui
::
IGUIButton
*
btnReplayCancel
;
irr
::
gui
::
IGUIButton
*
btnReplayCancel
;
//
irr
::
gui
::
IGUIButton
*
btnExportDeck
;
irr
::
gui
::
IGUIButton
*
btnExportDeck
;
//
irr
::
gui
::
IGUIEditBox
*
ebRepStartTurn
;
irr
::
gui
::
IGUIEditBox
*
ebRepStartTurn
;
//single play
//single play
irr
::
gui
::
IGUIWindow
*
wSinglePlay
;
irr
::
gui
::
IGUIWindow
*
wSinglePlay
;
...
@@ -529,6 +529,7 @@ public:
...
@@ -529,6 +529,7 @@ public:
irr
::
gui
::
IGUIStaticText
*
stScale
;
irr
::
gui
::
IGUIStaticText
*
stScale
;
//deck manage
//deck manage
irr
::
gui
::
IGUIWindow
*
wDeckManage
;
irr
::
gui
::
IGUIWindow
*
wDeckManage
;
irr
::
gui
::
IGUIImage
*
bgDeckManage
;
irr
::
gui
::
IGUIListBox
*
lstCategories
;
irr
::
gui
::
IGUIListBox
*
lstCategories
;
irr
::
gui
::
IGUIListBox
*
lstDecks
;
irr
::
gui
::
IGUIListBox
*
lstDecks
;
irr
::
gui
::
IGUIButton
*
btnNewCategory
;
irr
::
gui
::
IGUIButton
*
btnNewCategory
;
...
...
mobile/assets/data/textures/extra/sButton_S.png
0 → 100644
View file @
feb82904
6.68 KB
mobile/assets/data/textures/extra/sButton_S_pressed.png
0 → 100644
View file @
feb82904
2.55 KB
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