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
e2f3bbec
Commit
e2f3bbec
authored
Dec 25, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ygopro初步建立genesys切换
parent
bfae57c0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
12 deletions
+45
-12
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+19
-6
Classes/gframe/deck_manager.h
Classes/gframe/deck_manager.h
+1
-0
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+20
-6
Classes/gframe/game.h
Classes/gframe/game.h
+5
-0
No files found.
Classes/gframe/deck_con.cpp
View file @
e2f3bbec
...
...
@@ -176,6 +176,7 @@ void DeckBuilder::Terminate() {
void
DeckBuilder
::
setLastLimit
()
{
char
linebuf
[
256
];
if
(
mainGame
->
gameConf
.
use_lflist
)
{
int
lflistsel
=
mainGame
->
cbLFlist
->
getSelected
();
if
(
lflistsel
>=
0
)
{
BufferIO
::
CopyWideString
(
mainGame
->
cbLFlist
->
getItem
(
lflistsel
),
mainGame
->
gameConf
.
last_limit_list_name
);
...
...
@@ -183,6 +184,18 @@ void DeckBuilder::setLastLimit() {
irr
::
android
::
setLastLimit
(
mainGame
->
appMain
,
linebuf
);
ALOGD
(
"cc: game: setLastLimit=%s"
,
linebuf
);
}
}
if
(
mainGame
->
gameConf
.
use_genesys_lflist
)
{
int
lflistsel
=
mainGame
->
cbGenesysLFlist
->
getSelected
();
if
(
lflistsel
>=
0
)
{
BufferIO
::
CopyWideString
(
mainGame
->
cbGenesysLFlist
->
getItem
(
lflistsel
),
mainGame
->
gameConf
.
last_genesys_limit_list_name
);
BufferIO
::
EncodeUTF8
(
mainGame
->
cbGenesysLFlist
->
getItem
(
lflistsel
),
linebuf
);
irr
::
android
::
setLastGenesysLimit
(
mainGame
->
appMain
,
linebuf
);
ALOGD
(
"cc: game: setLastGenesysLimit=%s"
,
linebuf
);
}
}
}
bool
DeckBuilder
::
OnEvent
(
const
irr
::
SEvent
&
event
)
{
#ifdef _IRR_ANDROID_PLATFORM_
...
...
Classes/gframe/deck_manager.h
View file @
e2f3bbec
...
...
@@ -58,6 +58,7 @@ class DeckManager {
public:
Deck
current_deck
;
std
::
vector
<
LFList
>
_lfList
;
std
::
vector
<
LFList
>
_genesys_lfList
;
static
constexpr
int
MAX_YDK_SIZE
=
0x10000
;
...
...
Classes/gframe/game.cpp
View file @
e2f3bbec
...
...
@@ -700,7 +700,10 @@ bool Game::Initialize(ANDROID_APP app, irr::android::InitOptions *options) {
chkDefaultShowChain
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
-
1
,
dataManager
.
GetSysString
(
1354
));
chkDefaultShowChain
->
setChecked
(
gameConf
.
chkDefaultShowChain
!=
0
);
posY
+=
40
;
chkQuickAnimation
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
CHECKBOX_QUICK_ANIMATION
,
dataManager
.
GetSysString
(
1299
));
chkHidePlayerName
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
CHECKBOX_HIDE_PLAYER_NAME
,
dataManager
.
GetSysString
(
1289
));
chkHidePlayerName
->
setChecked
(
gameConf
.
hide_player_name
!=
0
);
posY
+=
0
;
chkQuickAnimation
=
env
->
addCheckBox
(
false
,
Resize
(
0
,
0
,
0
,
0
),
wSettings
,
CHECKBOX_QUICK_ANIMATION
,
dataManager
.
GetSysString
(
1299
));
chkQuickAnimation
->
setChecked
(
gameConf
.
quick_animation
!=
0
);
posY
+=
40
;
chkDrawFieldSpell
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
CHECKBOX_DRAW_FIELD_SPELL
,
dataManager
.
GetSysString
(
1283
));
...
...
@@ -725,14 +728,25 @@ bool Game::Initialize(ANDROID_APP app, irr::android::InitOptions *options) {
cbLFlist
->
setEnabled
(
gameConf
.
use_lflist
);
cbLFlist
->
setSelected
(
gameConf
.
use_lflist
?
gameConf
.
default_lflist
:
cbLFlist
->
getItemCount
()
-
1
);
posY
+=
40
;
chkIgnore1
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
CHECKBOX_DISABLE_CHAT
,
dataManager
.
GetSysString
(
1290
));
// 勾选启用禁卡表
chkGenesysLFlist
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
100
,
posY
+
30
),
wSettings
,
CHECKBOX_LFLIST
,
dataManager
.
GetSysString
(
1288
));
chkGenesysLFlist
->
setChecked
(
gameConf
.
use_genesys_lflist
);
// 启用禁卡表的combobox
cbGenesysLFlist
=
irr
::
gui
::
CAndroidGUIComboBox
::
addAndroidComboBox
(
env
,
Resize
(
posX
+
110
,
posY
,
posX
+
230
,
posY
+
30
),
wSettings
,
COMBOBOX_LFLIST
);
cbGenesysLFlist
->
setMaxSelectionRows
(
6
);
for
(
unsigned
int
i
=
0
;
i
<
deckManager
.
_genesys_lfList
.
size
();
++
i
)
{
cbLFlist
->
addItem
(
deckManager
.
_genesys_lfList
[
i
].
listName
.
c_str
());
if
(
!
wcscmp
(
deckManager
.
_genesys_lfList
[
i
].
listName
.
c_str
(),
gameConf
.
last_genesys_limit_list_name
))
{
//找到名称相同时找到对应的index值作为默认值
gameConf
.
default_genesys_lflist
=
i
;
}
}
posY
+=
0
;
chkIgnore1
=
env
->
addCheckBox
(
false
,
Resize
(
0
,
0
,
0
,
0
),
wSettings
,
CHECKBOX_DISABLE_CHAT
,
dataManager
.
GetSysString
(
1290
));
chkIgnore1
->
setChecked
(
gameConf
.
chkIgnore1
!=
0
);
posY
+=
40
;
chkIgnore2
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
-
1
,
dataManager
.
GetSysString
(
1291
));
chkIgnore2
->
setChecked
(
gameConf
.
chkIgnore2
!=
0
);
posY
+=
40
;
chkHidePlayerName
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
CHECKBOX_HIDE_PLAYER_NAME
,
dataManager
.
GetSysString
(
1289
));
chkHidePlayerName
->
setChecked
(
gameConf
.
hide_player_name
!=
0
);
posY
+=
40
;
chkIgnoreDeckChanges
=
env
->
addCheckBox
(
false
,
Resize
(
posX
,
posY
,
posX
+
260
,
posY
+
30
),
wSettings
,
-
1
,
dataManager
.
GetSysString
(
1357
));
chkIgnoreDeckChanges
->
setChecked
(
gameConf
.
chkIgnoreDeckChanges
!=
0
);
...
...
Classes/gframe/game.h
View file @
e2f3bbec
...
...
@@ -66,6 +66,7 @@ struct Config {
wchar_t
roompass
[
20
]{};
//path
wchar_t
last_limit_list_name
[
256
]{};
wchar_t
last_genesys_limit_list_name
[
256
]{};
wchar_t
lastcategory
[
256
]{};
wchar_t
lastdeck
[
256
]{};
wchar_t
textfont
[
256
]{};
...
...
@@ -82,6 +83,8 @@ struct Config {
int
chkIgnore2
{
0
};
int
use_lflist
{
1
};
int
default_lflist
{
0
};
int
use_genesys_lflist
{
0
};
int
default_genesys_lflist
{
0
};
int
default_rule
{
DEFAULT_DUEL_RULE
};
int
hide_setname
{
0
};
int
hide_hint_button
{
0
};
...
...
@@ -382,6 +385,8 @@ public:
irr
::
gui
::
IGUICheckBox
*
chkPreferExpansionScript
;
irr
::
gui
::
IGUICheckBox
*
chkLFlist
;
irr
::
gui
::
IGUIComboBox
*
cbLFlist
;
irr
::
gui
::
IGUICheckBox
*
chkGenesysLFlist
;
irr
::
gui
::
IGUIComboBox
*
cbGenesysLFlist
;
//sound
irr
::
gui
::
IGUICheckBox
*
chkEnableSound
;
irr
::
gui
::
IGUICheckBox
*
chkEnableMusic
;
...
...
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