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
15089d92
Commit
15089d92
authored
Feb 20, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化里侧除外、超量素材的显示颜色区分
parent
435c57e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Classes/gframe/client_field.cpp
Classes/gframe/client_field.cpp
+4
-4
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+4
-4
No files found.
Classes/gframe/client_field.cpp
View file @
15089d92
...
@@ -499,14 +499,14 @@ void ClientField::ShowSelectCard(bool buttonok, bool chain) {
...
@@ -499,14 +499,14 @@ void ClientField::ShowSelectCard(bool buttonok, bool chain) {
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
else
if
(
selectable_cards
[
i
]
->
location
==
LOCATION_OVERLAY
)
{
else
if
(
selectable_cards
[
i
]
->
location
==
LOCATION_OVERLAY
)
{
if
(
selectable_cards
[
i
]
->
owner
!=
selectable_cards
[
i
]
->
overlayTarget
->
controler
)
if
(
selectable_cards
[
i
]
->
owner
!=
selectable_cards
[
i
]
->
overlayTarget
->
controler
)
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
f0f8ff
);
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
008B00
);
if
(
selectable_cards
[
i
]
->
overlayTarget
->
controler
)
if
(
selectable_cards
[
i
]
->
overlayTarget
->
controler
)
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
else
else
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
}
else
if
(
selectable_cards
[
i
]
->
location
==
LOCATION_DECK
||
selectable_cards
[
i
]
->
location
==
LOCATION_EXTRA
||
selectable_cards
[
i
]
->
location
==
LOCATION_REMOVED
)
{
}
else
if
(
selectable_cards
[
i
]
->
location
==
LOCATION_DECK
||
selectable_cards
[
i
]
->
location
==
LOCATION_EXTRA
||
selectable_cards
[
i
]
->
location
==
LOCATION_REMOVED
)
{
if
(
selectable_cards
[
i
]
->
position
&
POS_FACEDOWN
)
if
(
selectable_cards
[
i
]
->
position
&
POS_FACEDOWN
)
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
f0f8ff
);
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
008B00
);
if
(
selectable_cards
[
i
]
->
controler
)
if
(
selectable_cards
[
i
]
->
controler
)
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
else
else
...
@@ -630,14 +630,14 @@ void ClientField::ShowLocationCard() {
...
@@ -630,14 +630,14 @@ void ClientField::ShowLocationCard() {
mainGame
->
stDisplayPos
[
i
]
->
setText
(
formatBuffer
);
mainGame
->
stDisplayPos
[
i
]
->
setText
(
formatBuffer
);
if
(
display_cards
[
i
]
->
location
==
LOCATION_OVERLAY
)
{
if
(
display_cards
[
i
]
->
location
==
LOCATION_OVERLAY
)
{
if
(
display_cards
[
i
]
->
owner
!=
display_cards
[
i
]
->
overlayTarget
->
controler
)
if
(
display_cards
[
i
]
->
owner
!=
display_cards
[
i
]
->
overlayTarget
->
controler
)
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
f0f8ff
);
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
000099
);
if
(
display_cards
[
i
]
->
overlayTarget
->
controler
)
if
(
display_cards
[
i
]
->
overlayTarget
->
controler
)
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
else
else
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
}
else
if
(
display_cards
[
i
]
->
location
==
LOCATION_EXTRA
||
display_cards
[
i
]
->
location
==
LOCATION_REMOVED
)
{
}
else
if
(
display_cards
[
i
]
->
location
==
LOCATION_EXTRA
||
display_cards
[
i
]
->
location
==
LOCATION_REMOVED
)
{
if
(
display_cards
[
i
]
->
position
&
POS_FACEDOWN
)
if
(
display_cards
[
i
]
->
position
&
POS_FACEDOWN
)
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
f0f8ff
);
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
000099
);
if
(
display_cards
[
i
]
->
controler
)
if
(
display_cards
[
i
]
->
controler
)
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
else
else
...
...
Classes/gframe/event_handler.cpp
View file @
15089d92
...
@@ -1008,7 +1008,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -1008,7 +1008,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
else
if
(
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_OVERLAY
)
{
else
if
(
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_OVERLAY
)
{
if
(
selectable_cards
[
i
+
pos
]
->
owner
!=
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
if
(
selectable_cards
[
i
+
pos
]
->
owner
!=
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
f0f8ff
);
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
000099
);
if
(
selectable_cards
[
i
+
pos
]
->
is_selected
)
if
(
selectable_cards
[
i
+
pos
]
->
is_selected
)
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0x6011113d
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0x6011113d
);
else
if
(
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
else
if
(
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
...
@@ -1017,7 +1017,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -1017,7 +1017,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
}
else
if
(
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_DECK
||
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_EXTRA
||
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_REMOVED
)
{
}
else
if
(
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_DECK
||
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_EXTRA
||
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_REMOVED
)
{
if
(
selectable_cards
[
i
+
pos
]
->
position
&
POS_FACEDOWN
)
if
(
selectable_cards
[
i
+
pos
]
->
position
&
POS_FACEDOWN
)
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
f0f8ff
);
mainGame
->
stCardPos
[
i
]
->
setOverrideColor
(
0xff
000099
);
if
(
selectable_cards
[
i
+
pos
]
->
is_selected
)
if
(
selectable_cards
[
i
+
pos
]
->
is_selected
)
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0x6011113d
);
mainGame
->
stCardPos
[
i
]
->
setBackgroundColor
(
0x6011113d
);
else
if
(
selectable_cards
[
i
+
pos
]
->
controler
)
else
if
(
selectable_cards
[
i
+
pos
]
->
controler
)
...
@@ -1056,7 +1056,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -1056,7 +1056,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
stDisplayPos
[
i
]
->
setText
(
formatBuffer
);
mainGame
->
stDisplayPos
[
i
]
->
setText
(
formatBuffer
);
if
(
display_cards
[
i
+
pos
]
->
location
==
LOCATION_OVERLAY
)
{
if
(
display_cards
[
i
+
pos
]
->
location
==
LOCATION_OVERLAY
)
{
if
(
display_cards
[
i
+
pos
]
->
owner
!=
display_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
if
(
display_cards
[
i
+
pos
]
->
owner
!=
display_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
f0f8
ff
);
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
0000
ff
);
// BackgroundColor: controller of the xyz monster
// BackgroundColor: controller of the xyz monster
if
(
display_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
if
(
display_cards
[
i
+
pos
]
->
overlayTarget
->
controler
)
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
...
@@ -1064,7 +1064,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -1064,7 +1064,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff56649f
);
}
else
if
(
display_cards
[
i
+
pos
]
->
location
==
LOCATION_EXTRA
||
display_cards
[
i
+
pos
]
->
location
==
LOCATION_REMOVED
)
{
}
else
if
(
display_cards
[
i
+
pos
]
->
location
==
LOCATION_EXTRA
||
display_cards
[
i
+
pos
]
->
location
==
LOCATION_REMOVED
)
{
if
(
display_cards
[
i
+
pos
]
->
position
&
POS_FACEDOWN
)
if
(
display_cards
[
i
+
pos
]
->
position
&
POS_FACEDOWN
)
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
f0f8
ff
);
mainGame
->
stDisplayPos
[
i
]
->
setOverrideColor
(
0xff
0000
ff
);
if
(
display_cards
[
i
+
pos
]
->
controler
)
if
(
display_cards
[
i
+
pos
]
->
controler
)
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
mainGame
->
stDisplayPos
[
i
]
->
setBackgroundColor
(
0xff5a5a5a
);
else
else
...
...
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