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
886055ac
Commit
886055ac
authored
Dec 18, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use resize 封装*xScale *yScale
移除baselineProfiles
parent
15b89369
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
13 deletions
+58
-13
Classes/gframe/drawing.cpp
Classes/gframe/drawing.cpp
+10
-11
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+40
-0
Classes/gframe/game.h
Classes/gframe/game.h
+8
-2
mobile/cn/release/baselineProfiles/0/YGOMobile_3.11.13.dm
mobile/cn/release/baselineProfiles/0/YGOMobile_3.11.13.dm
+0
-0
mobile/cn/release/baselineProfiles/1/YGOMobile_3.11.13.dm
mobile/cn/release/baselineProfiles/1/YGOMobile_3.11.13.dm
+0
-0
No files found.
Classes/gframe/drawing.cpp
View file @
886055ac
...
...
@@ -909,12 +909,8 @@ void Game::DrawSpec() {
}
case
100
:
{
if
(
showcardp
<
60
)
{
driver
->
draw2DImage
(
imageManager
.
tHand
[(
showcardcode
>>
16
)
&
0x3
],
recti
(
615
*
mainGame
->
xScale
,
showcarddif
*
mainGame
->
yScale
,
(
615
+
89
)
*
mainGame
->
xScale
,
(
128
+
showcarddif
)
*
mainGame
->
yScale
),
recti
(
0
,
0
,
89
,
128
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tHand
[
showcardcode
&
0x3
],
recti
(
615
*
mainGame
->
xScale
,
(
540
-
showcarddif
)
*
mainGame
->
yScale
,
(
615
+
89
)
*
mainGame
->
xScale
,
(
128
+
540
-
showcarddif
)
*
mainGame
->
yScale
),
recti
(
0
,
0
,
89
,
128
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tHand
[(
showcardcode
>>
16
)
&
0x3
],
recti
(
615
*
mainGame
->
xScale
,
showcarddif
*
mainGame
->
yScale
,
(
615
+
89
)
*
mainGame
->
xScale
,
(
128
+
showcarddif
)
*
mainGame
->
yScale
),
recti
(
0
,
0
,
89
,
128
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tHand
[
showcardcode
&
0x3
],
recti
(
615
*
mainGame
->
xScale
,
(
540
-
showcarddif
)
*
mainGame
->
yScale
,
(
615
+
89
)
*
mainGame
->
xScale
,
(
128
+
540
-
showcarddif
)
*
mainGame
->
yScale
),
recti
(
0
,
0
,
89
,
128
),
0
,
0
,
true
);
float
dy
=
-
0.333333
f
*
showcardp
+
10
;
showcardp
++
;
if
(
showcardp
<
30
)
...
...
@@ -972,16 +968,19 @@ void Game::DrawSpec() {
auto
pos
=
lpcFont
->
getDimension
(
lstr
);
if
(
showcardp
<
10
)
{
int
alpha
=
(
showcardp
*
25
)
<<
24
;
DrawShadowText
(
lpcFont
,
lstr
,
recti
(
550
*
mainGame
->
xScale
-
pos
.
Width
/
2
-
(
9
-
showcardp
)
*
40
*
mainGame
->
xScale
,
270
*
mainGame
->
yScale
,
850
*
mainGame
->
xScale
,
350
*
mainGame
->
yScale
),
recti
(
0
,
1
*
mainGame
->
yScale
,
2
*
mainGame
->
xScale
,
0
)
,
alpha
);
DrawShadowText
(
lpcFont
,
lstr
,
ResizePhaseHint
(
660
-
(
9
-
showcardp
)
*
40
,
290
,
960
,
370
,
pos
.
Width
),
Resize
(
-
1
,
-
1
,
0
,
0
),
alpha
|
0xffffff
,
alpha
);
}
else
if
(
showcardp
<
showcarddif
)
{
DrawShadowText
(
lpcFont
,
lstr
,
recti
(
550
*
mainGame
->
xScale
-
pos
.
Width
/
2
,
270
*
mainGame
->
yScale
,
850
*
mainGame
->
xScale
,
350
*
mainGame
->
yScale
),
recti
(
0
,
1
*
mainGame
->
yScale
,
2
*
mainGame
->
xScale
,
0
),
0xffffffff
);
DrawShadowText
(
lpcFont
,
lstr
,
ResizePhaseHint
(
660
,
290
,
960
,
370
,
pos
.
Width
),
Resize
(
-
1
,
-
1
,
0
,
0
),
0xffffffff
);
if
(
dInfo
.
vic_string
.
size
()
&&
(
showcardcode
==
1
||
showcardcode
==
2
))
{
driver
->
draw2DRectangle
(
0xa0000000
,
recti
(
500
*
mainGame
->
xScale
,
320
*
mainGame
->
yScale
,
840
*
mainGame
->
xScale
,
340
*
mainGame
->
yScale
));
DrawShadowText
(
guiFont
,
dInfo
.
vic_string
,
recti
(
500
*
mainGame
->
xScale
,
320
*
mainGame
->
yScale
,
840
*
mainGame
->
xScale
,
340
*
mainGame
->
yScale
),
recti
(
0
,
1
*
mainGame
->
yScale
,
2
*
mainGame
->
xScale
,
0
),
0xffffffff
,
0xff000000
,
true
,
true
,
0
);
int
w
=
guiFont
->
getDimension
(
dInfo
.
vic_string
).
Width
;
if
(
w
<
200
)
w
=
200
;
driver
->
draw2DRectangle
(
0xa0000000
,
ResizeWin
(
640
-
w
/
2
,
320
,
690
+
w
/
2
,
340
));
DrawShadowText
(
guiFont
,
dInfo
.
vic_string
,
ResizeWin
(
640
-
w
/
2
,
320
,
690
+
w
/
2
,
340
),
Resize
(
-
2
,
-
1
,
0
,
0
),
0xffffffff
,
0xff000000
,
true
,
true
,
0
);
}
}
else
if
(
showcardp
<
showcarddif
+
10
)
{
int
alpha
=
((
showcarddif
+
10
-
showcardp
)
*
25
)
<<
24
;
DrawShadowText
(
lpcFont
,
lstr
,
recti
(
550
*
mainGame
->
xScale
-
pos
.
Width
/
2
+
(
showcardp
-
showcarddif
)
*
40
*
mainGame
->
xScale
,
270
*
mainGame
->
yScale
,
850
*
mainGame
->
xScale
,
350
*
mainGame
->
yScale
),
recti
(
0
,
1
*
mainGame
->
yScale
,
2
*
mainGame
->
xScale
,
0
),
alpha
|
0xffffff
,
0xff000000
,
true
,
false
);
DrawShadowText
(
lpcFont
,
lstr
,
ResizePhaseHint
(
660
+
(
showcardp
-
showcarddif
)
*
40
,
290
,
960
,
370
,
pos
.
Width
),
Resize
(
-
1
,
-
1
,
0
,
0
),
alpha
|
0xffffff
,
alpha
);
}
showcardp
++
;
break
;
...
...
Classes/gframe/game.cpp
View file @
886055ac
...
...
@@ -2186,6 +2186,46 @@ void Game::ResizeChatInputWindow() {
wChat
->
setRelativePosition
(
recti
(
x
,
(
GAME_HEIGHT
-
35
)
*
yScale
,
(
GAME_WIDTH
-
4
)
*
xScale
,
GAME_HEIGHT
*
yScale
));
ebChatInput
->
setRelativePosition
(
recti
(
3
*
xScale
,
2
*
yScale
,
(
GAME_WIDTH
-
6
)
*
xScale
-
wChat
->
getRelativePosition
().
UpperLeftCorner
.
X
,
28
*
xScale
));
}
recti
Game
::
Resize
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
)
{
x
=
x
*
xScale
;
y
=
y
*
yScale
;
x2
=
x2
*
xScale
;
y2
=
y2
*
yScale
;
return
recti
(
x
,
y
,
x2
,
y2
);
}
recti
Game
::
Resize
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
,
s32
dx
,
s32
dy
,
s32
dx2
,
s32
dy2
)
{
x
=
x
*
xScale
+
dx
;
y
=
y
*
yScale
+
dy
;
x2
=
x2
*
xScale
+
dx2
;
y2
=
y2
*
yScale
+
dy2
;
return
recti
(
x
,
y
,
x2
,
y2
);
}
position2di
Game
::
Resize
(
s32
x
,
s32
y
)
{
x
=
x
*
xScale
;
y
=
y
*
yScale
;
return
position2di
(
x
,
y
);
}
position2di
Game
::
ResizeReverse
(
s32
x
,
s32
y
)
{
x
=
x
/
xScale
;
y
=
y
/
yScale
;
return
position2di
(
x
,
y
);
}
recti
Game
::
ResizeWin
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
)
{
s32
w
=
x2
-
x
;
s32
h
=
y2
-
y
;
x
=
(
x
+
w
/
2
)
*
xScale
-
w
/
2
;
y
=
(
y
+
h
/
2
)
*
yScale
-
h
/
2
;
x2
=
w
+
x
;
y2
=
h
+
y
;
return
recti
(
x
,
y
,
x2
,
y2
);
}
recti
Game
::
ResizePhaseHint
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
,
s32
width
)
{
x
=
x
*
xScale
-
width
/
2
;
y
=
y
*
yScale
;
x2
=
x2
*
xScale
;
y2
=
y2
*
yScale
;
return
recti
(
x
,
y
,
x2
,
y2
);
}
void
Game
::
ChangeToIGUIImageWindow
(
irr
::
gui
::
IGUIWindow
*
window
,
irr
::
gui
::
IGUIImage
**
pWindowBackground
,
irr
::
video
::
ITexture
*
image
)
{
window
->
setDrawBackground
(
false
);
recti
pos
=
window
->
getRelativePosition
();
...
...
Classes/gframe/game.h
View file @
886055ac
...
...
@@ -226,6 +226,12 @@ public:
}
void
ResizeChatInputWindow
();
recti
Resize
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
);
recti
Resize
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
,
s32
dx
,
s32
dy
,
s32
dx2
,
s32
dy2
);
position2di
Resize
(
s32
x
,
s32
y
);
position2di
ResizeReverse
(
s32
x
,
s32
y
);
recti
ResizePhaseHint
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
,
s32
width
);
recti
ResizeWin
(
s32
x
,
s32
y
,
s32
x2
,
s32
y2
);
template
<
typename
T
>
static
std
::
vector
<
T
>
TokenizeString
(
T
input
,
const
T
&
token
);
template
<
typename
T
>
...
...
mobile/cn/release/baselineProfiles/0/YGOMobile_3.11.13.dm
deleted
100644 → 0
View file @
15b89369
File deleted
mobile/cn/release/baselineProfiles/1/YGOMobile_3.11.13.dm
deleted
100644 → 0
View file @
15b89369
File deleted
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