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
1dee92a8
Commit
1dee92a8
authored
May 22, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unfinished
parent
85abc9ea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
gframe/drawing.cpp
gframe/drawing.cpp
+15
-5
gframe/image_manager.cpp
gframe/image_manager.cpp
+1
-0
gframe/image_manager.h
gframe/image_manager.h
+1
-0
textures/clock.png
textures/clock.png
+0
-0
No files found.
gframe/drawing.cpp
View file @
1dee92a8
...
...
@@ -531,11 +531,18 @@ void Game::DrawMisc() {
}
}
if
(
!
dInfo
.
isReplay
&&
dInfo
.
player_type
<
7
&&
dInfo
.
time_limit
)
{
if
(
imageManager
.
tClock
)
{
driver
->
draw2DImage
(
imageManager
.
tClock
,
ResizeCardMid
(
472
,
32
,
490
,
50
,
490
,
41
),
ResizeFit
(
0
,
0
,
18
,
18
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tClock
,
ResizeCardMid
(
795
,
32
,
813
,
50
,
813
,
41
),
ResizeFit
(
0
,
0
,
18
,
18
),
0
,
0
,
true
);
}
DrawShadowText
(
numFont
,
dInfo
.
str_time_left
[
0
],
Resize
(
490
,
31
,
525
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
time_color
[
0
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_time_left
[
1
],
Resize
(
795
,
31
,
830
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
time_color
[
1
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
0
],
Resize
(
455
,
31
,
480
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
0
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
1
],
Resize
(
830
,
31
,
855
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
1
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_time_left
[
1
],
Resize
(
813
,
31
,
848
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
time_color
[
1
],
0xff000000
,
true
,
false
,
0
);
driver
->
draw2DImage
(
imageManager
.
tCover
[
0
],
ResizeCardMid
(
443
,
32
,
455
,
50
,
455
,
41
),
ResizeFit
(
0
,
0
,
12
,
18
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tCover
[
1
],
ResizeCardMid
(
850
,
32
,
862
,
50
,
862
,
41
),
ResizeFit
(
0
,
0
,
12
,
18
),
0
,
0
,
true
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
0
],
Resize
(
455
,
31
,
470
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
0
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
1
],
Resize
(
862
,
31
,
887
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
1
],
0xff000000
,
true
,
false
,
0
);
driver
->
draw2DRectangle
(
Resize
(
525
,
34
,
525
+
dInfo
.
time_left
[
0
]
*
100
/
dInfo
.
time_limit
,
44
),
0xa0e0e0e0
,
0xa0e0e0e0
,
0xa0c0c0c0
,
0xa0c0c0c0
);
driver
->
draw2DRectangleOutline
(
Resize
(
525
,
34
,
625
,
44
),
0xffffffff
);
...
...
@@ -543,8 +550,11 @@ void Game::DrawMisc() {
driver
->
draw2DRectangleOutline
(
Resize
(
695
,
34
,
795
,
44
),
0xffffffff
);
}
else
{
driver
->
draw2DImage
(
imageManager
.
tCover
[
0
],
ResizeCardMid
(
588
,
32
,
600
,
50
,
600
,
41
),
ResizeFit
(
0
,
0
,
12
,
18
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tCover
[
1
],
ResizeCardMid
(
695
,
32
,
707
,
50
,
707
,
41
),
ResizeFit
(
0
,
0
,
12
,
18
),
0
,
0
,
true
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
0
],
Resize
(
600
,
31
,
625
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
0
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
1
],
Resize
(
695
,
31
,
720
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
1
],
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
str_card_count
[
1
],
Resize
(
707
,
31
,
732
,
50
),
Resize
(
0
,
1
,
2
,
0
),
dInfo
.
card_count_color
[
1
],
0xff000000
,
true
,
false
,
0
);
}
DrawShadowText
(
numFont
,
dInfo
.
strLP
[
0
],
Resize
(
330
,
12
,
631
,
30
),
Resize
(
0
,
1
,
2
,
0
),
0xffffff00
,
0xff000000
,
true
,
false
,
0
);
DrawShadowText
(
numFont
,
dInfo
.
strLP
[
1
],
Resize
(
691
,
12
,
992
,
30
),
Resize
(
0
,
1
,
2
,
0
),
0xffffff00
,
0xff000000
,
true
,
false
,
0
);
...
...
gframe/image_manager.cpp
View file @
1dee92a8
...
...
@@ -74,6 +74,7 @@ bool ImageManager::Initial() {
snprintf
(
buff
,
100
,
"textures/pscale/lscale_%d.png"
,
i
);
tLScale
[
i
]
=
driver
->
getTexture
(
buff
);
}
tClock
=
driver
->
getTexture
(
"textures/clock.png"
);
return
true
;
}
irr
::
video
::
ITexture
*
ImageManager
::
GetRandomImage
(
int
image_type
)
{
...
...
gframe/image_manager.h
View file @
1dee92a8
...
...
@@ -51,6 +51,7 @@ public:
irr
::
video
::
ITexture
*
tFieldTransparent
[
2
];
irr
::
video
::
ITexture
*
tRScale
[
14
];
irr
::
video
::
ITexture
*
tLScale
[
14
];
irr
::
video
::
ITexture
*
tClock
;
};
extern
ImageManager
imageManager
;
...
...
textures/clock.png
0 → 100644
View file @
1dee92a8
5.22 KB
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