Commit 2a493a29 authored by fallenstardust's avatar fallenstardust

整理保存设置&可开关场地背景

parent 9f111e37
...@@ -1807,9 +1807,12 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) { ...@@ -1807,9 +1807,12 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
return true; return true;
break; break;
} }
// case CHECKBOX_QUICK_ANIMATION: { case CHECKBOX_QUICK_ANIMATION: {
// mainGame->gameConf.quick_animation = mainGame->chkQuickAnimation->isChecked() ? 1 : 0; mainGame->gameConf.quick_animation = mainGame->chkQuickAnimation->isChecked() ? 1 : 0;
// } }
case CHECKBOX_DRAW_FIELD_SPELL: {
mainGame->gameConf.draw_field_spell = mainGame->chkDrawFieldSpell->isChecked() ? 1 : 0;
}
} }
break; break;
} }
......
...@@ -448,6 +448,9 @@ bool Game::Initialize() { ...@@ -448,6 +448,9 @@ bool Game::Initialize() {
chkWaitChain = env->addCheckBox(false, rect<s32>(posX, posY, posX + 260 * xScale, posY + 30 * yScale), tabHelper, -1, dataManager.GetSysString(1277)); chkWaitChain = env->addCheckBox(false, rect<s32>(posX, posY, posX + 260 * xScale, posY + 30 * yScale), tabHelper, -1, dataManager.GetSysString(1277));
chkWaitChain->setChecked(gameConf.chkWaitChain != 0); chkWaitChain->setChecked(gameConf.chkWaitChain != 0);
posY += 60; posY += 60;
chkDrawFieldSpell = env->addCheckBox(false, rect<s32>(posX, posY, posX + 260 * xScale, posY + 30 * yScale), tabHelper, CHECKBOX_DRAW_FIELD_SPELL, dataManager.GetSysString(1277));
chkDrawFieldSpell->setChecked(gameConf.draw_field_spell != 0);
posY += 60;
chkQuickAnimation = env->addCheckBox(false, rect<s32>(posX, posY, posX + 260 * xScale, posY + 30 * yScale), tabHelper, CHECKBOX_QUICK_ANIMATION, dataManager.GetSysString(1299)); chkQuickAnimation = env->addCheckBox(false, rect<s32>(posX, posY, posX + 260 * xScale, posY + 30 * yScale), tabHelper, CHECKBOX_QUICK_ANIMATION, dataManager.GetSysString(1299));
chkQuickAnimation->setChecked(gameConf.quick_animation != 0); chkQuickAnimation->setChecked(gameConf.quick_animation != 0);
//system //system
...@@ -1366,6 +1369,7 @@ void Game::LoadConfig() { ...@@ -1366,6 +1369,7 @@ void Game::LoadConfig() {
gameConf.chkRandomPos = android::getIntSetting(appMain, "chkRandomPos", 0); gameConf.chkRandomPos = android::getIntSetting(appMain, "chkRandomPos", 0);
gameConf.chkAutoChain = android::getIntSetting(appMain, "chkAutoChain", 0); gameConf.chkAutoChain = android::getIntSetting(appMain, "chkAutoChain", 0);
gameConf.chkWaitChain = android::getIntSetting(appMain, "chkWaitChain", 0); gameConf.chkWaitChain = android::getIntSetting(appMain, "chkWaitChain", 0);
gameConf.draw_field_spell = android::getIntSetting(appMain, "draw_field_spell", 0);
gameConf.quick_animation = android::getIntSetting(appMain, "quick_animation", 0); gameConf.quick_animation = android::getIntSetting(appMain, "quick_animation", 0);
//system //system
gameConf.chkIgnore1 = android::getIntSetting(appMain, "chkIgnore1", 0); gameConf.chkIgnore1 = android::getIntSetting(appMain, "chkIgnore1", 0);
...@@ -1382,69 +1386,36 @@ void Game::LoadConfig() { ...@@ -1382,69 +1386,36 @@ void Game::LoadConfig() {
} }
void Game::SaveConfig() { void Game::SaveConfig() {
//char linebuf[256];
//BufferIO::EncodeUTF8(gameConf.lastdeck, linebuf);
//android::setLastDeck(appMain, linebuf);
int cur;
//helper //helper
cur = chkMAutoPos->isChecked()?1:0; gameConf.chkMAutoPos = chkMAutoPos->isChecked() ? 1 : 0;
if(cur != gameConf.chkMAutoPos){ android::saveIntSetting(appMain, "chkMAutoPos", gameConf.chkMAutoPos);
gameConf.chkMAutoPos = cur; gameConf.chkSTAutoPos = chkSTAutoPos->isChecked() ? 1 : 0;
android::saveIntSetting(appMain, "chkMAutoPos", gameConf.chkMAutoPos); android::saveIntSetting(appMain, "chkSTAutoPos", gameConf.chkSTAutoPos);
} gameConf.chkRandomPos = chkRandomPos->isChecked() ? 1 : 0;
cur = chkSTAutoPos->isChecked()?1:0; android::saveIntSetting(appMain, "chkRandomPos", gameConf.chkRandomPos);
if(cur != gameConf.chkSTAutoPos){ gameConf.chkAutoChain = chkAutoChain->isChecked() ? 1 : 0;
gameConf.chkSTAutoPos = cur; android::saveIntSetting(appMain, "chkAutoChain", gameConf.chkAutoChain);
android::saveIntSetting(appMain, "chkSTAutoPos", gameConf.chkSTAutoPos); gameConf.chkWaitChain = chkWaitChain->isChecked() ? 1 : 0;
} android::saveIntSetting(appMain, "chkWaitChain", gameConf.chkWaitChain);
cur = chkRandomPos->isChecked()?1:0; gameConf.draw_field_spell = chkDrawFieldSpell->isChecked() ? 1 : 0;
if(cur != gameConf.chkRandomPos){ android::saveIntSetting(appMain, "draw_field_spell", gameConf.draw_field_spell);
gameConf.chkRandomPos = cur; gameConf.quick_animation = chkQuickAnimation->isChecked() ? 1 : 0;
android::saveIntSetting(appMain, "chkRandomPos", gameConf.chkRandomPos); android::saveIntSetting(appMain, "quick_animation", gameConf.quick_animation);
}
cur = chkAutoChain->isChecked()?1:0;
if(cur != gameConf.chkAutoChain){
gameConf.chkAutoChain = cur;
android::saveIntSetting(appMain, "chkAutoChain", gameConf.chkAutoChain);
}
cur = chkWaitChain->isChecked()?1:0;
if(cur != gameConf.chkWaitChain){
gameConf.chkWaitChain = cur;
android::saveIntSetting(appMain, "chkWaitChain", gameConf.chkWaitChain);
}
cur = chkQuickAnimation->isChecked()?1:0;
if(cur != gameConf.quick_animation){
gameConf.quick_animation = cur;
android::saveIntSetting(appMain, "quick_animation", gameConf.quick_animation);
}
//system //system
cur = chkIgnore1->isChecked()?1:0; gameConf.chkIgnore1 = chkIgnore1->isChecked() ? 1 : 0;
if(cur != gameConf.chkIgnore1){ android::saveIntSetting(appMain, "chkIgnore1", gameConf.chkIgnore1);
gameConf.chkIgnore1 = cur; gameConf.chkIgnore2 = chkIgnore2->isChecked() ? 1 : 0;
android::saveIntSetting(appMain, "chkIgnore1", gameConf.chkIgnore1); android::saveIntSetting(appMain, "chkIgnore2", gameConf.chkIgnore2);
} gameConf.chkHideSetname = chkHideSetname->isChecked() ? 1 : 0;
cur = chkIgnore2->isChecked()?1:0; android::saveIntSetting(appMain, "chkHideSetname", gameConf.chkHideSetname);
if(cur != gameConf.chkIgnore2){ gameConf.chkIgnoreDeckChanges = chkIgnoreDeckChanges->isChecked() ? 1 : 0;
gameConf.chkIgnore2 = cur; android::saveIntSetting(appMain, "chkIgnoreDeckChanges", gameConf.chkIgnoreDeckChanges);
android::saveIntSetting(appMain, "chkIgnore2", gameConf.chkIgnore2);
}
cur = chkHideSetname->isChecked()?1:0;
if(cur != gameConf.chkHideSetname){
gameConf.chkHideSetname = cur;
android::saveIntSetting(appMain, "chkHideSetname", gameConf.chkHideSetname);
}
cur = chkIgnoreDeckChanges->isChecked()?1:0;
if(cur != gameConf.chkIgnoreDeckChanges){
gameConf.chkIgnoreDeckChanges = cur;
android::saveIntSetting(appMain, "chkIgnoreDeckChanges", gameConf.chkIgnoreDeckChanges);
}
//gameConf.defaultOT = defaultOT->isChecked()?1:0; //gameConf.defaultOT = defaultOT->isChecked()?1:0;
// android::saveIntSetting(appMain, "defaultOT", gameConf.defaultOT); // android::saveIntSetting(appMain, "defaultOT", gameConf.defaultOT);
//gameConf.control_mode = control_mode->isChecked()?1:0; //gameConf.control_mode = control_mode->isChecked()?1:0;
// android::saveIntSetting(appMain, "control_mode", gameConf.control_mode); // android::saveIntSetting(appMain, "control_mode", gameConf.control_mode);
//gameConf.draw_field_spell = draw_field_spell->isChecked()?1:0;
// android::saveIntSetting(appMain, "draw_field_spell", gameConf.draw_field_spell);
//gameConf.separate_clear_button = separate_clear_button->isChecked()?1:0; //gameConf.separate_clear_button = separate_clear_button->isChecked()?1:0;
// android::saveIntSetting(appMain, "separate_clear_button", gameConf.separate_clear_button); // android::saveIntSetting(appMain, "separate_clear_button", gameConf.separate_clear_button);
//TEST BOT MODE //TEST BOT MODE
......
...@@ -240,6 +240,7 @@ public: ...@@ -240,6 +240,7 @@ public:
irr::gui::IGUICheckBox* chkRandomPos; irr::gui::IGUICheckBox* chkRandomPos;
irr::gui::IGUICheckBox* chkAutoChain; irr::gui::IGUICheckBox* chkAutoChain;
irr::gui::IGUICheckBox* chkWaitChain; irr::gui::IGUICheckBox* chkWaitChain;
irr::gui::IGUICheckBox* chkDrawFieldSpell;
irr::gui::IGUICheckBox* chkQuickAnimation; irr::gui::IGUICheckBox* chkQuickAnimation;
irr::gui::IGUICheckBox* chkHideSetname; irr::gui::IGUICheckBox* chkHideSetname;
irr::gui::IGUICheckBox* chkHideHintButton; irr::gui::IGUICheckBox* chkHideHintButton;
...@@ -639,6 +640,7 @@ extern Game* mainGame; ...@@ -639,6 +640,7 @@ extern Game* mainGame;
#define BUTTON_CANCEL_SINGLEPLAY 352 #define BUTTON_CANCEL_SINGLEPLAY 352
#define CHECKBOX_AUTO_SEARCH 360 #define CHECKBOX_AUTO_SEARCH 360
#define CHECKBOX_DISABLE_CHAT 364 #define CHECKBOX_DISABLE_CHAT 364
#define CHECKBOX_DRAW_FIELD_SPELL 368
#define CHECKBOX_QUICK_ANIMATION 369 #define CHECKBOX_QUICK_ANIMATION 369
#define COMBOBOX_SORTTYPE 370 #define COMBOBOX_SORTTYPE 370
#define COMBOBOX_LIMIT 371 #define COMBOBOX_LIMIT 371
......
...@@ -22,8 +22,10 @@ ...@@ -22,8 +22,10 @@
<pre> <pre>
更新: 更新:
1.更新ygo内核; 1.更新ygo内核;
2.系统设定中支持加速模式;
3.新卡SR07+VJ; 3.新卡SR07+VJ;
优化:
1.辅助功能中支持加速模式;
2.辅助功能中支持开关场地背景;
</pre> </pre>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -308,6 +308,7 @@ ...@@ -308,6 +308,7 @@
!system 1276 自动排列连锁顺序 !system 1276 自动排列连锁顺序
!system 1277 没有可连锁的卡时延迟回应 !system 1277 没有可连锁的卡时延迟回应
!system 1278 自动选择魔法/陷阱卡位置 !system 1278 自动选择魔法/陷阱卡位置
!system 1279 显示场地背景
!system 1290 停用聊天功能 !system 1290 停用聊天功能
!system 1291 忽略观战者发言 !system 1291 忽略观战者发言
!system 1292 □忽略时点 !system 1292 □忽略时点
......
...@@ -308,6 +308,7 @@ ...@@ -308,6 +308,7 @@
!system 1276 Auto Chain order !system 1276 Auto Chain order
!system 1277 No delay for Chain !system 1277 No delay for Chain
!system 1278 Auto spell/trap placing !system 1278 Auto spell/trap placing
!system 1279 Drawing field spell
!system 1290 Disable Chatting !system 1290 Disable Chatting
!system 1291 Mute spectators !system 1291 Mute spectators
!system 1292 Ignore chain !system 1292 Ignore chain
......
...@@ -308,6 +308,7 @@ ...@@ -308,6 +308,7 @@
!system 1276 자동 체인 !system 1276 자동 체인
!system 1277 딜레이 없이 체인 !system 1277 딜레이 없이 체인
!system 1278 카드 위치 자동 (마법&함정) !system 1278 카드 위치 자동 (마법&함정)
!system 1279 전시 회장 배경
!system 1290 상대방 메시지 무시 !system 1290 상대방 메시지 무시
!system 1291 관전자 메시지 무시 !system 1291 관전자 메시지 무시
!system 1292 체인 무시 !system 1292 체인 무시
......
...@@ -8,7 +8,7 @@ android { ...@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 22
versionCode 33060926 versionCode 330601001
versionName "3.3.6" versionName "3.3.6"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment