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
wyykak
ygopro
Commits
d63a1e6e
Commit
d63a1e6e
authored
May 20, 2017
by
edo9300
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/Fluorohydride/master'
parents
aba4593a
85a6d512
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
23 deletions
+39
-23
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-1
gframe/event_handler.cpp
gframe/event_handler.cpp
+2
-0
gframe/game.cpp
gframe/game.cpp
+24
-18
gframe/game.h
gframe/game.h
+4
-2
strings.conf
strings.conf
+3
-1
system.conf
system.conf
+2
-1
No files found.
gframe/duelclient.cpp
View file @
d63a1e6e
...
...
@@ -309,6 +309,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame
->
btnSideOK
->
setVisible
(
true
);
if
(
mainGame
->
dInfo
.
player_type
<
7
)
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
btnSpectatorSwap
->
setVisible
(
false
);
mainGame
->
btnChainIgnore
->
setVisible
(
false
);
mainGame
->
btnChainAlways
->
setVisible
(
false
);
mainGame
->
btnChainWhenAvail
->
setVisible
(
false
);
...
...
@@ -1489,7 +1490,9 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
select_hint
=
0
;
mainGame
->
stHintMsg
->
setText
(
textBuffer
);
mainGame
->
stHintMsg
->
setVisible
(
true
);
if
(
mainGame
->
dInfo
.
curMsg
==
MSG_SELECT_PLACE
&&
mainGame
->
chkAutoPos
->
isChecked
())
{
if
(
mainGame
->
dInfo
.
curMsg
==
MSG_SELECT_PLACE
&&
(
(
mainGame
->
chkMAutoPos
->
isChecked
()
&&
mainGame
->
dField
.
selectable_field
&
0x7f007f
)
||
(
mainGame
->
chkSTAutoPos
->
isChecked
()
&&
!
(
mainGame
->
dField
.
selectable_field
&
0x7f007f
))))
{
unsigned
int
filter
;
if
(
mainGame
->
dField
.
selectable_field
&
0x7f
)
{
respbuf
[
0
]
=
mainGame
->
LocalPlayer
(
0
);
...
...
gframe/event_handler.cpp
View file @
d63a1e6e
...
...
@@ -122,6 +122,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
wInfos
->
setVisible
(
false
);
mainGame
->
wPhase
->
setVisible
(
false
);
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
btnSpectatorSwap
->
setVisible
(
false
);
mainGame
->
wChat
->
setVisible
(
false
);
mainGame
->
btnCreateHost
->
setEnabled
(
true
);
mainGame
->
btnJoinHost
->
setEnabled
(
true
);
mainGame
->
btnJoinCancel
->
setEnabled
(
true
);
...
...
gframe/game.cpp
View file @
d63a1e6e
...
...
@@ -278,19 +278,21 @@ bool Game::Initialize() {
btnClearLog
=
env
->
addButton
(
rect
<
s32
>
(
160
,
300
,
260
,
325
),
tabLog
,
BUTTON_CLEAR_LOG
,
dataManager
.
GetSysString
(
1272
));
//system
irr
::
gui
::
IGUITab
*
tabSystem
=
wInfos
->
addTab
(
dataManager
.
GetSysString
(
1273
));
chkAutoPos
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
20
,
280
,
45
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1274
));
chkAutoPos
->
setChecked
(
gameConf
.
chkAutoPos
!=
0
);
chkRandomPos
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
40
,
50
,
300
,
75
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1275
));
chkMAutoPos
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
20
,
280
,
45
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1274
));
chkMAutoPos
->
setChecked
(
gameConf
.
chkMAutoPos
!=
0
);
chkSTAutoPos
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
50
,
280
,
75
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1278
));
chkSTAutoPos
->
setChecked
(
gameConf
.
chkSTAutoPos
!=
0
);
chkRandomPos
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
40
,
80
,
300
,
105
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1275
));
chkRandomPos
->
setChecked
(
gameConf
.
chkRandomPos
!=
0
);
chkAutoChain
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
80
,
280
,
10
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1276
));
chkAutoChain
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
110
,
280
,
13
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1276
));
chkAutoChain
->
setChecked
(
gameConf
.
chkAutoChain
!=
0
);
chkWaitChain
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
1
10
,
280
,
13
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1277
));
chkWaitChain
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
1
40
,
280
,
16
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1277
));
chkWaitChain
->
setChecked
(
gameConf
.
chkWaitChain
!=
0
);
chkHideHintButton
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
140
,
280
,
165
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1355
));
chkHideHintButton
->
setChecked
(
gameConf
.
chkHideHintButton
!=
0
);
chkIgnore1
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
170
,
280
,
19
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1290
));
chkIgnore1
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
200
,
280
,
22
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1290
));
chkIgnore1
->
setChecked
(
gameConf
.
chkIgnore1
!=
0
);
chkIgnore2
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
2
00
,
280
,
22
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1291
));
chkIgnore2
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
(
20
,
2
30
,
280
,
25
5
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
1291
));
chkIgnore2
->
setChecked
(
gameConf
.
chkIgnore2
!=
0
);
chkEnableSound
=
env
->
addCheckBox
(
gameConf
.
enablesound
,
rect
<
s32
>
(
20
,
230
,
280
,
255
),
tabSystem
,
-
1
,
dataManager
.
GetSysString
(
2046
));
chkEnableSound
->
setChecked
(
gameConf
.
enablesound
);
...
...
@@ -1000,7 +1002,8 @@ void Game::LoadConfig() {
gameConf
.
lastport
[
0
]
=
0
;
gameConf
.
roompass
[
0
]
=
0
;
//settings
gameConf
.
chkAutoPos
=
1
;
gameConf
.
chkMAutoPos
=
0
;
gameConf
.
chkSTAutoPos
=
1
;
gameConf
.
chkRandomPos
=
0
;
gameConf
.
chkAutoChain
=
0
;
gameConf
.
chkWaitChain
=
0
;
...
...
@@ -1047,8 +1050,10 @@ void Game::LoadConfig() {
}
else
if
(
!
strcmp
(
strbuf
,
"roompass"
))
{
BufferIO
::
DecodeUTF8
(
valbuf
,
wstr
);
BufferIO
::
CopyWStr
(
wstr
,
gameConf
.
roompass
,
20
);
}
else
if
(
!
strcmp
(
strbuf
,
"autopos"
))
{
gameConf
.
chkAutoPos
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"automonsterpos"
))
{
gameConf
.
chkMAutoPos
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"autospellpos"
))
{
gameConf
.
chkSTAutoPos
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"randompos"
))
{
gameConf
.
chkRandomPos
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"autochain"
))
{
...
...
@@ -1116,14 +1121,15 @@ void Game::SaveConfig() {
BufferIO
::
EncodeUTF8
(
gameConf
.
lastport
,
linebuf
);
fprintf
(
fp
,
"lastport = %s
\n
"
,
linebuf
);
//settings
fprintf
(
fp
,
"autopos = %d
\n
"
,
((
chkAutoPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"randompos = %d
\n
"
,
((
chkRandomPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"autochain = %d
\n
"
,
((
chkAutoChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"waitchain = %d
\n
"
,
((
chkWaitChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"mute_opponent = %d
\n
"
,
((
chkIgnore1
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"mute_spectators = %d
\n
"
,
((
chkIgnore2
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"hide_setname = %d
\n
"
,
(
gameConf
.
chkHideSetname
));
fprintf
(
fp
,
"hide_hint_button = %d
\n
"
,
((
chkHideHintButton
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"automonsterpos = %d
\n
"
,
((
mainGame
->
chkMAutoPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"autospellpos = %d
\n
"
,
((
mainGame
->
chkSTAutoPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"randompos = %d
\n
"
,
((
mainGame
->
chkRandomPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"autochain = %d
\n
"
,
((
mainGame
->
chkAutoChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"waitchain = %d
\n
"
,
((
mainGame
->
chkWaitChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"mute_opponent = %d
\n
"
,
((
mainGame
->
chkIgnore1
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"mute_spectators = %d
\n
"
,
((
mainGame
->
chkIgnore2
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"hide_setname = %d
\n
"
,
((
mainGame
->
chkHideSetname
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"hide_hint_button = %d
\n
"
,
((
mainGame
->
chkHideHintButton
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"draw_field_spell = %d
\n
"
,
gameConf
.
draw_field_spell
);
fprintf
(
fp
,
"separate_clear_button = %d
\n
"
,
gameConf
.
separate_clear_button
);
fprintf
(
fp
,
"skin_index = %d
\n
"
,
gameConf
.
skin_index
);
...
...
gframe/game.h
View file @
d63a1e6e
...
...
@@ -26,7 +26,8 @@ struct Config {
wchar_t
numfont
[
256
];
wchar_t
roompass
[
20
];
//settings
int
chkAutoPos
;
int
chkMAutoPos
;
int
chkSTAutoPos
;
int
chkRandomPos
;
int
chkAutoChain
;
int
chkWaitChain
;
...
...
@@ -215,7 +216,8 @@ public:
irr
::
gui
::
IGUIStaticText
*
stText
;
irr
::
gui
::
IGUIStaticText
*
stVolume
;
irr
::
gui
::
IGUIScrollBar
*
scrCardText
;
irr
::
gui
::
IGUICheckBox
*
chkAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkMAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkSTAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkRandomPos
;
irr
::
gui
::
IGUICheckBox
*
chkAutoChain
;
irr
::
gui
::
IGUICheckBox
*
chkWaitChain
;
...
...
strings.conf
View file @
d63a1e6e
...
...
@@ -116,6 +116,7 @@
!
system
568
Select
a
card
to
activate
the
effect
!
system
569
Select
a
Zone
to
play
[%
ls
]
!
system
570
Select
a
Zone
to
become
unusable
!
system
571
Select
a
Zone
to
move
the
card
!
system
1000
Deck
!
system
1001
Hand
!
system
1002
Monster
Zone
...
...
@@ -299,10 +300,11 @@
!
system
1271
Log
!
system
1272
Clear
Log
!
system
1273
Settings
!
system
1274
Auto
c
ard
placing
!
system
1274
Auto
Monster
C
ard
placing
!
system
1275
↑
Random
card
placing
!
system
1276
Auto
Chain
order
!
system
1277
No
delay
for
Chain
!
system
1278
Auto
Spell
/
Trap
Card
placing
!
system
1280
Standard
duel
!
system
1281
Custom
!
system
1290
Mute
opponent
...
...
system.conf
View file @
d63a1e6e
...
...
@@ -11,7 +11,8 @@ numfont = c:/windows/fonts/arialbd.ttf
serverport
=
7911
lasthost
=
127
.
0
.
0
.
1
lastport
=
7911
autopos
=
1
automonsterpos
=
0
autospellpos
=
1
randompos
=
0
autochain
=
0
waitchain
=
0
...
...
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