Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
c904ae3d
Commit
c904ae3d
authored
May 25, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
parents
a353a95b
2c1f3de1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
gframe/client_field.cpp
gframe/client_field.cpp
+12
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-19
gframe/game.cpp
gframe/game.cpp
+2
-0
No files found.
gframe/client_field.cpp
View file @
c904ae3d
...
...
@@ -371,6 +371,18 @@ void ClientField::ClearSelect() {
(
*
cit
)
->
is_selectable
=
false
;
(
*
cit
)
->
is_selected
=
false
;
}
for
(
auto
cit
=
selected_cards
.
begin
();
cit
!=
selected_cards
.
end
();
++
cit
)
{
(
*
cit
)
->
is_selectable
=
false
;
(
*
cit
)
->
is_selected
=
false
;
}
for
(
auto
cit
=
selectsum_all
.
begin
();
cit
!=
selectsum_all
.
end
();
++
cit
)
{
(
*
cit
)
->
is_selectable
=
false
;
(
*
cit
)
->
is_selected
=
false
;
}
for
(
auto
cit
=
selectsum_cards
.
begin
();
cit
!=
selectsum_cards
.
end
();
++
cit
)
{
(
*
cit
)
->
is_selectable
=
false
;
(
*
cit
)
->
is_selected
=
false
;
}
}
void
ClientField
::
ClearChainSelect
()
{
for
(
auto
cit
=
activatable_cards
.
begin
();
cit
!=
activatable_cards
.
end
();
++
cit
)
{
...
...
gframe/duelclient.cpp
View file @
c904ae3d
...
...
@@ -3902,7 +3902,10 @@ void DuelClient::SendResponse() {
break
;
}
case
MSG_SELECT_CARD
:
case
MSG_SELECT_UNSELECT_CARD
:
{
case
MSG_SELECT_UNSELECT_CARD
:
case
MSG_SELECT_TRIBUTE
:
case
MSG_SELECT_SUM
:
case
MSG_SELECT_COUNTER
:
{
mainGame
->
dField
.
ClearSelect
();
break
;
}
...
...
@@ -3910,24 +3913,6 @@ void DuelClient::SendResponse() {
mainGame
->
dField
.
ClearChainSelect
();
break
;
}
case
MSG_SELECT_TRIBUTE
:
{
mainGame
->
dField
.
ClearSelect
();
break
;
}
case
MSG_SELECT_COUNTER
:
{
mainGame
->
dField
.
ClearSelect
();
break
;
}
case
MSG_SELECT_SUM
:
{
for
(
int
i
=
0
;
i
<
mainGame
->
dField
.
must_select_count
;
++
i
)
{
mainGame
->
dField
.
selected_cards
[
i
]
->
is_selected
=
false
;
}
for
(
size_t
i
=
0
;
i
<
mainGame
->
dField
.
selectsum_all
.
size
();
++
i
)
{
mainGame
->
dField
.
selectsum_all
[
i
]
->
is_selectable
=
false
;
mainGame
->
dField
.
selectsum_all
[
i
]
->
is_selected
=
false
;
}
break
;
}
}
if
(
mainGame
->
dInfo
.
isSingleMode
)
{
SingleMode
::
SetResponse
(
response_buf
,
response_len
);
...
...
gframe/game.cpp
View file @
c904ae3d
...
...
@@ -77,6 +77,7 @@ bool Game::Initialize() {
L"/usr/share/fonts/truetype/DroidSansFallbackFull.ttf"
,
L"/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc"
,
L"/usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc"
,
L"/usr/share/fonts/noto-cjk/NotoSansCJK-Bold.ttc"
,
L"/System/Library/Fonts/SFNSTextCondensed-Bold.otf"
,
L"/System/Library/Fonts/SFNS.ttf"
,
L"./fonts/numFont.ttf"
,
...
...
@@ -99,6 +100,7 @@ bool Game::Initialize() {
L"/usr/share/fonts/truetype/DroidSansFallbackFull.ttf"
,
L"/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc"
,
L"/usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc"
,
L"/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc"
,
L"/System/Library/Fonts/PingFang.ttc"
,
L"./fonts/textFont.ttf"
,
L"./fonts/textFont.ttc"
,
...
...
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