Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
Commits
ded23b21
Commit
ded23b21
authored
Apr 20, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drag cardtext
parent
615a10d5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
5 deletions
+56
-5
Classes/gframe/client_field.cpp
Classes/gframe/client_field.cpp
+3
-0
Classes/gframe/client_field.h
Classes/gframe/client_field.h
+3
-0
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+43
-3
mobile/assets/changelog.html
mobile/assets/changelog.html
+6
-1
mobile/build.gradle
mobile/build.gradle
+1
-1
No files found.
Classes/gframe/client_field.cpp
View file @
ded23b21
...
@@ -12,6 +12,9 @@ namespace ygo {
...
@@ -12,6 +12,9 @@ namespace ygo {
ClientField
::
ClientField
()
{
ClientField
::
ClientField
()
{
panel
=
0
;
panel
=
0
;
is_dragging_cardtext
=
false
;
dragging_cardtext_start_pos
=
0
;
dragging_cardtext_start_y
=
0
;
hovered_card
=
0
;
hovered_card
=
0
;
clicked_card
=
0
;
clicked_card
=
0
;
highlighting_card
=
0
;
highlighting_card
=
0
;
...
...
Classes/gframe/client_field.h
View file @
ded23b21
...
@@ -118,6 +118,9 @@ public:
...
@@ -118,6 +118,9 @@ public:
void
RefreshCardCountDisplay
();
void
RefreshCardCountDisplay
();
irr
::
gui
::
IGUIElement
*
panel
;
irr
::
gui
::
IGUIElement
*
panel
;
bool
is_dragging_cardtext
;
int
dragging_cardtext_start_pos
;
int
dragging_cardtext_start_y
;
std
::
vector
<
int
>
ancard
;
std
::
vector
<
int
>
ancard
;
int
hovered_controler
;
int
hovered_controler
;
int
hovered_location
;
int
hovered_location
;
...
...
Classes/gframe/event_handler.cpp
View file @
ded23b21
...
@@ -309,9 +309,9 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -309,9 +309,9 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
break
;
break
;
}
}
case
BUTTON_OPTION_0
:
case
BUTTON_OPTION_0
:
case
BUTTON_OPTION_1
:
case
BUTTON_OPTION_1
:
case
BUTTON_OPTION_2
:
case
BUTTON_OPTION_2
:
case
BUTTON_OPTION_3
:
case
BUTTON_OPTION_3
:
case
BUTTON_OPTION_4
:
{
case
BUTTON_OPTION_4
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
int
step
=
mainGame
->
scrOption
->
isVisible
()
?
mainGame
->
scrOption
->
getPos
()
:
0
;
int
step
=
mainGame
->
scrOption
->
isVisible
()
?
mainGame
->
scrOption
->
getPos
()
:
0
;
...
@@ -1980,6 +1980,46 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -1980,6 +1980,46 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
}
}
break
;
break
;
}
}
case
irr
:
:
EET_MOUSE_INPUT_EVENT
:
{
switch
(
event
.
MouseInput
.
Event
)
{
case
irr
:
:
EMIE_LMOUSE_PRESSED_DOWN
:
{
IGUIElement
*
root
=
mainGame
->
env
->
getRootGUIElement
();
position2di
mousepos
=
position2di
(
event
.
MouseInput
.
X
,
event
.
MouseInput
.
Y
);
if
(
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
stText
)
{
if
(
!
mainGame
->
scrCardText
->
isVisible
())
{
break
;
}
is_dragging_cardtext
=
true
;
dragging_cardtext_start_pos
=
mainGame
->
scrCardText
->
getPos
();
dragging_cardtext_start_y
=
event
.
MouseInput
.
Y
;
return
true
;
}
break
;
}
case
irr
:
:
EMIE_LMOUSE_LEFT_UP
:
{
is_dragging_cardtext
=
false
;
break
;
}
case
irr
:
:
EMIE_MOUSE_MOVED
:
{
if
(
is_dragging_cardtext
)
{
if
(
!
mainGame
->
scrCardText
->
isVisible
())
{
is_dragging_cardtext
=
false
;
break
;
}
int
step
=
mainGame
->
guiFont
->
getDimension
(
L"A"
).
Height
+
mainGame
->
guiFont
->
getKerningHeight
();
int
pos
=
dragging_cardtext_start_pos
+
(
dragging_cardtext_start_y
-
event
.
MouseInput
.
Y
)
/
step
;
int
max
=
mainGame
->
scrCardText
->
getMax
();
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
>
max
)
pos
=
max
;
mainGame
->
scrCardText
->
setPos
(
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
25
,
mainGame
->
guiFont
,
mainGame
->
showingtext
,
pos
);
}
break
;
}
default:
break
;
}
break
;
}
default:
break
;
default:
break
;
}
}
return
false
;
return
false
;
...
...
mobile/assets/changelog.html
View file @
ded23b21
...
@@ -21,12 +21,16 @@
...
@@ -21,12 +21,16 @@
<pre>
<pre>
更新:
更新:
1.更新ygo内核;
1.更新ygo内核;
2.默认大师规则2020;
3.新卡1101+VJ;
4.左侧效果文本支持手指上下翻页;
新增:
新增:
1.搜索结果增加卡片收藏夹列表;
1.搜索结果增加卡片收藏夹列表;
2.卡片详情可增加/移出搜藏;
2.卡片详情可增加/移出搜藏;
3.右侧搜索界面可打开我的收藏★;
3.右侧搜索界面可打开我的收藏★;
4.显示搜索结果统计数;
4.显示搜索结果统计数;
5.启动软件会执行原目录文件搬运(如果有);
5.启动软件会执行原目录文件搬运(如果有);
6.搜索结果显示属性,种族,灵摆刻度;
变更:
变更:
1.不再在Sdcard根目录复制ygocore
1.不再在Sdcard根目录复制ygocore
而是在本应用分配合法目录下;
而是在本应用分配合法目录下;
...
@@ -41,7 +45,8 @@
...
@@ -41,7 +45,8 @@
会在搜索结果中置顶显示;
会在搜索结果中置顶显示;
7.搜索结果大原则以
7.搜索结果大原则以
怪兽-魔法-陷阱顺序排列;
怪兽-魔法-陷阱顺序排列;
8.常用设置提前
8.搜索结果布局微调;
9.常用设置提前
(启用拓展卡包,决斗助手等)
(启用拓展卡包,决斗助手等)
</pre>
</pre>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<h3
style=
"color:#ff0000"
>
注意
</h3>
...
...
mobile/build.gradle
View file @
ded23b21
...
@@ -8,7 +8,7 @@ android {
...
@@ -8,7 +8,7 @@ android {
applicationId
"cn.garymb.ygomobile"
applicationId
"cn.garymb.ygomobile"
minSdkVersion
21
minSdkVersion
21
targetSdkVersion
28
targetSdkVersion
28
versionCode
3700004
09
versionCode
3700004
20
versionName
"3.7.0"
versionName
"3.7.0"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
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