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
25b4a08b
Commit
25b4a08b
authored
Sep 04, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distinguish faceup/facedown for cards in extra and removed
parent
eb60a60b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gframe/client_field.cpp
gframe/client_field.cpp
+4
-2
gframe/event_handler.cpp
gframe/event_handler.cpp
+4
-2
No files found.
gframe/client_field.cpp
View file @
25b4a08b
...
...
@@ -398,7 +398,8 @@ void ClientField::ShowSelectCard(bool buttonok, bool chain) {
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
else
{
if
(
selectable_cards
[
i
]
->
controler
)
if
((
selectable_cards
[
i
]
->
controler
)
||
((
selectable_cards
[
i
]
->
location
&
(
LOCATION_EXTRA
+
LOCATION_REMOVED
))
&&
(
selectable_cards
[
i
]
->
position
&
POS_FACEDOWN
)))
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
...
...
@@ -520,7 +521,8 @@ void ClientField::ShowLocationCard() {
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
else
{
if
(
display_cards
[
i
]
->
controler
)
if
((
display_cards
[
i
]
->
controler
)
||
((
display_cards
[
i
]
->
location
&
(
LOCATION_EXTRA
+
LOCATION_REMOVED
))
&&
(
display_cards
[
i
]
->
position
&
POS_FACEDOWN
)))
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
...
...
gframe/event_handler.cpp
View file @
25b4a08b
...
...
@@ -773,7 +773,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
}
else
{
if
(
selectable_cards
[
i
+
pos
]
->
is_selected
)
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffffff00
);
else
if
(
selectable_cards
[
i
+
pos
]
->
controler
)
else
if
((
selectable_cards
[
i
+
pos
]
->
controler
)
||
((
selectable_cards
[
i
+
pos
]
->
location
&
(
LOCATION_EXTRA
+
LOCATION_REMOVED
))
&&
(
selectable_cards
[
i
+
pos
]
->
position
&
POS_FACEDOWN
)))
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
...
...
@@ -805,7 +806,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
else
{
if
(
display_cards
[
i
+
pos
]
->
controler
)
if
((
display_cards
[
i
+
pos
]
->
controler
)
||
((
display_cards
[
i
+
pos
]
->
location
&
(
LOCATION_EXTRA
+
LOCATION_REMOVED
))
&&
(
display_cards
[
i
+
pos
]
->
position
&
POS_FACEDOWN
)))
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffd0d0d0
);
else
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xffffffff
);
}
...
...
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