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
33bde3fc
Commit
33bde3fc
authored
Dec 14, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/fallenstardust/YGOMobile-cn-ko-en
parents
3c94fdd8
8242a7c5
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
87 additions
and
28 deletions
+87
-28
Classes/gframe/data_manager.cpp
Classes/gframe/data_manager.cpp
+15
-6
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+6
-1
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+8
-9
Classes/gframe/game.h
Classes/gframe/game.h
+5
-5
Classes/gframe/menu_handler.cpp
Classes/gframe/menu_handler.cpp
+49
-0
mobile/assets/data/conf/strings.conf
mobile/assets/data/conf/strings.conf
+1
-2
mobile/assets_en/data/conf/strings.conf
mobile/assets_en/data/conf/strings.conf
+1
-2
mobile/assets_ko/data/conf/strings.conf
mobile/assets_ko/data/conf/strings.conf
+1
-2
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
+1
-1
No files found.
Classes/gframe/data_manager.cpp
View file @
33bde3fc
#include "data_manager.h"
#include "data_manager.h"
#include "game.h"
#include <stdio.h>
#include <stdio.h>
namespace
ygo
{
namespace
ygo
{
...
@@ -321,13 +322,21 @@ int DataManager::CardReader(int code, void* pData) {
...
@@ -321,13 +322,21 @@ int DataManager::CardReader(int code, void* pData) {
return
0
;
return
0
;
}
}
byte
*
DataManager
::
ScriptReaderEx
(
const
char
*
script_name
,
int
*
slen
)
{
byte
*
DataManager
::
ScriptReaderEx
(
const
char
*
script_name
,
int
*
slen
)
{
char
exname
[
256
]
=
"./expansions"
;
// default script name: ./script/c%d.lua
strcat
(
exname
,
script_name
+
1
);
//default script name: ./script/c%d.lua
char
first
[
256
];
byte
*
buffer
=
irr
::
android
::
android_script_reader
(
exname
,
slen
);
char
second
[
256
];
if
(
buffer
)
if
(
mainGame
->
gameConf
.
prefer_expansion_script
)
{
return
buffer
;
sprintf
(
first
,
"expansions/%s"
,
script_name
+
2
);
sprintf
(
second
,
"%s"
,
script_name
+
2
);
}
else
{
sprintf
(
first
,
"%s"
,
script_name
+
2
);
sprintf
(
second
,
"expansions/%s"
,
script_name
+
2
);
}
// byte* buffer = irr::android::android_script_reader(first, slen);
if
(
ScriptReader
(
first
,
slen
))
return
irr
::
android
::
android_script_reader
(
first
,
slen
);
else
else
return
irr
::
android
::
android_script_reader
(
s
cript_name
,
slen
);
return
irr
::
android
::
android_script_reader
(
s
econd
,
slen
);
}
}
byte
*
DataManager
::
ScriptReader
(
const
char
*
script_name
,
int
*
slen
)
{
byte
*
DataManager
::
ScriptReader
(
const
char
*
script_name
,
int
*
slen
)
{
...
...
Classes/gframe/event_handler.cpp
View file @
33bde3fc
...
@@ -1828,6 +1828,11 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -1828,6 +1828,11 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
return
true
;
return
true
;
break
;
break
;
}
}
case
CHECKBOX_PREFER_EXPANSION
:
{
mainGame
->
gameConf
.
prefer_expansion_script
=
mainGame
->
chkPreferExpansionScript
->
isChecked
()
?
1
:
0
;
return
true
;
break
;
}
case
CHECKBOX_DRAW_FIELD_SPELL
:
{
case
CHECKBOX_DRAW_FIELD_SPELL
:
{
mainGame
->
gameConf
.
draw_field_spell
=
mainGame
->
chkDrawFieldSpell
->
isChecked
()
?
1
:
0
;
mainGame
->
gameConf
.
draw_field_spell
=
mainGame
->
chkDrawFieldSpell
->
isChecked
()
?
1
:
0
;
return
true
;
return
true
;
...
@@ -2219,7 +2224,7 @@ void ClientField::UpdateChainButtons() {
...
@@ -2219,7 +2224,7 @@ void ClientField::UpdateChainButtons() {
}
}
}
}
void
ClientField
::
ShowCancelOrFinishButton
(
int
buttonOp
)
{
void
ClientField
::
ShowCancelOrFinishButton
(
int
buttonOp
)
{
if
(
!
mainGame
->
dInfo
.
isReplay
)
{
if
(
!
mainGame
->
gameConf
.
hide_hint_button
&&
!
mainGame
->
dInfo
.
isReplay
)
{
switch
(
buttonOp
)
{
switch
(
buttonOp
)
{
case
1
:
case
1
:
mainGame
->
btnCancelOrFinish
->
setText
(
dataManager
.
GetSysString
(
1295
));
mainGame
->
btnCancelOrFinish
->
setText
(
dataManager
.
GetSysString
(
1295
));
...
...
Classes/gframe/game.cpp
View file @
33bde3fc
...
@@ -460,9 +460,6 @@ bool Game::Initialize() {
...
@@ -460,9 +460,6 @@ bool Game::Initialize() {
chkIgnore2
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
,
posY
+
30
*
yScale
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1291
));
chkIgnore2
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
,
posY
+
30
*
yScale
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1291
));
chkIgnore2
->
setChecked
(
gameConf
.
chkIgnore2
!=
0
);
chkIgnore2
->
setChecked
(
gameConf
.
chkIgnore2
!=
0
);
posY
+=
60
;
posY
+=
60
;
chkHideSetname
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
,
posY
+
30
*
yScale
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1354
));
chkHideSetname
->
setChecked
(
gameConf
.
chkHideSetname
!=
0
);
posY
+=
60
;
chkIgnoreDeckChanges
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1357
));
chkIgnoreDeckChanges
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1357
));
chkIgnoreDeckChanges
->
setChecked
(
gameConf
.
chkIgnoreDeckChanges
!=
0
);
chkIgnoreDeckChanges
->
setChecked
(
gameConf
.
chkIgnoreDeckChanges
!=
0
);
posY
+=
60
;
posY
+=
60
;
...
@@ -474,6 +471,9 @@ bool Game::Initialize() {
...
@@ -474,6 +471,9 @@ bool Game::Initialize() {
posY
+=
60
;
posY
+=
60
;
chkQuickAnimation
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
tabSystem
,
CHECKBOX_QUICK_ANIMATION
,
dataManager
.
GetSysString
(
1299
));
chkQuickAnimation
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
tabSystem
,
CHECKBOX_QUICK_ANIMATION
,
dataManager
.
GetSysString
(
1299
));
chkQuickAnimation
->
setChecked
(
gameConf
.
quick_animation
!=
0
);
chkQuickAnimation
->
setChecked
(
gameConf
.
quick_animation
!=
0
);
posY
+=
60
;
chkPreferExpansionScript
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
posX
,
posY
,
posX
+
260
*
xScale
,
posY
+
30
*
yScale
),
tabSystem
,
CHECKBOX_PREFER_EXPANSION
,
dataManager
.
GetSysString
(
1379
));
chkPreferExpansionScript
->
setChecked
(
gameConf
.
prefer_expansion_script
!=
0
);
//
//
wHand
=
env
->
addWindow
(
rect
<
s32
>
(
500
*
xScale
,
450
*
yScale
,
825
*
xScale
,
605
*
yScale
),
false
,
L""
);
wHand
=
env
->
addWindow
(
rect
<
s32
>
(
500
*
xScale
,
450
*
yScale
,
825
*
xScale
,
605
*
yScale
),
false
,
L""
);
wHand
->
getCloseButton
()
->
setVisible
(
false
);
wHand
->
getCloseButton
()
->
setVisible
(
false
);
...
@@ -850,12 +850,12 @@ bool Game::Initialize() {
...
@@ -850,12 +850,12 @@ bool Game::Initialize() {
}
}
//SINGLE MODE
//SINGLE MODE
irr
::
gui
::
IGUITab
*
tabSingle
=
wSingle
->
addTab
(
dataManager
.
GetSysString
(
1381
));
irr
::
gui
::
IGUITab
*
tabSingle
=
wSingle
->
addTab
(
dataManager
.
GetSysString
(
1381
));
env
->
addStaticText
(
dataManager
.
GetSysString
(
1352
),
rect
<
s32
>
(
360
*
xScale
,
30
*
yScale
,
570
*
xScale
,
50
*
yScale
),
false
,
true
,
tabSingle
);
stSinglePlayInfo
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
360
*
xScale
,
60
*
yScale
,
570
*
xScale
,
295
*
yScale
),
false
,
true
,
tabSingle
);
lstSinglePlayList
=
CAndroidGUIListBox
::
addAndroidGUIListBox
(
env
,
rect
<
s32
>
(
10
*
xScale
,
10
*
yScale
,
350
*
xScale
,
350
*
yScale
),
tabSingle
,
LISTBOX_SINGLEPLAY_LIST
,
true
,
40
*
xScale
);
lstSinglePlayList
=
CAndroidGUIListBox
::
addAndroidGUIListBox
(
env
,
rect
<
s32
>
(
10
*
xScale
,
10
*
yScale
,
350
*
xScale
,
350
*
yScale
),
tabSingle
,
LISTBOX_SINGLEPLAY_LIST
,
true
,
40
*
xScale
);
lstSinglePlayList
->
setItemHeight
(
25
*
yScale
);
lstSinglePlayList
->
setItemHeight
(
25
*
yScale
);
btnLoadSinglePlay
=
env
->
addButton
(
rect
<
s32
>
(
460
*
xScale
,
260
*
yScale
,
570
*
xScale
,
300
*
yScale
),
tabSingle
,
BUTTON_LOAD_SINGLEPLAY
,
dataManager
.
GetSysString
(
1211
));
btnLoadSinglePlay
=
env
->
addButton
(
rect
<
s32
>
(
460
*
xScale
,
260
*
yScale
,
570
*
xScale
,
300
*
yScale
),
tabSingle
,
BUTTON_LOAD_SINGLEPLAY
,
dataManager
.
GetSysString
(
1211
));
btnSinglePlayCancel
=
env
->
addButton
(
rect
<
s32
>
(
460
*
xScale
,
310
*
yScale
,
570
*
xScale
,
350
*
yScale
),
tabSingle
,
BUTTON_CANCEL_SINGLEPLAY
,
dataManager
.
GetSysString
(
1210
));
btnSinglePlayCancel
=
env
->
addButton
(
rect
<
s32
>
(
460
*
xScale
,
310
*
yScale
,
570
*
xScale
,
350
*
yScale
),
tabSingle
,
BUTTON_CANCEL_SINGLEPLAY
,
dataManager
.
GetSysString
(
1210
));
env
->
addStaticText
(
dataManager
.
GetSysString
(
1352
),
rect
<
s32
>
(
360
*
xScale
,
30
*
yScale
,
570
*
xScale
,
50
*
yScale
),
false
,
true
,
tabSingle
);
stSinglePlayInfo
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
360
*
xScale
,
60
*
yScale
,
570
*
xScale
,
295
*
yScale
),
false
,
true
,
tabSingle
);
//replay save
//replay save
wReplaySave
=
env
->
addWindow
(
rect
<
s32
>
(
490
*
xScale
,
180
*
yScale
,
840
*
xScale
,
340
*
yScale
),
false
,
dataManager
.
GetSysString
(
1340
));
wReplaySave
=
env
->
addWindow
(
rect
<
s32
>
(
490
*
xScale
,
180
*
yScale
,
840
*
xScale
,
340
*
yScale
),
false
,
dataManager
.
GetSysString
(
1340
));
wReplaySave
->
getCloseButton
()
->
setVisible
(
false
);
wReplaySave
->
getCloseButton
()
->
setVisible
(
false
);
...
@@ -1384,13 +1384,14 @@ void Game::LoadConfig() {
...
@@ -1384,13 +1384,14 @@ void Game::LoadConfig() {
//system
//system
gameConf
.
chkIgnore1
=
android
::
getIntSetting
(
appMain
,
"chkIgnore1"
,
0
);
gameConf
.
chkIgnore1
=
android
::
getIntSetting
(
appMain
,
"chkIgnore1"
,
0
);
gameConf
.
chkIgnore2
=
android
::
getIntSetting
(
appMain
,
"chkIgnore2"
,
0
);
gameConf
.
chkIgnore2
=
android
::
getIntSetting
(
appMain
,
"chkIgnore2"
,
0
);
gameConf
.
chkHideSetname
=
android
::
getIntSetting
(
appMain
,
"chkHideSetname"
,
0
);
gameConf
.
control_mode
=
android
::
getIntSetting
(
appMain
,
"control_mode"
,
0
);
gameConf
.
control_mode
=
android
::
getIntSetting
(
appMain
,
"control_mode"
,
0
);
gameConf
.
draw_field_spell
=
android
::
getIntSetting
(
appMain
,
"draw_field_spell"
,
1
);
gameConf
.
draw_field_spell
=
android
::
getIntSetting
(
appMain
,
"draw_field_spell"
,
1
);
gameConf
.
chkIgnoreDeckChanges
=
android
::
getIntSetting
(
appMain
,
"chkIgnoreDeckChanges"
,
0
);
gameConf
.
chkIgnoreDeckChanges
=
android
::
getIntSetting
(
appMain
,
"chkIgnoreDeckChanges"
,
0
);
gameConf
.
auto_save_replay
=
android
::
getIntSetting
(
appMain
,
"auto_save_replay"
,
0
);
gameConf
.
auto_save_replay
=
android
::
getIntSetting
(
appMain
,
"auto_save_replay"
,
0
);
gameConf
.
quick_animation
=
android
::
getIntSetting
(
appMain
,
"quick_animation"
,
0
);
gameConf
.
quick_animation
=
android
::
getIntSetting
(
appMain
,
"quick_animation"
,
0
);
//defult Setting without checked
//defult Setting without checked
gameConf
.
hide_setname
=
0
;
gameConf
.
hide_hint_button
=
0
;
gameConf
.
separate_clear_button
=
1
;
gameConf
.
separate_clear_button
=
1
;
gameConf
.
search_multiple_keywords
=
1
;
gameConf
.
search_multiple_keywords
=
1
;
gameConf
.
defaultOT
=
1
;
gameConf
.
defaultOT
=
1
;
...
@@ -1417,8 +1418,6 @@ void Game::SaveConfig() {
...
@@ -1417,8 +1418,6 @@ void Game::SaveConfig() {
android
::
saveIntSetting
(
appMain
,
"chkIgnore1"
,
gameConf
.
chkIgnore1
);
android
::
saveIntSetting
(
appMain
,
"chkIgnore1"
,
gameConf
.
chkIgnore1
);
gameConf
.
chkIgnore2
=
chkIgnore2
->
isChecked
()
?
1
:
0
;
gameConf
.
chkIgnore2
=
chkIgnore2
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"chkIgnore2"
,
gameConf
.
chkIgnore2
);
android
::
saveIntSetting
(
appMain
,
"chkIgnore2"
,
gameConf
.
chkIgnore2
);
gameConf
.
chkHideSetname
=
chkHideSetname
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"chkHideSetname"
,
gameConf
.
chkHideSetname
);
gameConf
.
chkIgnoreDeckChanges
=
chkIgnoreDeckChanges
->
isChecked
()
?
1
:
0
;
gameConf
.
chkIgnoreDeckChanges
=
chkIgnoreDeckChanges
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"chkIgnoreDeckChanges"
,
gameConf
.
chkIgnoreDeckChanges
);
android
::
saveIntSetting
(
appMain
,
"chkIgnoreDeckChanges"
,
gameConf
.
chkIgnoreDeckChanges
);
gameConf
.
auto_save_replay
=
chkAutoSaveReplay
->
isChecked
()
?
1
:
0
;
gameConf
.
auto_save_replay
=
chkAutoSaveReplay
->
isChecked
()
?
1
:
0
;
...
@@ -1444,7 +1443,7 @@ void Game::ShowCardInfo(int code) {
...
@@ -1444,7 +1443,7 @@ void Game::ShowCardInfo(int code) {
else
myswprintf
(
formatBuffer
,
L"%ls[%08d]"
,
dataManager
.
GetName
(
code
),
code
);
else
myswprintf
(
formatBuffer
,
L"%ls[%08d]"
,
dataManager
.
GetName
(
code
),
code
);
stName
->
setText
(
formatBuffer
);
stName
->
setText
(
formatBuffer
);
int
offset
=
0
;
int
offset
=
0
;
if
(
!
chkHideSetname
->
isChecked
()
)
{
if
(
!
gameConf
.
hide_setname
)
{
unsigned
long
long
sc
=
cd
.
setcode
;
unsigned
long
long
sc
=
cd
.
setcode
;
if
(
cd
.
alias
)
{
if
(
cd
.
alias
)
{
auto
aptr
=
dataManager
.
_datas
.
find
(
cd
.
alias
);
auto
aptr
=
dataManager
.
_datas
.
find
(
cd
.
alias
);
...
...
Classes/gframe/game.h
View file @
33bde3fc
...
@@ -35,8 +35,8 @@ struct Config {
...
@@ -35,8 +35,8 @@ struct Config {
int
chkWaitChain
;
int
chkWaitChain
;
int
chkIgnore1
;
int
chkIgnore1
;
int
chkIgnore2
;
int
chkIgnore2
;
int
chkHideS
etname
;
int
hide_s
etname
;
int
chkHideHintB
utton
;
int
hide_hint_b
utton
;
int
control_mode
;
int
control_mode
;
int
draw_field_spell
;
int
draw_field_spell
;
int
separate_clear_button
;
int
separate_clear_button
;
...
@@ -47,7 +47,7 @@ struct Config {
...
@@ -47,7 +47,7 @@ struct Config {
int
enable_bot_mode
;
int
enable_bot_mode
;
int
quick_animation
;
int
quick_animation
;
int
auto_save_replay
;
int
auto_save_replay
;
int
chkAutoSaveReplay
;
int
prefer_expansion_script
;
};
};
struct
DuelInfo
{
struct
DuelInfo
{
...
@@ -248,11 +248,10 @@ public:
...
@@ -248,11 +248,10 @@ public:
irr
::
gui
::
IGUICheckBox
*
chkDrawFieldSpell
;
irr
::
gui
::
IGUICheckBox
*
chkDrawFieldSpell
;
irr
::
gui
::
IGUICheckBox
*
chkQuickAnimation
;
irr
::
gui
::
IGUICheckBox
*
chkQuickAnimation
;
irr
::
gui
::
IGUICheckBox
*
chkAutoSaveReplay
;
irr
::
gui
::
IGUICheckBox
*
chkAutoSaveReplay
;
irr
::
gui
::
IGUICheckBox
*
chkHideSetname
;
irr
::
gui
::
IGUICheckBox
*
chkHideHintButton
;
irr
::
gui
::
IGUICheckBox
*
chkIgnoreDeckChanges
;
irr
::
gui
::
IGUICheckBox
*
chkIgnoreDeckChanges
;
irr
::
gui
::
IGUICheckBox
*
chkAutoSearch
;
irr
::
gui
::
IGUICheckBox
*
chkAutoSearch
;
irr
::
gui
::
IGUICheckBox
*
chkMultiKeywords
;
irr
::
gui
::
IGUICheckBox
*
chkMultiKeywords
;
irr
::
gui
::
IGUICheckBox
*
chkPreferExpansionScript
;
//main menu
//main menu
irr
::
gui
::
IGUIWindow
*
wMainMenu
;
irr
::
gui
::
IGUIWindow
*
wMainMenu
;
irr
::
gui
::
IGUIButton
*
btnLanMode
;
irr
::
gui
::
IGUIButton
*
btnLanMode
;
...
@@ -648,6 +647,7 @@ extern Game* mainGame;
...
@@ -648,6 +647,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_MULTI_KEYWORDS 372
#define CHECKBOX_MULTI_KEYWORDS 372
#define CHECKBOX_PREFER_EXPANSION 373
#define CHECKBOX_DISABLE_CHAT 364
#define CHECKBOX_DISABLE_CHAT 364
#define CHECKBOX_DRAW_FIELD_SPELL 368
#define CHECKBOX_DRAW_FIELD_SPELL 368
#define CHECKBOX_QUICK_ANIMATION 369
#define CHECKBOX_QUICK_ANIMATION 369
...
...
Classes/gframe/menu_handler.cpp
View file @
33bde3fc
...
@@ -479,6 +479,55 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
...
@@ -479,6 +479,55 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
mainGame
->
SetStaticText
(
mainGame
->
stReplayInfo
,
180
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
(
wchar_t
*
)
repinfo
.
c_str
());
mainGame
->
SetStaticText
(
mainGame
->
stReplayInfo
,
180
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
(
wchar_t
*
)
repinfo
.
c_str
());
break
;
break
;
}
}
case
LISTBOX_SINGLEPLAY_LIST
:
{
int
sel
=
mainGame
->
lstSinglePlayList
->
getSelected
();
if
(
sel
==
-
1
)
break
;
const
wchar_t
*
name
=
mainGame
->
lstSinglePlayList
->
getListItem
(
sel
);
wchar_t
fname
[
256
];
myswprintf
(
fname
,
L"./single/%ls"
,
name
);
FILE
*
fp
;
#ifdef _WIN32
fp
=
_wfopen
(
fname
,
L"rb"
);
#else
char
filename
[
256
];
BufferIO
::
EncodeUTF8
(
fname
,
filename
);
fp
=
fopen
(
filename
,
"rb"
);
#endif
if
(
!
fp
)
{
mainGame
->
stSinglePlayInfo
->
setText
(
L""
);
break
;
}
char
linebuf
[
1024
];
wchar_t
wlinebuf
[
1024
];
std
::
wstring
message
=
L""
;
bool
in_message
=
false
;
while
(
fgets
(
linebuf
,
1024
,
fp
))
{
if
(
!
strncmp
(
linebuf
,
"--[[message"
,
11
))
{
size_t
len
=
strlen
(
linebuf
);
char
*
msgend
=
strrchr
(
linebuf
,
']'
);
if
(
len
<=
13
)
{
in_message
=
true
;
continue
;
}
else
if
(
len
>
15
&&
msgend
)
{
*
(
msgend
-
1
)
=
'\0'
;
BufferIO
::
DecodeUTF8
(
linebuf
+
12
,
wlinebuf
);
message
.
append
(
wlinebuf
);
break
;
}
}
if
(
!
strncmp
(
linebuf
,
"]]"
,
2
))
{
in_message
=
false
;
break
;
}
if
(
in_message
)
{
BufferIO
::
DecodeUTF8
(
linebuf
,
wlinebuf
);
message
.
append
(
wlinebuf
);
}
}
mainGame
->
SetStaticText
(
mainGame
->
stSinglePlayInfo
,
200
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
message
.
c_str
());
break
;
}
case
LISTBOX_BOT_LIST
:
{
case
LISTBOX_BOT_LIST
:
{
int
sel
=
mainGame
->
lstBotList
->
getSelected
();
int
sel
=
mainGame
->
lstBotList
->
getSelected
();
if
(
sel
==
-
1
)
if
(
sel
==
-
1
)
...
...
mobile/assets/data/conf/strings.conf
View file @
33bde3fc
...
@@ -380,8 +380,6 @@
...
@@ -380,8 +380,6 @@
!
system
1351
投降
!
system
1351
投降
!
system
1352
主要信息:
!
system
1352
主要信息:
!
system
1353
播放起始于回合:
!
system
1353
播放起始于回合:
!
system
1354
不显示卡片系列
!
system
1355
不显示提示按钮
!
system
1356
是否要放弃对卡组的修改?
!
system
1356
是否要放弃对卡组的修改?
!
system
1357
不提示保留对卡组的修改
!
system
1357
不提示保留对卡组的修改
!
system
1358
键入关键字后自动进行搜索
!
system
1358
键入关键字后自动进行搜索
...
@@ -399,6 +397,7 @@
...
@@ -399,6 +397,7 @@
!
system
1373
名称↓
!
system
1373
名称↓
!
system
1374
连接标记
!
system
1374
连接标记
!
system
1378
使用多个关键词搜索卡片
!
system
1378
使用多个关键词搜索卡片
!
system
1379
优先使用额外卡库数据
!
system
1380
人机模式
!
system
1380
人机模式
!
system
1381
残局模式
!
system
1381
残局模式
!
system
1382
人机信息:
!
system
1382
人机信息:
...
...
mobile/assets_en/data/conf/strings.conf
View file @
33bde3fc
...
@@ -380,8 +380,6 @@
...
@@ -380,8 +380,6 @@
!
system
1351
Surrender
!
system
1351
Surrender
!
system
1352
Main
message
:
!
system
1352
Main
message
:
!
system
1353
Start
at
turn
:
!
system
1353
Start
at
turn
:
!
system
1354
Hide
set
names
!
system
1355
Hide
chain
buttons
!
system
1356
Do
you
want
to
quit
without
saving
?
!
system
1356
Do
you
want
to
quit
without
saving
?
!
system
1357
Ignore
deck
changes
while
quiting
!
system
1357
Ignore
deck
changes
while
quiting
!
system
1358
Search
cards
automatically
!
system
1358
Search
cards
automatically
...
@@ -399,6 +397,7 @@
...
@@ -399,6 +397,7 @@
!
system
1373
Name
↓
!
system
1373
Name
↓
!
system
1374
Link
Arrows
!
system
1374
Link
Arrows
!
system
1378
Multiple
Keyword
Search
!
system
1378
Multiple
Keyword
Search
!
system
1379
First
Using
Expansion
Data
!
system
1380
Single
Mode
!
system
1380
Single
Mode
!
system
1381
Puzzle
Mode
!
system
1381
Puzzle
Mode
!
system
1382
Single
Options
:
!
system
1382
Single
Options
:
...
...
mobile/assets_ko/data/conf/strings.conf
View file @
33bde3fc
...
@@ -380,8 +380,6 @@
...
@@ -380,8 +380,6 @@
!
system
1351
항복
!
system
1351
항복
!
system
1352
정보:
!
system
1352
정보:
!
system
1353
이 턴부터 시작:
!
system
1353
이 턴부터 시작:
!
system
1354
카드군 숨기기
!
system
1355
체인 버튼 숨기기
!
system
1356
덱 변경 사항을 포기하겠습니까?
!
system
1356
덱 변경 사항을 포기하겠습니까?
!
system
1357
덱 변경 사항에 대해 요구하지 않음
!
system
1357
덱 변경 사항에 대해 요구하지 않음
!
system
1358
자동으로 키워드를 검색
!
system
1358
자동으로 키워드를 검색
...
@@ -399,6 +397,7 @@
...
@@ -399,6 +397,7 @@
!
system
1372
수비력↑
!
system
1372
수비력↑
!
system
1373
이름↓
!
system
1373
이름↓
!
system
1374
링크 마커
!
system
1374
링크 마커
!
system
1379
확장팩 사용 스크립트
!
system
1380
AI
모드
!
system
1380
AI
모드
!
system
1381
퍼즐 모드
!
system
1381
퍼즐 모드
!
system
1382
AI
정보:
!
system
1382
AI
정보:
...
...
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
View file @
33bde3fc
...
@@ -131,7 +131,7 @@ public interface Constants {
...
@@ -131,7 +131,7 @@ public interface Constants {
String
ALIPAY_URL
=
"HTTPS://QR.ALIPAY.COM/FKX06491UAXJMGIDTYVC0C"
;
String
ALIPAY_URL
=
"HTTPS://QR.ALIPAY.COM/FKX06491UAXJMGIDTYVC0C"
;
String
URL_HELP
=
"http://www.jianshu.com/p/a43f5d951a25"
;
String
URL_HELP
=
"http://www.jianshu.com/p/a43f5d951a25"
;
String
URL_MASTERRULE_CN
=
"https://ocg-rule.readthedocs.io/zh_CN/master/"
;
String
URL_MASTERRULE_CN
=
"https://ocg-rule.readthedocs.io/zh_CN/master/"
;
String
WIKI_SEARCH_URL
=
"http://www.ourocg.cn/S.aspx?key="
;
String
WIKI_SEARCH_URL
=
"http
s
://www.ourocg.cn/S.aspx?key="
;
String
SERVER_FILE
=
"server_list.xml"
;
String
SERVER_FILE
=
"server_list.xml"
;
String
SHARE_FILE
=
".share_deck.png"
;
String
SHARE_FILE
=
".share_deck.png"
;
...
...
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