Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
c3c84c34
Commit
c3c84c34
authored
Mar 20, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'resize' into test
parents
a8cd0393
30dfe1d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gframe/game.cpp
gframe/game.cpp
+12
-0
No files found.
gframe/game.cpp
View file @
c3c84c34
...
@@ -1445,6 +1445,18 @@ void Game::OnResize() {
...
@@ -1445,6 +1445,18 @@ void Game::OnResize() {
gameConf
.
window_height
=
window_size
.
Height
;
gameConf
.
window_height
=
window_size
.
Height
;
}
}
irr
::
gui
::
CGUITTFont
*
old_numFont
=
numFont
;
irr
::
gui
::
CGUITTFont
*
old_adFont
=
adFont
;
irr
::
gui
::
CGUITTFont
*
old_lpcFont
=
lpcFont
;
numFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
(
yScale
>
0.5
?
16
*
yScale
:
8
));
adFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
(
yScale
>
0.75
?
12
*
yScale
:
9
));
lpcFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
48
*
yScale
);
old_numFont
->
drop
();
old_adFont
->
drop
();
old_lpcFont
->
drop
();
//guiFont = irr::gui::CGUITTFont::createTTFont(env, gameConf.textfont, gameConf.textfontsize * yScale);
//env->getSkin()->setFont(guiFont);
recti
menuposition
=
ResizeWin
(
370
,
200
,
650
,
415
);
recti
menuposition
=
ResizeWin
(
370
,
200
,
650
,
415
);
wMainMenu
->
setRelativePosition
(
recti
(
menuposition
.
UpperLeftCorner
.
X
,
menuposition
.
UpperLeftCorner
.
Y
,
menuposition
.
LowerRightCorner
.
X
+
300
,
menuposition
.
LowerRightCorner
.
Y
+
185
));
wMainMenu
->
setRelativePosition
(
recti
(
menuposition
.
UpperLeftCorner
.
X
,
menuposition
.
UpperLeftCorner
.
Y
,
menuposition
.
LowerRightCorner
.
X
+
300
,
menuposition
.
LowerRightCorner
.
Y
+
185
));
wDeckEdit
->
setRelativePosition
(
Resize
(
309
,
8
,
605
,
130
));
wDeckEdit
->
setRelativePosition
(
Resize
(
309
,
8
,
605
,
130
));
...
...
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