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
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
baichixing
ygopro
Commits
fe4cdd46
Commit
fe4cdd46
authored
Oct 25, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cross platform
parent
baf08001
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
gframe/client_field.cpp
gframe/client_field.cpp
+21
-9
No files found.
gframe/client_field.cpp
View file @
fe4cdd46
...
...
@@ -352,11 +352,15 @@ void ClientField::ClearChainSelect() {
// needs to be synchronized with EGET_SCROLL_BAR_CHANGED
void
ClientField
::
ShowSelectCard
(
bool
buttonok
,
bool
chain
)
{
int
startpos
;
if
(
selectable_cards
.
size
()
<=
5
)
size_t
ct
;
if
(
selectable_cards
.
size
()
<=
5
)
{
startpos
=
30
+
125
*
(
5
-
selectable_cards
.
size
())
/
2
;
else
ct
=
selectable_cards
.
size
();
}
else
{
startpos
=
30
;
for
(
size_t
i
=
0
;
i
<
min
(
selectable_cards
.
size
(),
5
);
++
i
)
{
ct
=
5
;
}
for
(
size_t
i
=
0
;
i
<
ct
;
++
i
)
{
mainGame
->
stCardPos
[
i
]
->
enableOverrideColor
(
false
);
if
(
selectable_cards
[
i
]
->
code
)
mainGame
->
imageLoading
.
insert
(
std
::
make_pair
(
mainGame
->
btnCardSelect
[
i
],
selectable_cards
[
i
]
->
code
));
...
...
@@ -421,11 +425,15 @@ void ClientField::ShowSelectCard(bool buttonok, bool chain) {
}
void
ClientField
::
ShowChainCard
()
{
int
startpos
;
if
(
selectable_cards
.
size
()
<=
5
)
size_t
ct
;
if
(
selectable_cards
.
size
()
<=
5
)
{
startpos
=
30
+
125
*
(
5
-
selectable_cards
.
size
())
/
2
;
else
ct
=
selectable_cards
.
size
();
}
else
{
startpos
=
30
;
for
(
size_t
i
=
0
;
i
<
min
(
selectable_cards
.
size
(),
5
);
++
i
)
{
ct
=
5
;
}
for
(
size_t
i
=
0
;
i
<
ct
;
++
i
)
{
if
(
selectable_cards
[
i
]
->
code
)
mainGame
->
imageLoading
.
insert
(
std
::
make_pair
(
mainGame
->
btnCardSelect
[
i
],
selectable_cards
[
i
]
->
code
));
else
...
...
@@ -472,11 +480,15 @@ void ClientField::ShowChainCard() {
}
void
ClientField
::
ShowLocationCard
()
{
int
startpos
;
if
(
display_cards
.
size
()
<=
5
)
size_t
ct
;
if
(
display_cards
.
size
()
<=
5
)
{
startpos
=
30
+
125
*
(
5
-
display_cards
.
size
())
/
2
;
else
ct
=
display_cards
.
size
();
}
else
{
startpos
=
30
;
for
(
size_t
i
=
0
;
i
<
min
(
display_cards
.
size
(),
5
);
++
i
)
{
ct
=
5
;
}
for
(
size_t
i
=
0
;
i
<
ct
;
++
i
)
{
mainGame
->
stDisplayPos
[
i
]
->
enableOverrideColor
(
false
);
if
(
display_cards
[
i
]
->
code
)
mainGame
->
imageLoading
.
insert
(
std
::
make_pair
(
mainGame
->
btnCardDisplay
[
i
],
display_cards
[
i
]
->
code
));
...
...
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