Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
9ce1d52d
Commit
9ce1d52d
authored
Apr 30, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加点击消黑块的区域
停用drago Filter 扩大scrFilter
parent
b87c4e65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+4
-11
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+5
-1
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+1
-1
No files found.
Classes/gframe/deck_con.cpp
View file @
9ce1d52d
...
...
@@ -1209,21 +1209,14 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
is_starting_dragging
=
false
;
}
mouse_pos
.
set
(
event
.
MouseInput
.
X
,
event
.
MouseInput
.
Y
);
if
(
hovered_pos
==
4
&&
mainGame
->
scrFilter
->
isVisible
())
{
int
dragpos
=
dragy
-
mouse_pos
.
Y
;
char
log_dragpos
[
256
];
sprintf
(
log_dragpos
,
"dragpos=%d"
,
dragpos
);
os
::
Printer
::
log
(
log_dragpos
);
if
(
dragpos
>
0
&&
mainGame
->
scrFilter
->
getPos
()
<
mainGame
->
scrFilter
->
getMax
())
{
/* if(hovered_pos == 4 && mainGame->scrFilter->isVisible()) {
if(dragy - mouse_pos.Y > 0 && mainGame->scrFilter->getPos() < mainGame->scrFilter->getMax()) {
mainGame->scrFilter->setPos(mainGame->scrFilter->getPos() + 1);
}
else
if
(
drag
pos
<
0
&&
mainGame
->
scrFilter
->
getPos
()
>
0
){
} else if(drag
y - mouse_pos.Y
< 0 && mainGame->scrFilter->getPos() > 0){
mainGame->scrFilter->setPos(mainGame->scrFilter->getPos() - 1);
}
}
}
*/
GetHoveredCard
();
char
log_hovered_card
[
256
];
sprintf
(
log_hovered_card
,
"卡名=%ls,scrfilterpos=%d"
,
dataManager
.
GetName
(
hovered_code
),(
mainGame
->
scrFilter
->
getPos
()));
os
::
Printer
::
log
(
log_hovered_card
);
break
;
}
case
irr
:
:
EMIE_MOUSE_WHEEL
:
{
...
...
Classes/gframe/event_handler.cpp
View file @
9ce1d52d
...
...
@@ -2091,7 +2091,11 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
}
case
irr
:
:
EMIE_LMOUSE_LEFT_UP
:
{
if
(
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
stText
||
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
wHostPrepare
)
{
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
wHostPrepare
||
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
imgCard
||
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
wReplay
||
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
wSinglePlay
||
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
wLanWindow
)
{
mainGame
->
gMutex
.
lock
();
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
ClearChatMsg
();
...
...
Classes/gframe/game.cpp
View file @
9ce1d52d
...
...
@@ -824,7 +824,7 @@ bool Game::Initialize() {
for
(
int
i
=
0
;
i
<
32
;
++
i
)
chkCategory
[
i
]
=
env
->
addCheckBox
(
false
,
recti
((
10
+
(
i
%
4
)
*
90
)
*
xScale
,
(
10
+
(
i
/
4
)
*
20
)
*
yScale
,
(
100
+
(
i
%
4
)
*
90
)
*
xScale
,
(
40
+
(
i
/
4
)
*
20
)
*
yScale
),
wCategories
,
-
1
,
dataManager
.
GetSysString
(
1100
+
i
));
#ifdef _IRR_ANDROID_PLATFORM_
scrFilter
=
env
->
addScrollBar
(
false
,
recti
(
99
5
*
xScale
,
159
*
yScale
,
1020
*
xScale
,
629
*
yScale
),
0
,
SCROLL_FILTER
);
scrFilter
=
env
->
addScrollBar
(
false
,
recti
(
99
0
*
xScale
,
159
*
yScale
,
1020
*
xScale
,
629
*
yScale
),
0
,
SCROLL_FILTER
);
#endif
scrFilter
->
setLargeStep
(
10
);
scrFilter
->
setSmallStep
(
1
);
...
...
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