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
5807e78b
Commit
5807e78b
authored
Sep 30, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
5e48a10a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
gframe/deck_con.cpp
gframe/deck_con.cpp
+3
-3
gframe/event_handler.cpp
gframe/event_handler.cpp
+3
-3
gframe/game.cpp
gframe/game.cpp
+1
-1
gframe/game.h
gframe/game.h
+1
-1
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+1
-1
gframe/single_mode.cpp
gframe/single_mode.cpp
+1
-1
No files found.
gframe/deck_con.cpp
View file @
5807e78b
...
...
@@ -62,7 +62,7 @@ static bool check_set_code(const CardDataC& data, int set_code) {
void
DeckBuilder
::
Initialize
()
{
mainGame
->
is_building
=
true
;
mainGame
->
is_siding
=
false
;
mainGame
->
ShowCardNo
Info
();
mainGame
->
ClearCard
Info
();
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wDeckEdit
->
setVisible
(
true
);
...
...
@@ -92,7 +92,7 @@ void DeckBuilder::Initialize() {
}
void
DeckBuilder
::
Terminate
()
{
mainGame
->
is_building
=
false
;
mainGame
->
ShowCardNo
Info
();
mainGame
->
ClearCard
Info
();
mainGame
->
wDeckEdit
->
setVisible
(
false
);
mainGame
->
wCategories
->
setVisible
(
false
);
mainGame
->
wFilter
->
setVisible
(
false
);
...
...
@@ -236,7 +236,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame
->
env
->
addMessageBox
(
L""
,
dataManager
.
GetSysString
(
1410
));
break
;
}
mainGame
->
ShowCardNo
Info
();
mainGame
->
ClearCard
Info
();
char
deckbuf
[
1024
];
char
*
pdeck
=
deckbuf
;
BufferIO
::
WriteInt32
(
pdeck
,
deckManager
.
current_deck
.
main
.
size
()
+
deckManager
.
current_deck
.
extra
.
size
());
...
...
gframe/event_handler.cpp
View file @
5807e78b
...
...
@@ -979,7 +979,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
mcard
->
code
)
{
mainGame
->
ShowCardInfo
(
mcard
->
code
);
}
else
{
mainGame
->
ShowCardNo
Info
(
mcard
->
controler
);
mainGame
->
ClearCard
Info
(
mcard
->
controler
);
}
}
if
(
id
>=
BUTTON_DISPLAY_0
&&
id
<=
BUTTON_DISPLAY_4
)
{
...
...
@@ -988,7 +988,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
mcard
->
code
)
{
mainGame
->
ShowCardInfo
(
mcard
->
code
);
}
else
{
mainGame
->
ShowCardNo
Info
(
mcard
->
controler
);
mainGame
->
ClearCard
Info
(
mcard
->
controler
);
}
}
break
;
...
...
@@ -1562,7 +1562,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
}
}
else
{
should_show_tip
=
false
;
mainGame
->
ShowCardNo
Info
(
mcard
->
controler
);
mainGame
->
ClearCard
Info
(
mcard
->
controler
);
}
}
hovered_card
=
mcard
;
...
...
gframe/game.cpp
View file @
5807e78b
...
...
@@ -1294,7 +1294,7 @@ void Game::ShowCardInfo(int code) {
const
auto
&
tsize
=
stText
->
getRelativePosition
();
InitStaticText
(
stText
,
tsize
.
getWidth
(),
tsize
.
getHeight
(),
textFont
,
showingtext
);
}
void
Game
::
ShowCardNo
Info
(
int
player
)
{
void
Game
::
ClearCard
Info
(
int
player
)
{
imgCard
->
setImage
(
imageManager
.
tCover
[
player
]);
stName
->
setText
(
L""
);
stInfo
->
setText
(
L""
);
...
...
gframe/game.h
View file @
5807e78b
...
...
@@ -131,7 +131,7 @@ public:
void
LoadConfig
();
void
SaveConfig
();
void
ShowCardInfo
(
int
code
);
void
ShowCardNo
Info
(
int
player
=
0
);
void
ClearCard
Info
(
int
player
=
0
);
void
AddChatMsg
(
wchar_t
*
msg
,
int
player
);
void
ClearChatMsg
();
void
AddDebugMsg
(
char
*
msgbuf
);
...
...
gframe/menu_handler.cpp
View file @
5807e78b
...
...
@@ -222,7 +222,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
if
(
!
ReplayMode
::
cur_replay
.
OpenReplay
(
mainGame
->
lstReplayList
->
getListItem
(
mainGame
->
lstReplayList
->
getSelected
())))
break
;
}
mainGame
->
ShowCardNo
Info
();
mainGame
->
ClearCard
Info
();
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
wReplay
->
setVisible
(
true
);
...
...
gframe/single_mode.cpp
View file @
5807e78b
...
...
@@ -83,7 +83,7 @@ int SingleMode::SinglePlayThread(void* param) {
rh
.
seed
=
seed
;
mainGame
->
gMutex
.
Lock
();
mainGame
->
HideElement
(
mainGame
->
wSinglePlay
);
mainGame
->
ShowCardNo
Info
();
mainGame
->
ClearCard
Info
();
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setVisible
(
true
);
...
...
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