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
6a8e2d4f
Commit
6a8e2d4f
authored
Mar 25, 2018
by
edo9300
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/Fluorohydride/master'
parents
baa0386b
7cf1125a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
336 additions
and
285 deletions
+336
-285
gframe/client_field.h
gframe/client_field.h
+1
-0
gframe/deck_con.cpp
gframe/deck_con.cpp
+5
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-0
gframe/event_handler.cpp
gframe/event_handler.cpp
+145
-265
gframe/game.cpp
gframe/game.cpp
+3
-1
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+2
-2
lflist.conf
lflist.conf
+179
-17
No files found.
gframe/client_field.h
View file @
6a8e2d4f
...
@@ -138,6 +138,7 @@ public:
...
@@ -138,6 +138,7 @@ public:
void
ShowCancelOrFinishButton
(
int
buttonOp
);
void
ShowCancelOrFinishButton
(
int
buttonOp
);
void
SetShowMark
(
ClientCard
*
pcard
,
bool
enable
);
void
SetShowMark
(
ClientCard
*
pcard
,
bool
enable
);
void
SetResponseSelectedCards
()
const
;
void
SetResponseSelectedCards
()
const
;
void
CancelOrFinish
();
};
};
}
}
...
...
gframe/deck_con.cpp
View file @
6a8e2d4f
...
@@ -643,6 +643,11 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -643,6 +643,11 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
case
irr
:
:
EMIE_MOUSE_WHEEL
:
{
case
irr
:
:
EMIE_MOUSE_WHEEL
:
{
if
(
!
mainGame
->
scrFilter
->
isVisible
())
if
(
!
mainGame
->
scrFilter
->
isVisible
())
break
;
break
;
if
(
mainGame
->
env
->
hasFocus
(
mainGame
->
scrFilter
))
break
;
irr
::
gui
::
IGUIElement
*
root
=
mainGame
->
env
->
getRootGUIElement
();
if
(
root
->
getElementFromPoint
(
mouse_pos
)
!=
root
)
break
;
if
(
event
.
MouseInput
.
Wheel
<
0
)
{
if
(
event
.
MouseInput
.
Wheel
<
0
)
{
if
(
mainGame
->
scrFilter
->
getPos
()
<
mainGame
->
scrFilter
->
getMax
())
if
(
mainGame
->
scrFilter
->
getPos
()
<
mainGame
->
scrFilter
->
getMax
())
mainGame
->
scrFilter
->
setPos
(
mainGame
->
scrFilter
->
getPos
()
+
1
);
mainGame
->
scrFilter
->
setPos
(
mainGame
->
scrFilter
->
getPos
()
+
1
);
...
...
gframe/duelclient.cpp
View file @
6a8e2d4f
...
@@ -203,6 +203,7 @@ void DuelClient::ClientEvent(bufferevent *bev, short events, void *ctx) {
...
@@ -203,6 +203,7 @@ void DuelClient::ClientEvent(bufferevent *bev, short events, void *ctx) {
mainGame
->
btnCreateHost
->
setEnabled
(
true
);
mainGame
->
btnCreateHost
->
setEnabled
(
true
);
mainGame
->
btnJoinHost
->
setEnabled
(
true
);
mainGame
->
btnJoinHost
->
setEnabled
(
true
);
mainGame
->
btnJoinCancel
->
setEnabled
(
true
);
mainGame
->
btnJoinCancel
->
setEnabled
(
true
);
mainGame
->
stTip
->
setVisible
(
false
);
mainGame
->
gMutex
.
Unlock
();
mainGame
->
gMutex
.
Unlock
();
mainGame
->
closeDoneSignal
.
Reset
();
mainGame
->
closeDoneSignal
.
Reset
();
mainGame
->
closeSignal
.
Set
();
mainGame
->
closeSignal
.
Set
();
...
...
gframe/event_handler.cpp
View file @
6a8e2d4f
This diff is collapsed.
Click to expand it.
gframe/game.cpp
View file @
6a8e2d4f
...
@@ -736,7 +736,7 @@ void Game::MainLoop() {
...
@@ -736,7 +736,7 @@ void Game::MainLoop() {
atkdy
=
(
float
)
sin
(
atkframe
);
atkdy
=
(
float
)
sin
(
atkframe
);
driver
->
beginScene
(
true
,
true
,
SColor
(
0
,
0
,
0
,
0
));
driver
->
beginScene
(
true
,
true
,
SColor
(
0
,
0
,
0
,
0
));
gMutex
.
Lock
();
gMutex
.
Lock
();
if
(
dInfo
.
isStarted
)
{
if
(
dInfo
.
isStarted
||
dInfo
.
isReplaySkiping
)
{
if
(
showcardcode
==
1
||
showcardcode
==
3
)
if
(
showcardcode
==
1
||
showcardcode
==
3
)
PlayMusic
(
"./sound/duelwin.mp3"
,
true
);
PlayMusic
(
"./sound/duelwin.mp3"
,
true
);
else
if
(
showcardcode
==
2
)
else
if
(
showcardcode
==
2
)
...
@@ -836,6 +836,8 @@ void Game::InitStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth, u32 cH
...
@@ -836,6 +836,8 @@ void Game::InitStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth, u32 cH
SetStaticText
(
pControl
,
cWidth
-
10
,
font
,
text
);
SetStaticText
(
pControl
,
cWidth
-
10
,
font
,
text
);
if
(
font
->
getDimension
(
dataManager
.
strBuffer
).
Height
<=
cHeight
)
{
if
(
font
->
getDimension
(
dataManager
.
strBuffer
).
Height
<=
cHeight
)
{
scrCardText
->
setVisible
(
false
);
scrCardText
->
setVisible
(
false
);
if
(
env
->
hasFocus
(
scrCardText
))
env
->
removeFocus
(
scrCardText
);
return
;
return
;
}
}
const
auto
&
tsize
=
scrCardText
->
getRelativePosition
();
const
auto
&
tsize
=
scrCardText
->
getRelativePosition
();
...
...
gframe/menu_handler.cpp
View file @
6a8e2d4f
...
@@ -47,7 +47,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
...
@@ -47,7 +47,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
switch
(
event
.
GUIEvent
.
EventType
)
{
switch
(
event
.
GUIEvent
.
EventType
)
{
case
irr
:
:
gui
::
EGET_ELEMENT_HOVERED
:
{
case
irr
:
:
gui
::
EGET_ELEMENT_HOVERED
:
{
// Set cursor to an I-Beam if hovering over an edit box
// Set cursor to an I-Beam if hovering over an edit box
if
(
event
.
GUIEvent
.
Caller
->
getType
()
==
EGUIET_EDIT_BOX
)
if
(
event
.
GUIEvent
.
Caller
->
getType
()
==
EGUIET_EDIT_BOX
&&
event
.
GUIEvent
.
Caller
->
isEnabled
()
)
{
{
utils
.
changeCursor
(
ECI_IBEAM
);
utils
.
changeCursor
(
ECI_IBEAM
);
}
}
...
@@ -55,7 +55,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
...
@@ -55,7 +55,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
}
}
case
irr
:
:
gui
::
EGET_ELEMENT_LEFT
:
{
case
irr
:
:
gui
::
EGET_ELEMENT_LEFT
:
{
// Set cursor to normal if left an edit box
// Set cursor to normal if left an edit box
if
(
event
.
GUIEvent
.
Caller
->
getType
()
==
EGUIET_EDIT_BOX
)
if
(
event
.
GUIEvent
.
Caller
->
getType
()
==
EGUIET_EDIT_BOX
&&
event
.
GUIEvent
.
Caller
->
isEnabled
()
)
{
{
utils
.
changeCursor
(
ECI_NORMAL
);
utils
.
changeCursor
(
ECI_NORMAL
);
}
}
...
...
lflist.conf
View file @
6a8e2d4f
This diff is collapsed.
Click to expand it.
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