Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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-Cn-Ko-En
Commits
4af34c24
Commit
4af34c24
authored
Apr 20, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
e35c6709
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Classes/gframe/client_field.cpp
Classes/gframe/client_field.cpp
+4
-4
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+1
-1
No files found.
Classes/gframe/client_field.cpp
View file @
4af34c24
...
...
@@ -624,14 +624,14 @@ void ClientField::ShowSelectOption(int select_hint) {
for
(
int
i
=
0
;
i
<
5
;
i
++
)
mainGame
->
btnOption
[
i
]
->
setVisible
(
i
<
count
);
recti
pos
=
mainGame
->
wOptions
->
getRelativePosition
();
int
newheight
=
30
+
4
0
*
(
scrollbar
?
5
:
count
)
*
mainGame
->
yScale
;
int
newheight
=
30
+
7
0
*
(
scrollbar
?
5
:
count
)
*
mainGame
->
yScale
;
int
oldheight
=
pos
.
LowerRightCorner
.
Y
-
pos
.
UpperLeftCorner
.
Y
;
pos
.
UpperLeftCorner
.
Y
=
pos
.
UpperLeftCorner
.
Y
+
(
oldheight
-
newheight
)
/
2
;
pos
.
LowerRightCorner
.
X
=
pos
.
UpperLeftCorner
.
X
+
(
scrollbar
?
375
:
350
);
pos
.
LowerRightCorner
.
X
=
pos
.
UpperLeftCorner
.
X
+
(
scrollbar
?
375
:
350
)
*
mainGame
->
xScale
;
pos
.
LowerRightCorner
.
Y
=
pos
.
UpperLeftCorner
.
Y
+
newheight
;
mainGame
->
wOptions
->
setRelativePosition
(
pos
);
}
else
{
mainGame
->
SetStaticText
(
mainGame
->
stOptions
,
3
1
0
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
mainGame
->
SetStaticText
(
mainGame
->
stOptions
,
3
7
0
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
(
wchar_t
*
)
dataManager
.
GetDesc
(
select_options
[
0
]));
mainGame
->
stOptions
->
setVisible
(
true
);
mainGame
->
btnOptionp
->
setVisible
(
false
);
...
...
@@ -640,7 +640,7 @@ void ClientField::ShowSelectOption(int select_hint) {
for
(
int
i
=
0
;
i
<
5
;
i
++
)
mainGame
->
btnOption
[
i
]
->
setVisible
(
false
);
recti
pos
=
mainGame
->
wOptions
->
getRelativePosition
();
pos
.
LowerRightCorner
.
Y
=
pos
.
UpperLeftCorner
.
Y
+
1
4
0
*
mainGame
->
yScale
;
pos
.
LowerRightCorner
.
Y
=
pos
.
UpperLeftCorner
.
Y
+
1
8
0
*
mainGame
->
yScale
;
mainGame
->
wOptions
->
setRelativePosition
(
pos
);
}
if
(
select_hint
)
...
...
Classes/gframe/game.cpp
View file @
4af34c24
...
...
@@ -556,7 +556,7 @@ bool Game::Initialize() {
stQMessage
->
setTextAlignment
(
irr
::
gui
::
EGUIA_UPPERLEFT
,
irr
::
gui
::
EGUIA_CENTER
);
btnYes
=
env
->
addButton
(
rect
<
s32
>
(
80
*
xScale
,
115
*
yScale
,
170
*
xScale
,
165
*
yScale
),
wQuery
,
BUTTON_YES
,
dataManager
.
GetSysString
(
1213
));
btnNo
=
env
->
addButton
(
rect
<
s32
>
(
200
*
xScale
,
115
*
yScale
,
290
*
xScale
,
165
*
yScale
),
wQuery
,
BUTTON_NO
,
dataManager
.
GetSysString
(
1214
));
//options (3
1
0)
//options (3
7
0)
wOptions
=
env
->
addWindow
(
rect
<
s32
>
(
470
*
xScale
,
180
*
yScale
,
860
*
xScale
,
360
*
yScale
),
false
,
L""
);
wOptions
->
getCloseButton
()
->
setVisible
(
false
);
wOptions
->
setVisible
(
false
);
...
...
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