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
66a582f6
Commit
66a582f6
authored
Jan 09, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认prefer_expansion_script=1
parent
5aae994d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+2
-1
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+0
-6
Classes/gframe/game.h
Classes/gframe/game.h
+2
-2
No files found.
Classes/gframe/event_handler.cpp
View file @
66a582f6
...
...
@@ -2034,11 +2034,12 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
return
true
;
break
;
}
/*
case CHECKBOX_PREFER_EXPANSION: {
mainGame->gameConf.prefer_expansion_script = mainGame->chkPreferExpansionScript->isChecked() ? 1 : 0;
return true;
break;
}
}
*/
case
CHECKBOX_LFLIST
:
{
mainGame
->
gameConf
.
use_lflist
=
mainGame
->
chkLFlist
->
isChecked
()
?
1
:
0
;
mainGame
->
cbLFlist
->
setEnabled
(
mainGame
->
gameConf
.
use_lflist
);
...
...
Classes/gframe/game.cpp
View file @
66a582f6
...
...
@@ -625,9 +625,6 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
chkAutoSaveReplay
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
wSettings
,
-
1
,
dataManager
.
GetSysString
(
1366
));
chkAutoSaveReplay
->
setChecked
(
gameConf
.
auto_save_replay
!=
0
);
posY
+=
40
*
yScale
;
chkPreferExpansionScript
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
280
*
xScale
,
posY
+
30
*
yScale
),
wSettings
,
CHECKBOX_PREFER_EXPANSION
,
dataManager
.
GetSysString
(
1379
));
chkPreferExpansionScript
->
setChecked
(
gameConf
.
prefer_expansion_script
!=
0
);
posY
+=
40
*
yScale
;
chkMusicMode
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
wSettings
,
-
1
,
dataManager
.
GetSysString
(
1281
));
chkMusicMode
->
setChecked
(
gameConf
.
music_mode
!=
0
);
posY
+=
40
*
yScale
;
...
...
@@ -1773,7 +1770,6 @@ void Game::LoadConfig() {
gameConf
.
auto_save_replay
=
android
::
getIntSetting
(
appMain
,
"auto_save_replay"
,
0
);
gameConf
.
quick_animation
=
android
::
getIntSetting
(
appMain
,
"quick_animation"
,
0
);
gameConf
.
draw_single_chain
=
android
::
getIntSetting
(
appMain
,
"draw_single_chain"
,
0
);
gameConf
.
prefer_expansion_script
=
android
::
getIntSetting
(
appMain
,
"prefer_expansion_script"
,
0
);
gameConf
.
enable_sound
=
android
::
getIntSetting
(
appMain
,
"enable_sound"
,
1
);
gameConf
.
sound_volume
=
android
::
getIntSetting
(
appMain
,
"sound_volume"
,
50
);
gameConf
.
enable_music
=
android
::
getIntSetting
(
appMain
,
"enable_music"
,
1
);
...
...
@@ -1824,8 +1820,6 @@ void Game::SaveConfig() {
android
::
saveIntSetting
(
appMain
,
"quick_animation"
,
gameConf
.
quick_animation
);
gameConf
.
draw_single_chain
=
chkDrawSingleChain
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"draw_single_chain"
,
gameConf
.
draw_single_chain
);
gameConf
.
prefer_expansion_script
=
chkPreferExpansionScript
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"prefer_expansion_script"
,
gameConf
.
prefer_expansion_script
);
gameConf
.
enable_sound
=
chkEnableSound
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"enable_sound"
,
gameConf
.
enable_sound
);
gameConf
.
enable_music
=
chkEnableMusic
->
isChecked
()
?
1
:
0
;
...
...
Classes/gframe/game.h
View file @
66a582f6
...
...
@@ -64,7 +64,7 @@ struct Config {
int
auto_save_replay
{
0
};
int
draw_single_chain
{
0
};
int
hide_player_name
{
0
};
int
prefer_expansion_script
{
0
};
int
prefer_expansion_script
{
1
};
//sound
bool
enable_sound
{
true
};
bool
enable_music
{
true
};
...
...
@@ -913,7 +913,7 @@ extern Game* mainGame;
#define BUTTON_CHATTING 370
#define SCROLL_SETTINGS 371
#define CHECKBOX_MULTI_KEYWORDS 372
#define CHECKBOX_PREFER_EXPANSION 373
//
#define CHECKBOX_PREFER_EXPANSION 373
#define CHECKBOX_DRAW_SINGLE_CHAIN 374
#define CHECKBOX_LFLIST 375
#define CHECKBOX_HIDE_PLAYER_NAME 376
...
...
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