Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-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
苍蓝
rd-ygopro
Commits
ff0ecbda
Commit
ff0ecbda
authored
May 29, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix drag
parent
818c283f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
gframe/deck_con.cpp
gframe/deck_con.cpp
+10
-0
gframe/deck_con.h
gframe/deck_con.h
+1
-0
No files found.
gframe/deck_con.cpp
View file @
ff0ecbda
...
@@ -339,6 +339,16 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -339,6 +339,16 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
case
irr
:
:
EET_MOUSE_INPUT_EVENT
:
{
case
irr
:
:
EET_MOUSE_INPUT_EVENT
:
{
switch
(
event
.
MouseInput
.
Event
)
{
switch
(
event
.
MouseInput
.
Event
)
{
case
irr
:
:
EMIE_LMOUSE_PRESSED_DOWN
:
{
case
irr
:
:
EMIE_LMOUSE_PRESSED_DOWN
:
{
mouse_pos
=
position2d
<
s32
>
(
event
.
MouseInput
.
X
,
event
.
MouseInput
.
Y
);
if
(
mainGame
->
cbDBLFList
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbDBDecks
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbCardType
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbCardType2
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbLimit
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbAttribute
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbRace
->
getElementFromPoint
(
mouse_pos
)
||
mainGame
->
cbSortType
->
getElementFromPoint
(
mouse_pos
))
break
;
if
(
mainGame
->
wCategories
->
isVisible
()
||
mainGame
->
wQuery
->
isVisible
())
if
(
mainGame
->
wCategories
->
isVisible
()
||
mainGame
->
wQuery
->
isVisible
())
break
;
break
;
if
(
hovered_pos
==
0
||
hovered_seq
==
-
1
)
if
(
hovered_pos
==
0
||
hovered_seq
==
-
1
)
...
...
gframe/deck_con.h
View file @
ff0ecbda
...
@@ -34,6 +34,7 @@ public:
...
@@ -34,6 +34,7 @@ public:
int
hovered_pos
;
int
hovered_pos
;
int
hovered_seq
;
int
hovered_seq
;
int
click_pos
;
int
click_pos
;
position2d
<
s32
>
mouse_pos
;
bool
is_draging
;
bool
is_draging
;
int
dragx
;
int
dragx
;
int
dragy
;
int
dragy
;
...
...
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