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
4e937097
Commit
4e937097
authored
Jun 20, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
into link
parents
03cc48c7
94f7e54b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
gframe/client_field.cpp
gframe/client_field.cpp
+2
-0
gframe/drawing.cpp
gframe/drawing.cpp
+14
-14
textures/chaintarget.png
textures/chaintarget.png
+0
-0
No files found.
gframe/client_field.cpp
View file @
4e937097
...
...
@@ -65,6 +65,8 @@ void ClientField::Clear() {
overlay_cards
.
clear
();
extra_p_count
[
0
]
=
0
;
extra_p_count
[
1
]
=
0
;
player_desc_hints
[
0
].
clear
();
player_desc_hints
[
1
].
clear
();
chains
.
clear
();
activatable_cards
.
clear
();
summonable_cards
.
clear
();
...
...
gframe/drawing.cpp
View file @
4e937097
...
...
@@ -281,6 +281,20 @@ void Game::DrawCard(ClientCard* pcard) {
}
if
(
pcard
->
is_moving
)
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
;
im
.
setTranslation
(
pcard
->
curPos
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
im
);
...
...
@@ -301,20 +315,6 @@ void Game::DrawCard(ClientCard* pcard) {
driver
->
setMaterial
(
matManager
.
mTexture
);
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
)
{
matManager
.
mTexture
.
setTexture
(
0
,
imageManager
.
tAttack
);
driver
->
setMaterial
(
matManager
.
mTexture
);
...
...
textures/chaintarget.png
View replaced file @
03cc48c7
View file @
4e937097
4.5 KB
|
W:
|
H:
2.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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