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
94f7e54b
Commit
94f7e54b
authored
Jun 20, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
24378f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
gframe/drawing.cpp
gframe/drawing.cpp
+14
-14
No files found.
gframe/drawing.cpp
View file @
94f7e54b
...
@@ -281,6 +281,20 @@ void Game::DrawCard(ClientCard* pcard) {
...
@@ -281,6 +281,20 @@ void Game::DrawCard(ClientCard* pcard) {
}
}
if
(
pcard
->
is_moving
)
if
(
pcard
->
is_moving
)
return
;
return
;
if
(
pcard
->
is_selectable
&&
(
pcard
->
location
&
0xe
))
{
float
cv
[
4
]
=
{
1.0
f
,
1.0
f
,
0.0
f
,
1.0
f
};
if
((
pcard
->
location
==
LOCATION_HAND
&&
pcard
->
code
)
||
((
pcard
->
location
&
0xc
)
&&
(
pcard
->
position
&
POS_FACEUP
)))
DrawSelectionLine
(
matManager
.
vCardOutline
,
!
pcard
->
is_selected
,
2
,
cv
);
else
DrawSelectionLine
(
matManager
.
vCardOutliner
,
!
pcard
->
is_selected
,
2
,
cv
);
}
if
(
pcard
->
is_highlighting
)
{
float
cv
[
4
]
=
{
0.0
f
,
1.0
f
,
1.0
f
,
1.0
f
};
if
((
pcard
->
location
==
LOCATION_HAND
&&
pcard
->
code
)
||
((
pcard
->
location
&
0xc
)
&&
(
pcard
->
position
&
POS_FACEUP
)))
DrawSelectionLine
(
matManager
.
vCardOutline
,
true
,
2
,
cv
);
else
DrawSelectionLine
(
matManager
.
vCardOutliner
,
true
,
2
,
cv
);
}
irr
::
core
::
matrix4
im
;
irr
::
core
::
matrix4
im
;
im
.
setTranslation
(
pcard
->
curPos
);
im
.
setTranslation
(
pcard
->
curPos
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
im
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
im
);
...
@@ -301,20 +315,6 @@ void Game::DrawCard(ClientCard* pcard) {
...
@@ -301,20 +315,6 @@ void Game::DrawCard(ClientCard* pcard) {
driver
->
setMaterial
(
matManager
.
mTexture
);
driver
->
setMaterial
(
matManager
.
mTexture
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vNegate
,
4
,
matManager
.
iRectangle
,
2
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vNegate
,
4
,
matManager
.
iRectangle
,
2
);
}
}
if
(
pcard
->
is_selectable
&&
(
pcard
->
location
&
0xe
))
{
float
cv
[
4
]
=
{
1.0
f
,
1.0
f
,
0.0
f
,
1.0
f
};
if
((
pcard
->
location
==
LOCATION_HAND
&&
pcard
->
code
)
||
((
pcard
->
location
&
0xc
)
&&
(
pcard
->
position
&
POS_FACEUP
)))
DrawSelectionLine
(
matManager
.
vCardOutline
,
!
pcard
->
is_selected
,
2
,
cv
);
else
DrawSelectionLine
(
matManager
.
vCardOutliner
,
!
pcard
->
is_selected
,
2
,
cv
);
}
if
(
pcard
->
is_highlighting
)
{
float
cv
[
4
]
=
{
0.0
f
,
1.0
f
,
1.0
f
,
1.0
f
};
if
((
pcard
->
location
==
LOCATION_HAND
&&
pcard
->
code
)
||
((
pcard
->
location
&
0xc
)
&&
(
pcard
->
position
&
POS_FACEUP
)))
DrawSelectionLine
(
matManager
.
vCardOutline
,
true
,
2
,
cv
);
else
DrawSelectionLine
(
matManager
.
vCardOutliner
,
true
,
2
,
cv
);
}
if
(
pcard
->
cmdFlag
&
COMMAND_ATTACK
)
{
if
(
pcard
->
cmdFlag
&
COMMAND_ATTACK
)
{
matManager
.
mTexture
.
setTexture
(
0
,
imageManager
.
tAttack
);
matManager
.
mTexture
.
setTexture
(
0
,
imageManager
.
tAttack
);
driver
->
setMaterial
(
matManager
.
mTexture
);
driver
->
setMaterial
(
matManager
.
mTexture
);
...
...
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