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
REIKAI
ygopro
Commits
37d2b048
"...svn:/svn.code.sf.net/p/irrlicht/code/trunk@1598" did not exist on "8db1da30c29c4f74692e13dafacf6ba89f26c19d"
Commit
37d2b048
authored
Sep 30, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
dc2d5df5
5c2436b3
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
48 deletions
+27
-48
gframe/deck_con.cpp
gframe/deck_con.cpp
+3
-2
gframe/event_handler.cpp
gframe/event_handler.cpp
+5
-24
gframe/game.cpp
gframe/game.cpp
+10
-0
gframe/game.h
gframe/game.h
+1
-0
gframe/gframe.cpp
gframe/gframe.cpp
+5
-7
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+1
-8
gframe/single_mode.cpp
gframe/single_mode.cpp
+1
-6
script
script
+1
-1
No files found.
gframe/deck_con.cpp
View file @
37d2b048
...
...
@@ -63,6 +63,7 @@ void DeckBuilder::Initialize() {
mainGame
->
is_building
=
true
;
mainGame
->
is_siding
=
false
;
mainGame
->
sidedeck_available
=
false
;
mainGame
->
ShowCardNoInfo
();
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wDeckEdit
->
setVisible
(
true
);
...
...
@@ -92,6 +93,7 @@ void DeckBuilder::Initialize() {
}
void
DeckBuilder
::
Terminate
()
{
mainGame
->
is_building
=
false
;
mainGame
->
ShowCardNoInfo
();
mainGame
->
wDeckEdit
->
setVisible
(
false
);
mainGame
->
wCategories
->
setVisible
(
false
);
mainGame
->
wFilter
->
setVisible
(
false
);
...
...
@@ -276,8 +278,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame
->
env
->
addMessageBox
(
L""
,
dataManager
.
GetSysString
(
1410
));
break
;
}
mainGame
->
imgCard
->
setImage
(
imageManager
.
tCover
[
0
]);
mainGame
->
showingcode
=
0
;
mainGame
->
ShowCardNoInfo
();
mainGame
->
scrFilter
->
setVisible
(
false
);
char
deckbuf
[
1024
];
char
*
pdeck
=
deckbuf
;
...
...
gframe/event_handler.cpp
View file @
37d2b048
...
...
@@ -982,14 +982,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
mcard
->
code
)
{
mainGame
->
ShowCardInfo
(
mcard
->
code
);
}
else
{
mainGame
->
imgCard
->
setImage
(
imageManager
.
tCover
[
mcard
->
controler
]);
mainGame
->
showingcode
=
0
;
mainGame
->
stName
->
setText
(
L""
);
mainGame
->
stInfo
->
setText
(
L""
);
mainGame
->
stDataInfo
->
setText
(
L""
);
mainGame
->
stSetName
->
setText
(
L""
);
mainGame
->
stText
->
setText
(
L""
);
mainGame
->
scrCardText
->
setVisible
(
false
);
mainGame
->
ShowCardNoInfo
(
mcard
->
controler
);
}
}
if
(
id
>=
BUTTON_DISPLAY_0
&&
id
<=
BUTTON_DISPLAY_4
)
{
...
...
@@ -998,14 +991,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
mcard
->
code
)
{
mainGame
->
ShowCardInfo
(
mcard
->
code
);
}
else
{
mainGame
->
imgCard
->
setImage
(
imageManager
.
tCover
[
mcard
->
controler
]);
mainGame
->
showingcode
=
0
;
mainGame
->
stName
->
setText
(
L""
);
mainGame
->
stInfo
->
setText
(
L""
);
mainGame
->
stDataInfo
->
setText
(
L""
);
mainGame
->
stSetName
->
setText
(
L""
);
mainGame
->
stText
->
setText
(
L""
);
mainGame
->
scrCardText
->
setVisible
(
false
);
mainGame
->
ShowCardNoInfo
(
mcard
->
controler
);
}
}
break
;
...
...
@@ -1581,14 +1567,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
}
}
else
{
should_show_tip
=
false
;
mainGame
->
imgCard
->
setImage
(
imageManager
.
tCover
[
mcard
->
controler
]);
mainGame
->
showingcode
=
0
;
mainGame
->
stName
->
setText
(
L""
);
mainGame
->
stInfo
->
setText
(
L""
);
mainGame
->
stDataInfo
->
setText
(
L""
);
mainGame
->
stSetName
->
setText
(
L""
);
mainGame
->
stText
->
setText
(
L""
);
mainGame
->
scrCardText
->
setVisible
(
false
);
mainGame
->
ShowCardNoInfo
(
mcard
->
controler
);
}
}
hovered_card
=
mcard
;
...
...
@@ -1856,6 +1835,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
}
case
CHECKBOX_QUICK_ANIMATION
:
{
mainGame
->
gameConf
.
quick_animation
=
mainGame
->
chkQuickAnimation
->
isChecked
()
?
1
:
0
;
return
true
;
break
;
}
}
break
;
...
...
gframe/game.cpp
View file @
37d2b048
...
...
@@ -1568,6 +1568,16 @@ void Game::ShowCardInfo(int code, bool resize) {
const
auto
&
tsize
=
stText
->
getRelativePosition
();
InitStaticText
(
stText
,
tsize
.
getWidth
(),
tsize
.
getHeight
(),
guiFont
,
showingtext
);
}
void
Game
::
ShowCardNoInfo
(
int
player
)
{
imgCard
->
setImage
(
imageManager
.
tCover
[
player
]);
showingcode
=
0
;
stName
->
setText
(
L""
);
stInfo
->
setText
(
L""
);
stDataInfo
->
setText
(
L""
);
stSetName
->
setText
(
L""
);
stText
->
setText
(
L""
);
scrCardText
->
setVisible
(
false
);
}
void
Game
::
AddChatMsg
(
wchar_t
*
msg
,
int
player
)
{
for
(
int
i
=
7
;
i
>
0
;
--
i
)
{
chatMsg
[
i
]
=
chatMsg
[
i
-
1
];
...
...
gframe/game.h
View file @
37d2b048
...
...
@@ -151,6 +151,7 @@ public:
void
LoadConfig
();
void
SaveConfig
();
void
ShowCardInfo
(
int
code
,
bool
resize
=
false
);
void
ShowCardNoInfo
(
int
player
=
0
);
void
AddChatMsg
(
wchar_t
*
msg
,
int
player
);
void
ClearChatMsg
();
void
AddDebugMsg
(
char
*
msgbuf
);
...
...
gframe/gframe.cpp
View file @
37d2b048
...
...
@@ -2,6 +2,7 @@
#include "game.h"
#include "data_manager.h"
#include <event2/thread.h>
#include <memory>
#ifdef __APPLE__
#import <CoreFoundation/CoreFoundation.h>
#endif
...
...
@@ -62,10 +63,12 @@ int main(int argc, char* argv[]) {
#ifdef _WIN32
int
wargc
;
wchar_t
**
wargv
=
CommandLineToArgvW
(
GetCommandLineW
(),
&
wargc
);
std
::
unique_ptr
<
wchar_t
*
[],
void
(
*
)(
wchar_t
**
)
>
wargv
(
CommandLineToArgvW
(
GetCommandLineW
(),
&
wargc
),
[](
wchar_t
**
wargv
)
{
LocalFree
(
wargv
);
});
#else
int
wargc
=
argc
;
wchar_t
(
*
wargv
)[
256
]
=
new
wchar_t
[
wargc
][
256
]
;
auto
wargv
=
std
::
make_unique
<
wchar_t
[][
256
]
>
(
wargc
)
;
for
(
int
i
=
0
;
i
<
argc
;
++
i
)
{
BufferIO
::
DecodeUTF8
(
argv
[
i
],
wargv
[
i
]);
}
...
...
@@ -175,11 +178,6 @@ int main(int argc, char* argv[]) {
}
}
}
#ifdef _WIN32
LocalFree
(
wargv
);
#else
delete
[]
wargv
;
#endif
ygo
::
mainGame
->
MainLoop
();
#ifdef _WIN32
WSACleanup
();
...
...
gframe/menu_handler.cpp
View file @
37d2b048
...
...
@@ -222,17 +222,10 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
if
(
!
ReplayMode
::
cur_replay
.
OpenReplay
(
mainGame
->
lstReplayList
->
getListItem
(
mainGame
->
lstReplayList
->
getSelected
())))
break
;
}
mainGame
->
imgCard
->
setImage
(
imageManager
.
tCover
[
0
]);
mainGame
->
showingcode
=
0
;
mainGame
->
ShowCardNoInfo
();
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
wReplay
->
setVisible
(
true
);
mainGame
->
stName
->
setText
(
L""
);
mainGame
->
stInfo
->
setText
(
L""
);
mainGame
->
stDataInfo
->
setText
(
L""
);
mainGame
->
stSetName
->
setText
(
L""
);
mainGame
->
stText
->
setText
(
L""
);
mainGame
->
scrCardText
->
setVisible
(
false
);
mainGame
->
wReplayControl
->
setVisible
(
true
);
mainGame
->
btnReplayStart
->
setVisible
(
false
);
mainGame
->
btnReplayPause
->
setVisible
(
true
);
...
...
gframe/single_mode.cpp
View file @
37d2b048
...
...
@@ -87,16 +87,11 @@ int SingleMode::SinglePlayThread(void* param) {
rh
.
seed
=
seed
;
mainGame
->
gMutex
.
Lock
();
mainGame
->
HideElement
(
mainGame
->
wSinglePlay
);
mainGame
->
ShowCardNoInfo
();
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setText
(
dataManager
.
GetSysString
(
1210
));
mainGame
->
stName
->
setText
(
L""
);
mainGame
->
stInfo
->
setText
(
L""
);
mainGame
->
stDataInfo
->
setText
(
L""
);
mainGame
->
stSetName
->
setText
(
L""
);
mainGame
->
stText
->
setText
(
L""
);
mainGame
->
scrCardText
->
setVisible
(
false
);
mainGame
->
wPhase
->
setVisible
(
true
);
mainGame
->
dField
.
Clear
();
mainGame
->
dInfo
.
isFirst
=
true
;
...
...
script
@
85604b1c
Subproject commit
5c5df8834951c68399dbc77c89f7f745bc98f0b9
Subproject commit
85604b1c222fabdad39f18bf1580358d298aaa84
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