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
495c5da8
Commit
495c5da8
authored
Jul 19, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡组管理的退出按钮
parent
16bccfc7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+4
-0
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+8
-5
Classes/gframe/game.h
Classes/gframe/game.h
+2
-0
No files found.
Classes/gframe/deck_con.cpp
View file @
495c5da8
...
...
@@ -704,6 +704,10 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame
->
cbDMCategory
->
setVisible
(
false
);
break
;
}
case
BUTTON_CLOSE_DECKMANAGER
:
{
mainGame
->
HideElement
(
mainGame
->
wDeckManage
);
break
;
}
case
BUTTON_SIDE_OK
:
{
mainGame
->
soundEffectPlayer
->
doPressButton
();
if
(
deckManager
.
current_deck
.
main
.
size
()
!=
pre_mainc
||
deckManager
.
current_deck
.
extra
.
size
()
!=
pre_extrac
...
...
Classes/gframe/game.cpp
View file @
495c5da8
...
...
@@ -631,14 +631,15 @@ bool Game::Initialize() {
//deck edit
wDeckEdit
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
309
*
xScale
,
8
*
yScale
,
605
*
xScale
,
130
*
yScale
),
true
,
false
,
0
,
-
1
,
true
);
wDeckEdit
->
setVisible
(
false
);
btnManageDeck
=
env
->
addButton
(
rect
<
s32
>
(
225
*
xScale
,
5
*
yScale
,
290
*
xScale
,
30
*
yScale
),
wDeckEdit
,
BUTTON_MANAGE_DECK
,
dataManager
.
GetSysString
(
1
328
));
btnManageDeck
=
env
->
addButton
(
rect
<
s32
>
(
225
*
xScale
,
5
*
yScale
,
290
*
xScale
,
30
*
yScale
),
wDeckEdit
,
BUTTON_MANAGE_DECK
,
dataManager
.
GetSysString
(
1
460
));
//deck manage
wDeckManage
=
env
->
addWindow
(
rect
<
s32
>
(
510
*
xScale
,
100
*
yScale
,
970
*
xScale
,
600
*
yScale
),
false
,
dataManager
.
GetSysString
(
1460
),
0
,
WINDOW_DECK_MANAGE
);
wDeckManage
->
setVisible
(
false
);
lstCategories
=
env
->
addListBox
(
rect
<
s32
>
(
10
*
xScale
,
30
*
yScale
,
140
*
xScale
,
480
*
yScale
),
wDeckManage
,
LISTBOX_CATEGORIES
,
true
);
lstCategories
->
setItemHeight
(
22
*
yScale
);
lstDecks
=
env
->
addListBox
(
rect
<
s32
>
(
150
*
xScale
,
30
*
yScale
,
340
*
xScale
,
480
*
yScale
),
wDeckManage
,
LISTBOX_DECKS
,
true
);
lstCategories
->
setItemHeight
(
22
*
yScale
);
wDeckManage
->
getCloseButton
()
->
setVisible
(
false
);
lstCategories
=
env
->
addListBox
(
rect
<
s32
>
(
10
*
xScale
,
30
*
yScale
,
140
*
xScale
,
530
*
yScale
),
wDeckManage
,
LISTBOX_CATEGORIES
,
true
);
lstCategories
->
setItemHeight
(
25
*
yScale
);
lstDecks
=
env
->
addListBox
(
rect
<
s32
>
(
150
*
xScale
,
30
*
yScale
,
340
*
xScale
,
530
*
yScale
),
wDeckManage
,
LISTBOX_DECKS
,
true
);
lstCategories
->
setItemHeight
(
25
*
yScale
);
posY
=
30
;
btnNewCategory
=
env
->
addButton
(
rect
<
s32
>
(
350
*
xScale
,
posY
*
yScale
,
450
*
xScale
,
(
posY
+
40
)
*
yScale
),
wDeckManage
,
BUTTON_NEW_CATEGORY
,
dataManager
.
GetSysString
(
1461
));
posY
+=
50
;
...
...
@@ -659,6 +660,8 @@ bool Game::Initialize() {
cbLFList
=
CAndroidGUIComboBox
::
addAndroidComboBox
(
env
,
rect
<
s32
>
(
350
*
xScale
,
posY
*
yScale
,
450
*
xScale
,
(
posY
+
40
)
*
yScale
),
wDeckManage
,
COMBOBOX_LFLIST
);
for
(
unsigned
int
i
=
0
;
i
<
deckManager
.
_lfList
.
size
();
++
i
)
cbLFList
->
addItem
(
deckManager
.
_lfList
[
i
].
listName
);
posY
+=
50
;
btnCloseDM
=
env
->
addButton
(
rect
<
s32
>
(
350
*
xScale
,
posY
*
yScale
,
450
*
xScale
,
(
posY
+
40
)
*
yScale
),
wDeckManage
,
BUTTON_CLOSE_DECKMANAGER
,
dataManager
.
GetSysString
(
1211
));
//deck manage query
wDMQuery
=
env
->
addWindow
(
rect
<
s32
>
(
490
*
xScale
,
180
*
yScale
,
840
*
xScale
,
340
*
yScale
),
false
,
dataManager
.
GetSysString
(
1460
));
wDMQuery
->
getCloseButton
()
->
setVisible
(
false
);
...
...
Classes/gframe/game.h
View file @
495c5da8
...
...
@@ -469,6 +469,7 @@ public:
irr
::
gui
::
IGUIButton
*
btnDMDeleteDeck
;
irr
::
gui
::
IGUIButton
*
btnMoveDeck
;
irr
::
gui
::
IGUIButton
*
btnCopyDeck
;
irr
::
gui
::
IGUIButton
*
btnCloseDM
;
irr
::
gui
::
IGUIWindow
*
wDMQuery
;
irr
::
gui
::
IGUIStaticText
*
stDMMessage
;
irr
::
gui
::
IGUIStaticText
*
stDMMessage2
;
...
...
@@ -716,6 +717,7 @@ extern Game* mainGame;
#define LISTBOX_DECKS 340
#define BUTTON_DM_OK 341
#define BUTTON_DM_CANCEL 342
#define BUTTON_CLOSE_DECKMANAGER 343
#define COMBOBOX_LFLIST 349
#define CHECKBOX_AUTO_SEARCH 360
...
...
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