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
1d1023f9
Commit
1d1023f9
authored
Aug 08, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进一步补充按钮,窗口贴图
parent
feb82904
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
38 deletions
+55
-38
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+36
-23
Classes/gframe/game.h
Classes/gframe/game.h
+15
-15
Classes/gframe/image_manager.cpp
Classes/gframe/image_manager.cpp
+2
-0
Classes/gframe/image_manager.h
Classes/gframe/image_manager.h
+2
-0
mobile/assets/data/textures/extra/sButton_C.png
mobile/assets/data/textures/extra/sButton_C.png
+0
-0
mobile/assets/data/textures/extra/sButton_C_pressed.png
mobile/assets/data/textures/extra/sButton_C_pressed.png
+0
-0
mobile/assets/data/textures/extra/sButton_L.png
mobile/assets/data/textures/extra/sButton_L.png
+0
-0
mobile/assets/data/textures/extra/sButton_L_pressed.png
mobile/assets/data/textures/extra/sButton_L_pressed.png
+0
-0
No files found.
Classes/gframe/game.cpp
View file @
1d1023f9
...
...
@@ -525,7 +525,7 @@ bool Game::Initialize(ANDROID_APP app) {
chkPreferExpansionScript
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
wSettings
,
CHECKBOX_PREFER_EXPANSION
,
dataManager
.
GetSysString
(
1379
));
chkPreferExpansionScript
->
setChecked
(
gameConf
.
prefer_expansion_script
!=
0
);
elmTabSystemLast
=
chkPreferExpansionScript
;
btnCloseSettings
=
env
->
addButton
(
rect
<
s32
>
(
450
*
xScale
,
3
6
0
*
yScale
,
560
*
xScale
,
400
*
yScale
),
wSettings
,
BUTTON_CLOSE_SETTINGS
,
dataManager
.
GetSysString
(
1211
));
btnCloseSettings
=
env
->
addButton
(
rect
<
s32
>
(
450
*
xScale
,
3
5
0
*
yScale
,
560
*
xScale
,
400
*
yScale
),
wSettings
,
BUTTON_CLOSE_SETTINGS
,
dataManager
.
GetSysString
(
1211
));
ChangeToIGUIImageButton
(
btnCloseSettings
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
//show scroll
scrTabSystem
=
env
->
addScrollBar
(
false
,
rect
<
s32
>
(
435
*
xScale
,
60
*
yScale
,
465
*
xScale
,
419
*
yScale
),
wSettings
,
SCROLL_SETTINGS
);
...
...
@@ -559,7 +559,9 @@ bool Game::Initialize(ANDROID_APP app) {
wFTSelect
->
setVisible
(
false
);
ChangeToIGUIImageWindow
(
wFTSelect
,
bgFTSelect
,
imageManager
.
tDialog_L
);
btnFirst
=
env
->
addButton
(
rect
<
s32
>
(
20
*
xScale
,
35
*
yScale
,
370
*
xScale
,
85
*
yScale
),
wFTSelect
,
BUTTON_FIRST
,
dataManager
.
GetSysString
(
100
));
ChangeToIGUIImageButton
(
btnFirst
,
imageManager
.
tButton_L
,
imageManager
.
tButton_L_pressed
);
btnSecond
=
env
->
addButton
(
rect
<
s32
>
(
20
*
xScale
,
95
*
yScale
,
370
*
xScale
,
145
*
yScale
),
wFTSelect
,
BUTTON_SECOND
,
dataManager
.
GetSysString
(
101
));
ChangeToIGUIImageButton
(
btnSecond
,
imageManager
.
tButton_L
,
imageManager
.
tButton_L_pressed
);
//message (370)
wMessage
=
env
->
addWindow
(
rect
<
s32
>
(
470
*
xScale
,
180
*
yScale
,
860
*
xScale
,
360
*
yScale
),
false
,
dataManager
.
GetSysString
(
1216
));
wMessage
->
getCloseButton
()
->
setVisible
(
false
);
...
...
@@ -609,11 +611,15 @@ bool Game::Initialize(ANDROID_APP app) {
bgOptions
->
setScaleImage
(
true
);
stOptions
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
20
*
xScale
,
20
*
yScale
,
370
*
xScale
,
100
*
yScale
),
false
,
true
,
wOptions
,
-
1
,
false
);
stOptions
->
setTextAlignment
(
irr
::
gui
::
EGUIA_UPPERLEFT
,
irr
::
gui
::
EGUIA_CENTER
);
btnOptionOK
=
env
->
addButton
(
rect
<
s32
>
(
130
*
xScale
,
115
*
yScale
,
260
*
xScale
,
165
*
yScale
),
wOptions
,
BUTTON_OPTION_OK
,
dataManager
.
GetSysString
(
1211
));
btnOptionp
=
env
->
addButton
(
rect
<
s32
>
(
20
*
xScale
,
115
*
yScale
,
100
*
xScale
,
165
*
yScale
),
wOptions
,
BUTTON_OPTION_PREV
,
L"<<<"
);
btnOptionn
=
env
->
addButton
(
rect
<
s32
>
(
290
*
xScale
,
115
*
yScale
,
370
*
xScale
,
165
*
yScale
),
wOptions
,
BUTTON_OPTION_NEXT
,
L">>>"
);
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
btnOptionOK
=
env
->
addButton
(
rect
<
s32
>
(
140
*
xScale
,
115
*
yScale
,
250
*
xScale
,
165
*
yScale
),
wOptions
,
BUTTON_OPTION_OK
,
dataManager
.
GetSysString
(
1211
));
ChangeToIGUIImageButton
(
btnOptionOK
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnOptionp
=
env
->
addButton
(
rect
<
s32
>
(
20
*
xScale
,
115
*
yScale
,
130
*
xScale
,
165
*
yScale
),
wOptions
,
BUTTON_OPTION_PREV
,
L"<<<"
);
ChangeToIGUIImageButton
(
btnOptionp
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnOptionn
=
env
->
addButton
(
rect
<
s32
>
(
260
*
xScale
,
115
*
yScale
,
370
*
xScale
,
165
*
yScale
),
wOptions
,
BUTTON_OPTION_NEXT
,
L">>>"
);
ChangeToIGUIImageButton
(
btnOptionn
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
btnOption
[
i
]
=
env
->
addButton
(
rect
<
s32
>
(
20
*
xScale
,
(
20
+
60
*
i
)
*
yScale
,
370
*
xScale
,
(
70
+
60
*
i
)
*
yScale
),
wOptions
,
BUTTON_OPTION_0
+
i
,
L""
);
ChangeToIGUIImageButton
(
btnOption
[
i
],
imageManager
.
tButton_L
,
imageManager
.
tButton_L_pressed
);
}
scrOption
=
env
->
addScrollBar
(
false
,
rect
<
s32
>
(
350
*
xScale
,
30
*
yScale
,
380
*
xScale
,
220
*
yScale
),
wOptions
,
SCROLL_OPTION_SELECT
);
scrOption
->
setLargeStep
(
1
);
...
...
@@ -679,6 +685,7 @@ bool Game::Initialize(ANDROID_APP app) {
for
(
int
i
=
0
;
i
<
12
;
++
i
)
{
myswprintf
(
strbuf
,
L"%d"
,
i
+
1
);
btnANNumber
[
i
]
=
env
->
addButton
(
rect
<
s32
>
((
50
+
70
*
(
i
%
3
))
*
xScale
,
(
50
+
70
*
(
i
/
3
))
*
yScale
,
(
110
+
70
*
(
i
%
3
))
*
xScale
,
(
110
+
70
*
(
i
/
3
))
*
yScale
),
wANNumber
,
BUTTON_ANNUMBER_1
+
i
,
strbuf
);
ChangeToIGUIImageButton
(
btnANNumber
[
i
],
imageManager
.
tButton_C
,
imageManager
.
tButton_C_pressed
);
btnANNumber
[
i
]
->
setIsPushButton
(
true
);
}
btnANNumberOK
=
env
->
addButton
(
rect
<
s32
>
(
95
*
xScale
,
430
*
yScale
,
205
*
xScale
,
480
*
yScale
),
wANNumber
,
BUTTON_ANNUMBER_OK
,
dataManager
.
GetSysString
(
1211
));
...
...
@@ -872,10 +879,13 @@ bool Game::Initialize(ANDROID_APP app) {
ebCardName
=
CAndroidGUIEditBox
::
addAndroidEditBox
(
L""
,
true
,
env
,
rect
<
s32
>
(
260
*
xScale
,
72
*
yScale
,
390
*
xScale
,
92
*
yScale
),
wFilter
,
EDITBOX_KEYWORD
);
ebCardName
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
btnEffectFilter
=
env
->
addButton
(
rect
<
s32
>
(
345
*
xScale
,
28
*
yScale
,
390
*
xScale
,
69
*
yScale
),
wFilter
,
BUTTON_EFFECT_FILTER
,
dataManager
.
GetSysString
(
1326
));
ChangeToIGUIImageButton
(
btnEffectFilter
,
imageManager
.
tButton_C
,
imageManager
.
tButton_C_pressed
);
btnStartFilter
=
env
->
addButton
(
rect
<
s32
>
(
210
*
xScale
,
96
*
yScale
,
390
*
xScale
,
118
*
yScale
),
wFilter
,
BUTTON_START_FILTER
,
dataManager
.
GetSysString
(
1327
));
ChangeToIGUIImageButton
(
btnStartFilter
,
imageManager
.
tButton_L
,
imageManager
.
tButton_L_pressed
);
if
(
gameConf
.
separate_clear_button
)
{
btnStartFilter
->
setRelativePosition
(
rect
<
s32
>
(
260
*
xScale
,
(
80
+
125
/
6
)
*
yScale
,
390
*
xScale
,
(
100
+
125
/
6
)
*
yScale
));
btnClearFilter
=
env
->
addButton
(
rect
<
s32
>
(
205
*
xScale
,
(
80
+
125
/
6
)
*
yScale
,
255
*
xScale
,
(
100
+
125
/
6
)
*
yScale
),
wFilter
,
BUTTON_CLEAR_FILTER
,
dataManager
.
GetSysString
(
1304
));
ChangeToIGUIImageButton
(
btnClearFilter
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
}
wCategories
=
env
->
addWindow
(
rect
<
s32
>
(
630
*
xScale
,
60
*
yScale
,
1000
*
xScale
,
270
*
yScale
),
false
,
dataManager
.
strBuffer
);
wCategories
->
getCloseButton
()
->
setVisible
(
false
);
...
...
@@ -982,12 +992,9 @@ bool Game::Initialize(ANDROID_APP app) {
ChangeToIGUIImageButton
(
btnSinglePlayCancel
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
//replay save
wReplaySave
=
env
->
addWindow
(
rect
<
s32
>
(
470
*
xScale
,
180
*
yScale
,
860
*
xScale
,
360
*
yScale
),
false
,
dataManager
.
GetSysString
(
1340
));
wReplaySave
->
setDrawBackground
(
false
);
wReplaySave
->
getCloseButton
()
->
setVisible
(
false
);
wReplaySave
->
setVisible
(
false
);
bgReplaySave
=
env
->
addImage
(
rect
<
s32
>
(
0
,
0
,
390
*
xScale
,
180
*
yScale
),
wReplaySave
,
-
1
,
0
,
true
);
bgReplaySave
->
setImage
(
imageManager
.
tDialog_L
);
bgReplaySave
->
setScaleImage
(
true
);
ChangeToIGUIImageWindow
(
wReplaySave
,
bgReplaySave
,
imageManager
.
tDialog_L
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1342
),
rect
<
s32
>
(
20
*
xScale
,
25
*
yScale
,
290
*
xScale
,
45
*
yScale
),
false
,
false
,
wReplaySave
);
ebRSName
=
CAndroidGUIEditBox
::
addAndroidEditBox
(
L""
,
true
,
env
,
rect
<
s32
>
(
20
*
xScale
,
50
*
yScale
,
370
*
xScale
,
90
*
yScale
),
wReplaySave
,
-
1
);
ebRSName
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
...
...
@@ -996,14 +1003,20 @@ bool Game::Initialize(ANDROID_APP app) {
btnRSNo
=
env
->
addButton
(
rect
<
s32
>
(
210
*
xScale
,
110
*
yScale
,
320
*
xScale
,
160
*
yScale
),
wReplaySave
,
BUTTON_REPLAY_CANCEL
,
dataManager
.
GetSysString
(
1212
));
ChangeToIGUIImageButton
(
btnRSNo
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
//replay control
wReplayControl
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
200
*
yScale
,
43
*
yScale
,
3
05
*
yScale
,
273
*
yScale
),
tru
e
,
false
,
0
,
-
1
,
true
);
wReplayControl
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
200
*
yScale
,
43
*
yScale
,
3
10
*
yScale
,
273
*
yScale
),
fals
e
,
false
,
0
,
-
1
,
true
);
wReplayControl
->
setVisible
(
false
);
btnReplayStart
=
env
->
addButton
(
rect
<
s32
>
(
5
*
yScale
,
5
*
yScale
,
100
*
yScale
,
45
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_START
,
dataManager
.
GetSysString
(
1343
));
btnReplayPause
=
env
->
addButton
(
rect
<
s32
>
(
5
*
yScale
,
50
*
yScale
,
100
*
yScale
,
90
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_PAUSE
,
dataManager
.
GetSysString
(
1344
));
btnReplayStep
=
env
->
addButton
(
rect
<
s32
>
(
5
*
yScale
,
95
*
yScale
,
100
*
yScale
,
135
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_STEP
,
dataManager
.
GetSysString
(
1345
));
btnReplayUndo
=
env
->
addButton
(
rect
<
s32
>
(
5
*
yScale
,
50
*
yScale
,
100
*
yScale
,
90
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_UNDO
,
dataManager
.
GetSysString
(
1360
));
btnReplaySwap
=
env
->
addButton
(
rect
<
s32
>
(
5
*
yScale
,
140
*
yScale
,
100
*
yScale
,
180
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_SWAP
,
dataManager
.
GetSysString
(
1346
));
btnReplayExit
=
env
->
addButton
(
rect
<
s32
>
(
5
*
yScale
,
185
*
yScale
,
100
*
yScale
,
225
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_EXIT
,
dataManager
.
GetSysString
(
1347
));
btnReplayStart
=
env
->
addButton
(
rect
<
s32
>
(
0
,
5
*
yScale
,
110
*
yScale
,
45
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_START
,
dataManager
.
GetSysString
(
1343
));
ChangeToIGUIImageButton
(
btnReplayStart
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReplayPause
=
env
->
addButton
(
rect
<
s32
>
(
0
,
50
*
yScale
,
110
*
yScale
,
90
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_PAUSE
,
dataManager
.
GetSysString
(
1344
));
ChangeToIGUIImageButton
(
btnReplayPause
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReplayStep
=
env
->
addButton
(
rect
<
s32
>
(
0
,
95
*
yScale
,
110
*
yScale
,
135
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_STEP
,
dataManager
.
GetSysString
(
1345
));
ChangeToIGUIImageButton
(
btnReplayStep
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReplayUndo
=
env
->
addButton
(
rect
<
s32
>
(
0
,
50
*
yScale
,
110
*
yScale
,
90
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_UNDO
,
dataManager
.
GetSysString
(
1360
));
ChangeToIGUIImageButton
(
btnReplayUndo
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReplaySwap
=
env
->
addButton
(
rect
<
s32
>
(
0
,
140
*
yScale
,
110
*
yScale
,
180
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_SWAP
,
dataManager
.
GetSysString
(
1346
));
ChangeToIGUIImageButton
(
btnReplaySwap
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnReplayExit
=
env
->
addButton
(
rect
<
s32
>
(
0
,
185
*
yScale
,
110
*
yScale
,
225
*
yScale
),
wReplayControl
,
BUTTON_REPLAY_EXIT
,
dataManager
.
GetSysString
(
1347
));
ChangeToIGUIImageButton
(
btnReplayExit
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
//chat
imgChat
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
0
*
yScale
,
319
*
yScale
,
45
*
yScale
,
364
*
yScale
),
wPallet
,
BUTTON_CHATTING
);
imgChat
->
setImageSize
(
core
::
dimension2di
(
28
*
yScale
,
28
*
yScale
));
...
...
@@ -1019,15 +1032,15 @@ bool Game::Initialize(ANDROID_APP app) {
wChat
->
setVisible
(
false
);
ebChatInput
=
CAndroidGUIEditBox
::
addAndroidEditBox
(
L""
,
true
,
env
,
rect
<
s32
>
(
3
*
xScale
,
2
*
yScale
,
710
*
xScale
,
28
*
yScale
),
wChat
,
EDITBOX_CHAT
);
//swap
btnSpectatorSwap
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
100
*
yScale
,
305
*
yScale
,
135
*
yScale
),
0
,
BUTTON_REPLAY_SWAP
,
dataManager
.
GetSysString
(
1346
));
btnSpectatorSwap
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
70
*
yScale
,
310
*
yScale
,
110
*
yScale
),
0
,
BUTTON_REPLAY_SWAP
,
dataManager
.
GetSysString
(
1346
));
ChangeToIGUIImageButton
(
btnSpectatorSwap
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnSpectatorSwap
->
setVisible
(
false
);
//chain buttons
btnChainIgnore
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
100
*
yScale
,
305
*
yScale
,
135
*
yScale
),
0
,
BUTTON_CHAIN_IGNORE
,
dataManager
.
GetSysString
(
1292
));
btnChainIgnore
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
70
*
yScale
,
310
*
yScale
,
110
*
yScale
),
0
,
BUTTON_CHAIN_IGNORE
,
dataManager
.
GetSysString
(
1292
));
ChangeToIGUIImageButton
(
btnChainIgnore
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnChainAlways
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
40
*
yScale
,
305
*
yScale
,
17
5
*
yScale
),
0
,
BUTTON_CHAIN_ALWAYS
,
dataManager
.
GetSysString
(
1293
));
btnChainAlways
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
15
*
yScale
,
310
*
yScale
,
15
5
*
yScale
),
0
,
BUTTON_CHAIN_ALWAYS
,
dataManager
.
GetSysString
(
1293
));
ChangeToIGUIImageButton
(
btnChainAlways
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnChainWhenAvail
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
80
*
yScale
,
305
*
yScale
,
215
*
yScale
),
0
,
BUTTON_CHAIN_WHENAVAIL
,
dataManager
.
GetSysString
(
1294
));
btnChainWhenAvail
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
60
*
yScale
,
310
*
yScale
,
200
*
yScale
),
0
,
BUTTON_CHAIN_WHENAVAIL
,
dataManager
.
GetSysString
(
1294
));
ChangeToIGUIImageButton
(
btnChainWhenAvail
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnChainIgnore
->
setIsPushButton
(
true
);
btnChainAlways
->
setIsPushButton
(
true
);
...
...
@@ -1036,11 +1049,11 @@ bool Game::Initialize(ANDROID_APP app) {
btnChainAlways
->
setVisible
(
false
);
btnChainWhenAvail
->
setVisible
(
false
);
//shuffle
btnShuffle
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
2
20
*
yScale
,
305
*
yScale
,
25
5
*
yScale
),
0
,
BUTTON_CMD_SHUFFLE
,
dataManager
.
GetSysString
(
1297
));
btnShuffle
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
2
05
*
yScale
,
310
*
yScale
,
24
5
*
yScale
),
0
,
BUTTON_CMD_SHUFFLE
,
dataManager
.
GetSysString
(
1297
));
ChangeToIGUIImageButton
(
btnShuffle
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnShuffle
->
setVisible
(
false
);
//cancel or finish
btnCancelOrFinish
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
2
20
*
yScale
,
305
*
yScale
,
27
5
*
yScale
),
0
,
BUTTON_CANCEL_OR_FINISH
,
dataManager
.
GetSysString
(
1295
));
btnCancelOrFinish
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
2
05
*
yScale
,
310
*
yScale
,
24
5
*
yScale
),
0
,
BUTTON_CANCEL_OR_FINISH
,
dataManager
.
GetSysString
(
1295
));
ChangeToIGUIImageButton
(
btnCancelOrFinish
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnCancelOrFinish
->
setVisible
(
false
);
soundManager
=
Utils
::
make_unique
<
SoundManager
>
();
...
...
@@ -1075,7 +1088,7 @@ bool Game::Initialize(ANDROID_APP app) {
btnBigCardZoomOut
->
setVisible
(
false
);
btnBigCardClose
->
setVisible
(
false
);
//leave/surrender/exit
btnLeaveGame
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
*
yScale
,
3
05
*
yScale
,
80
*
yScale
),
0
,
BUTTON_LEAVE_GAME
,
L""
);
btnLeaveGame
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
*
yScale
,
3
10
*
yScale
,
51
*
yScale
),
0
,
BUTTON_LEAVE_GAME
,
L""
);
ChangeToIGUIImageButton
(
btnLeaveGame
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
btnLeaveGame
->
setVisible
(
false
);
//tip
...
...
Classes/gframe/game.h
View file @
1d1023f9
...
...
@@ -403,8 +403,8 @@ public:
//
irr
::
gui
::
IGUIWindow
*
wFTSelect
;
irr
::
gui
::
IGUIImage
*
bgFTSelect
;
irr
::
gui
::
IGUIButton
*
btnFirst
;
irr
::
gui
::
IGUIButton
*
btnSecond
;
irr
::
gui
::
IGUIButton
*
btnFirst
;
//
irr
::
gui
::
IGUIButton
*
btnSecond
;
//
//message
irr
::
gui
::
IGUIWindow
*
wMessage
;
irr
::
gui
::
IGUIImage
*
bgMessage
;
...
...
@@ -429,10 +429,10 @@ public:
irr
::
gui
::
IGUIWindow
*
wOptions
;
irr
::
gui
::
IGUIImage
*
bgOptions
;
irr
::
gui
::
IGUIStaticText
*
stOptions
;
irr
::
gui
::
IGUIButton
*
btnOptionp
;
irr
::
gui
::
IGUIButton
*
btnOptionn
;
irr
::
gui
::
IGUIButton
*
btnOptionOK
;
irr
::
gui
::
IGUIButton
*
btnOption
[
5
];
irr
::
gui
::
IGUIButton
*
btnOptionp
;
//
irr
::
gui
::
IGUIButton
*
btnOptionn
;
//
irr
::
gui
::
IGUIButton
*
btnOptionOK
;
//
irr
::
gui
::
IGUIButton
*
btnOption
[
5
];
//
irr
::
gui
::
IGUIScrollBar
*
scrOption
;
//pos selection
irr
::
gui
::
IGUIWindow
*
wPosSelect
;
...
...
@@ -459,7 +459,7 @@ public:
irr
::
gui
::
IGUIWindow
*
wANNumber
;
irr
::
gui
::
IGUIImage
*
bgANNumber
;
irr
::
gui
::
IGUIComboBox
*
cbANNumber
;
irr
::
gui
::
IGUIButton
*
btnANNumber
[
12
];
irr
::
gui
::
IGUIButton
*
btnANNumber
[
12
];
//
irr
::
gui
::
IGUIButton
*
btnANNumberOK
;
//
//announce card
irr
::
gui
::
IGUIWindow
*
wANCard
;
...
...
@@ -562,9 +562,9 @@ public:
irr
::
gui
::
IGUIEditBox
*
ebAttack
;
irr
::
gui
::
IGUIEditBox
*
ebDefense
;
irr
::
gui
::
IGUIEditBox
*
ebCardName
;
irr
::
gui
::
IGUIButton
*
btnEffectFilter
;
irr
::
gui
::
IGUIButton
*
btnStartFilter
;
irr
::
gui
::
IGUIButton
*
btnClearFilter
;
irr
::
gui
::
IGUIButton
*
btnEffectFilter
;
//
irr
::
gui
::
IGUIButton
*
btnStartFilter
;
//
irr
::
gui
::
IGUIButton
*
btnClearFilter
;
//
irr
::
gui
::
IGUIWindow
*
wCategories
;
irr
::
gui
::
IGUICheckBox
*
chkCategory
[
32
];
irr
::
gui
::
IGUIButton
*
btnCategoryOK
;
...
...
@@ -583,11 +583,11 @@ public:
irr
::
gui
::
IGUIButton
*
btnRSNo
;
//
//replay control
irr
::
gui
::
IGUIStaticText
*
wReplayControl
;
irr
::
gui
::
IGUIButton
*
btnReplayStart
;
irr
::
gui
::
IGUIButton
*
btnReplayPause
;
irr
::
gui
::
IGUIButton
*
btnReplayStep
;
irr
::
gui
::
IGUIButton
*
btnReplayUndo
;
irr
::
gui
::
IGUIButton
*
btnReplayExit
;
irr
::
gui
::
IGUIButton
*
btnReplayStart
;
//
irr
::
gui
::
IGUIButton
*
btnReplayPause
;
//
irr
::
gui
::
IGUIButton
*
btnReplayStep
;
//
irr
::
gui
::
IGUIButton
*
btnReplayUndo
;
//
irr
::
gui
::
IGUIButton
*
btnReplayExit
;
//
irr
::
gui
::
IGUIButton
*
btnReplaySwap
;
//
//surrender/leave
irr
::
gui
::
IGUIButton
*
btnLeaveGame
;
//
...
...
Classes/gframe/image_manager.cpp
View file @
1d1023f9
...
...
@@ -49,6 +49,8 @@ bool ImageManager::Initial(const path dir) {
tButton_L_pressed
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/sButton_L_pressed.png"
)).
c_str
());
tButton_S
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/sButton_S.png"
)).
c_str
());
tButton_S_pressed
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/sButton_S_pressed.png"
)).
c_str
());
tButton_C
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/sButton_C.png"
)).
c_str
());
tButton_C_pressed
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/sButton_C_pressed.png"
)).
c_str
());
if
(
!
tBackGround_menu
)
tBackGround_menu
=
tBackGround
;
...
...
Classes/gframe/image_manager.h
View file @
1d1023f9
...
...
@@ -71,6 +71,8 @@ public:
irr
::
video
::
ITexture
*
tButton_L_pressed
;
irr
::
video
::
ITexture
*
tButton_S
;
irr
::
video
::
ITexture
*
tButton_S_pressed
;
irr
::
video
::
ITexture
*
tButton_C
;
irr
::
video
::
ITexture
*
tButton_C_pressed
;
std
::
list
<
std
::
string
>
support_types
;
};
...
...
mobile/assets/data/textures/extra/sButton_C.png
0 → 100644
View file @
1d1023f9
7.01 KB
mobile/assets/data/textures/extra/sButton_C_pressed.png
0 → 100644
View file @
1d1023f9
6.27 KB
mobile/assets/data/textures/extra/sButton_L.png
0 → 100644
View file @
1d1023f9
7 KB
mobile/assets/data/textures/extra/sButton_L_pressed.png
0 → 100644
View file @
1d1023f9
6.83 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