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
e86c02ad
Commit
e86c02ad
authored
Sep 15, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'spell_link'
parents
b091ac9d
7fbb307d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
+27
-3
gframe/drawing.cpp
gframe/drawing.cpp
+23
-0
gframe/game.h
gframe/game.h
+1
-0
gframe/single_duel.h
gframe/single_duel.h
+1
-1
gframe/tag_duel.h
gframe/tag_duel.h
+1
-1
ocgcore
ocgcore
+1
-1
No files found.
gframe/drawing.cpp
View file @
e86c02ad
...
@@ -195,7 +195,13 @@ void Game::DrawBackGround() {
...
@@ -195,7 +195,13 @@ void Game::DrawBackGround() {
DrawLinkedZones
(
pcard
);
DrawLinkedZones
(
pcard
);
}
}
}
else
if
(
dField
.
hovered_location
==
LOCATION_SZONE
)
}
else
if
(
dField
.
hovered_location
==
LOCATION_SZONE
)
{
vertex
=
matManager
.
vFieldSzone
[
dField
.
hovered_controler
][
dField
.
hovered_sequence
][
rule
];
vertex
=
matManager
.
vFieldSzone
[
dField
.
hovered_controler
][
dField
.
hovered_sequence
][
rule
];
ClientCard
*
pcard
=
dField
.
szone
[
dField
.
hovered_controler
][
dField
.
hovered_sequence
];
if
(
pcard
&&
pcard
->
link_marker
)
{
DrawSpellLinkedZones
(
pcard
);
}
}
else
if
(
dField
.
hovered_location
==
LOCATION_GRAVE
)
else
if
(
dField
.
hovered_location
==
LOCATION_GRAVE
)
vertex
=
matManager
.
vFieldGrave
[
dField
.
hovered_controler
][
rule
];
vertex
=
matManager
.
vFieldGrave
[
dField
.
hovered_controler
][
rule
];
else
if
(
dField
.
hovered_location
==
LOCATION_REMOVED
)
else
if
(
dField
.
hovered_location
==
LOCATION_REMOVED
)
...
@@ -291,6 +297,23 @@ void Game::DrawLinkedZones(ClientCard* pcard) {
...
@@ -291,6 +297,23 @@ void Game::DrawLinkedZones(ClientCard* pcard) {
}
}
}
}
}
}
void
Game
::
DrawSpellLinkedZones
(
ClientCard
*
pcard
)
{
int
mark
=
pcard
->
link_marker
;
if
(
dField
.
hovered_sequence
<
5
)
{
if
((
mark
&
LINK_MARKER_TOP_LEFT
)
&&
dField
.
hovered_sequence
>
0
)
{
CheckMutual
(
0
,
0
);
driver
->
drawVertexPrimitiveList
(
&
matManager
.
vFieldMzone
[
dField
.
hovered_controler
][
dField
.
hovered_sequence
-
1
],
4
,
matManager
.
iRectangle
,
2
);
}
if
(
mark
&
LINK_MARKER_TOP
)
{
CheckMutual
(
0
,
0
);
driver
->
drawVertexPrimitiveList
(
&
matManager
.
vFieldMzone
[
dField
.
hovered_controler
][
dField
.
hovered_sequence
],
4
,
matManager
.
iRectangle
,
2
);
}
if
((
mark
&
LINK_MARKER_TOP_RIGHT
)
&&
dField
.
hovered_sequence
<
4
)
{
CheckMutual
(
0
,
0
);
driver
->
drawVertexPrimitiveList
(
&
matManager
.
vFieldMzone
[
dField
.
hovered_controler
][
dField
.
hovered_sequence
+
1
],
4
,
matManager
.
iRectangle
,
2
);
}
}
}
void
Game
::
CheckMutual
(
ClientCard
*
pcard
,
int
mark
)
{
void
Game
::
CheckMutual
(
ClientCard
*
pcard
,
int
mark
)
{
matManager
.
mSelField
.
AmbientColor
=
0xff0261a2
;
matManager
.
mSelField
.
AmbientColor
=
0xff0261a2
;
driver
->
setMaterial
(
matManager
.
mSelField
);
driver
->
setMaterial
(
matManager
.
mSelField
);
...
...
gframe/game.h
View file @
e86c02ad
...
@@ -131,6 +131,7 @@ public:
...
@@ -131,6 +131,7 @@ public:
void
DrawSelectionLine
(
irr
::
gui
::
IGUIElement
*
element
,
int
width
,
irr
::
video
::
SColor
color
);
void
DrawSelectionLine
(
irr
::
gui
::
IGUIElement
*
element
,
int
width
,
irr
::
video
::
SColor
color
);
void
DrawBackGround
();
void
DrawBackGround
();
void
DrawLinkedZones
(
ClientCard
*
pcard
);
void
DrawLinkedZones
(
ClientCard
*
pcard
);
void
DrawSpellLinkedZones
(
ClientCard
*
pcard
);
void
CheckMutual
(
ClientCard
*
pcard
,
int
mark
);
void
CheckMutual
(
ClientCard
*
pcard
,
int
mark
);
void
DrawCards
();
void
DrawCards
();
void
DrawCard
(
ClientCard
*
pcard
);
void
DrawCard
(
ClientCard
*
pcard
);
...
...
gframe/single_duel.h
View file @
e86c02ad
...
@@ -32,7 +32,7 @@ public:
...
@@ -32,7 +32,7 @@ public:
void
DuelEndProc
();
void
DuelEndProc
();
void
WaitforResponse
(
int
playerid
);
void
WaitforResponse
(
int
playerid
);
void
RefreshMzone
(
int
player
,
int
flag
=
0x881fff
,
int
use_cache
=
1
);
void
RefreshMzone
(
int
player
,
int
flag
=
0x881fff
,
int
use_cache
=
1
);
void
RefreshSzone
(
int
player
,
int
flag
=
0x
6
81fff
,
int
use_cache
=
1
);
void
RefreshSzone
(
int
player
,
int
flag
=
0x
e
81fff
,
int
use_cache
=
1
);
void
RefreshHand
(
int
player
,
int
flag
=
0x781fff
,
int
use_cache
=
1
);
void
RefreshHand
(
int
player
,
int
flag
=
0x781fff
,
int
use_cache
=
1
);
void
RefreshGrave
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
void
RefreshGrave
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
void
RefreshExtra
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
void
RefreshExtra
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
...
...
gframe/tag_duel.h
View file @
e86c02ad
...
@@ -32,7 +32,7 @@ public:
...
@@ -32,7 +32,7 @@ public:
void
DuelEndProc
();
void
DuelEndProc
();
void
WaitforResponse
(
int
playerid
);
void
WaitforResponse
(
int
playerid
);
void
RefreshMzone
(
int
player
,
int
flag
=
0x881fff
,
int
use_cache
=
1
);
void
RefreshMzone
(
int
player
,
int
flag
=
0x881fff
,
int
use_cache
=
1
);
void
RefreshSzone
(
int
player
,
int
flag
=
0x
6
81fff
,
int
use_cache
=
1
);
void
RefreshSzone
(
int
player
,
int
flag
=
0x
e
81fff
,
int
use_cache
=
1
);
void
RefreshHand
(
int
player
,
int
flag
=
0x781fff
,
int
use_cache
=
1
);
void
RefreshHand
(
int
player
,
int
flag
=
0x781fff
,
int
use_cache
=
1
);
void
RefreshGrave
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
void
RefreshGrave
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
void
RefreshExtra
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
void
RefreshExtra
(
int
player
,
int
flag
=
0x81fff
,
int
use_cache
=
1
);
...
...
ocgcore
@
88724276
Subproject commit
d8ca56be18004a8be33a1e6e7ddcad2b827578a5
Subproject commit
8872427627495ded6e8aa0e3e837e679b4c96484
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