Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
10b29142
Commit
10b29142
authored
Nov 02, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro
parents
ba6e0503
bf1ea010
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
6 deletions
+15
-6
gframe/data_manager.cpp
gframe/data_manager.cpp
+3
-3
gframe/data_manager.h
gframe/data_manager.h
+1
-1
gframe/game.cpp
gframe/game.cpp
+2
-1
gframe/game.h
gframe/game.h
+1
-0
gframe/single_mode.cpp
gframe/single_mode.cpp
+3
-1
strings.conf
strings.conf
+5
-0
No files found.
gframe/data_manager.cpp
View file @
10b29142
...
@@ -188,10 +188,10 @@ const wchar_t* DataManager::GetText(int code) {
...
@@ -188,10 +188,10 @@ const wchar_t* DataManager::GetText(int code) {
return
csit
->
second
.
text
.
c_str
();
return
csit
->
second
.
text
.
c_str
();
return
unknown_string
;
return
unknown_string
;
}
}
const
wchar_t
*
DataManager
::
GetDesc
(
int
strCode
)
{
const
wchar_t
*
DataManager
::
GetDesc
(
unsigned
int
strCode
)
{
if
(
(
unsigned
int
)
strCode
<
10000u
)
if
(
strCode
<
10000u
)
return
GetSysString
(
strCode
);
return
GetSysString
(
strCode
);
unsigned
int
code
=
strCode
>>
4
;
unsigned
int
code
=
(
strCode
>>
4
)
&
0x0fffffff
;
unsigned
int
offset
=
strCode
&
0xf
;
unsigned
int
offset
=
strCode
&
0xf
;
auto
csit
=
_strings
.
find
(
code
);
auto
csit
=
_strings
.
find
(
code
);
if
(
csit
==
_strings
.
end
())
if
(
csit
==
_strings
.
end
())
...
...
gframe/data_manager.h
View file @
10b29142
...
@@ -22,7 +22,7 @@ public:
...
@@ -22,7 +22,7 @@ public:
bool
GetString
(
int
code
,
CardString
*
pStr
);
bool
GetString
(
int
code
,
CardString
*
pStr
);
const
wchar_t
*
GetName
(
int
code
);
const
wchar_t
*
GetName
(
int
code
);
const
wchar_t
*
GetText
(
int
code
);
const
wchar_t
*
GetText
(
int
code
);
const
wchar_t
*
GetDesc
(
int
strCode
);
const
wchar_t
*
GetDesc
(
unsigned
int
strCode
);
const
wchar_t
*
GetSysString
(
int
code
);
const
wchar_t
*
GetSysString
(
int
code
);
const
wchar_t
*
GetVictoryString
(
int
code
);
const
wchar_t
*
GetVictoryString
(
int
code
);
const
wchar_t
*
GetCounterName
(
int
code
);
const
wchar_t
*
GetCounterName
(
int
code
);
...
...
gframe/game.cpp
View file @
10b29142
...
@@ -866,7 +866,8 @@ bool Game::Initialize() {
...
@@ -866,7 +866,8 @@ bool Game::Initialize() {
btnLoadSinglePlay
=
env
->
addButton
(
rect
<
s32
>
(
459
,
301
,
569
,
326
),
tabSingle
,
BUTTON_LOAD_SINGLEPLAY
,
dataManager
.
GetSysString
(
1211
));
btnLoadSinglePlay
=
env
->
addButton
(
rect
<
s32
>
(
459
,
301
,
569
,
326
),
tabSingle
,
BUTTON_LOAD_SINGLEPLAY
,
dataManager
.
GetSysString
(
1211
));
btnSinglePlayCancel
=
env
->
addButton
(
rect
<
s32
>
(
459
,
331
,
569
,
356
),
tabSingle
,
BUTTON_CANCEL_SINGLEPLAY
,
dataManager
.
GetSysString
(
1210
));
btnSinglePlayCancel
=
env
->
addButton
(
rect
<
s32
>
(
459
,
331
,
569
,
356
),
tabSingle
,
BUTTON_CANCEL_SINGLEPLAY
,
dataManager
.
GetSysString
(
1210
));
env
->
addStaticText
(
dataManager
.
GetSysString
(
1352
),
rect
<
s32
>
(
360
,
10
,
550
,
30
),
false
,
true
,
tabSingle
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1352
),
rect
<
s32
>
(
360
,
10
,
550
,
30
),
false
,
true
,
tabSingle
);
stSinglePlayInfo
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
360
,
40
,
560
,
280
),
false
,
true
,
tabSingle
);
stSinglePlayInfo
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
360
,
40
,
560
,
160
),
false
,
true
,
tabSingle
);
chkSinglePlayReturnDeckTop
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
360
,
260
,
560
,
280
),
tabSingle
,
-
1
,
dataManager
.
GetSysString
(
1238
));
//replay save
//replay save
wReplaySave
=
env
->
addWindow
(
rect
<
s32
>
(
510
,
200
,
820
,
320
),
false
,
dataManager
.
GetSysString
(
1340
));
wReplaySave
=
env
->
addWindow
(
rect
<
s32
>
(
510
,
200
,
820
,
320
),
false
,
dataManager
.
GetSysString
(
1340
));
wReplaySave
->
getCloseButton
()
->
setVisible
(
false
);
wReplaySave
->
getCloseButton
()
->
setVisible
(
false
);
...
...
gframe/game.h
View file @
10b29142
...
@@ -420,6 +420,7 @@ public:
...
@@ -420,6 +420,7 @@ public:
irr
::
gui
::
IGUICheckBox
*
chkBotNoShuffleDeck
;
irr
::
gui
::
IGUICheckBox
*
chkBotNoShuffleDeck
;
irr
::
gui
::
IGUIListBox
*
lstSinglePlayList
;
irr
::
gui
::
IGUIListBox
*
lstSinglePlayList
;
irr
::
gui
::
IGUIStaticText
*
stSinglePlayInfo
;
irr
::
gui
::
IGUIStaticText
*
stSinglePlayInfo
;
irr
::
gui
::
IGUICheckBox
*
chkSinglePlayReturnDeckTop
;
irr
::
gui
::
IGUIButton
*
btnLoadSinglePlay
;
irr
::
gui
::
IGUIButton
*
btnLoadSinglePlay
;
irr
::
gui
::
IGUIButton
*
btnSinglePlayCancel
;
irr
::
gui
::
IGUIButton
*
btnSinglePlayCancel
;
//hand
//hand
...
...
gframe/single_mode.cpp
View file @
10b29142
...
@@ -32,7 +32,7 @@ int SingleMode::SinglePlayThread() {
...
@@ -32,7 +32,7 @@ int SingleMode::SinglePlayThread() {
const
int
start_lp
=
8000
;
const
int
start_lp
=
8000
;
const
int
start_hand
=
5
;
const
int
start_hand
=
5
;
const
int
draw_count
=
1
;
const
int
draw_count
=
1
;
const
int
opt
=
0
;
int
opt
=
0
;
std
::
random_device
rd
;
std
::
random_device
rd
;
unsigned
int
seed
=
rd
();
unsigned
int
seed
=
rd
();
mt19937
rnd
(
seed
);
mt19937
rnd
(
seed
);
...
@@ -55,6 +55,8 @@ int SingleMode::SinglePlayThread() {
...
@@ -55,6 +55,8 @@ int SingleMode::SinglePlayThread() {
mainGame
->
dInfo
.
player_type
=
0
;
mainGame
->
dInfo
.
player_type
=
0
;
mainGame
->
dInfo
.
turn
=
0
;
mainGame
->
dInfo
.
turn
=
0
;
mainGame
->
dInfo
.
announce_cache
.
clear
();
mainGame
->
dInfo
.
announce_cache
.
clear
();
if
(
mainGame
->
chkSinglePlayReturnDeckTop
->
isChecked
())
opt
|=
DUEL_RETURN_DECK_TOP
;
char
filename
[
256
];
char
filename
[
256
];
size_t
slen
=
0
;
size_t
slen
=
0
;
if
(
open_file
)
{
if
(
open_file
)
{
...
...
strings.conf
View file @
10b29142
...
@@ -301,6 +301,7 @@
...
@@ -301,6 +301,7 @@
!
system
1235
主机密码:
!
system
1235
主机密码:
!
system
1236
规则:
!
system
1236
规则:
!
system
1237
每回合时间:
!
system
1237
每回合时间:
!
system
1238
不洗切时回卡组改为回顶端
!
system
1244
单局模式
!
system
1244
单局模式
!
system
1245
比赛模式
!
system
1245
比赛模式
!
system
1246
TAG
!
system
1246
TAG
...
@@ -646,6 +647,8 @@
...
@@ -646,6 +647,8 @@
!
counter
0
x105c
燃烧指示物
!
counter
0
x105c
燃烧指示物
!
counter
0
x5d
指示物(机巧传-神使记纪图)
!
counter
0
x5d
指示物(机巧传-神使记纪图)
!
counter
0
x5e
皇之键指示物
!
counter
0
x5e
皇之键指示物
!
counter
0
x5f
拼图指示物
!
counter
0
x60
指示物(北极天熊辐射)
#setnames, using tab for comment
#setnames, using tab for comment
!
setname
0
x1
正义盟军
A
・
O
・
J
!
setname
0
x1
正义盟军
A
・
O
・
J
!
setname
0
x2
次世代 ジェネクス
!
setname
0
x2
次世代 ジェネクス
...
@@ -1126,3 +1129,5 @@
...
@@ -1126,3 +1129,5 @@
!
setname
0
x170
甲虫骑兵
Beetrooper
!
setname
0
x170
甲虫骑兵
Beetrooper
!
setname
0
x171
朋克
P
.
U
.
N
.
K
.
!
setname
0
x171
朋克
P
.
U
.
N
.
K
.
!
setname
0
x172
救祓少女 エクソシスター
!
setname
0
x172
救祓少女 エクソシスター
!
setname
0
x173
恐啡肽狂龙 ダイノルフィア
!
setname
0
x174
恶魔娘 悪魔嬢
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