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
b3f64b31
Commit
b3f64b31
authored
Apr 21, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放大手卡操作按钮
右移tab滚动条 简化变量
parent
26fe4f43
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
52 deletions
+45
-52
Classes/gframe/client_field.cpp
Classes/gframe/client_field.cpp
+4
-9
Classes/gframe/client_field.h
Classes/gframe/client_field.h
+4
-8
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+22
-22
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+12
-12
mobile/assets/changelog.html
mobile/assets/changelog.html
+3
-1
No files found.
Classes/gframe/client_field.cpp
View file @
b3f64b31
...
@@ -12,18 +12,13 @@ namespace ygo {
...
@@ -12,18 +12,13 @@ namespace ygo {
ClientField
::
ClientField
()
{
ClientField
::
ClientField
()
{
panel
=
0
;
panel
=
0
;
//drag
cardtext
//drag
tab
is_dragging_cardtext
=
false
;
is_dragging_cardtext
=
false
;
dragging_cardtext_start_pos
=
0
;
dragging_cardtext_start_y
=
0
;
//drag tabHelper
is_dragging_tabHelper
=
false
;
is_dragging_tabHelper
=
false
;
dragging_tabHelper_start_pos
=
0
;
dragging_tabHelper_start_y
=
0
;
//drag tabSystem
is_dragging_tabSystem
=
false
;
is_dragging_tabSystem
=
false
;
dragging_tabSystem_start_pos
=
0
;
dragging_tab_start_pos
=
0
;
dragging_tabSystem_start_y
=
0
;
dragging_tab_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 @
b3f64b31
...
@@ -119,14 +119,10 @@ public:
...
@@ -119,14 +119,10 @@ public:
irr
::
gui
::
IGUIElement
*
panel
;
irr
::
gui
::
IGUIElement
*
panel
;
bool
is_dragging_cardtext
;
bool
is_dragging_cardtext
;
int
dragging_cardtext_start_pos
;
bool
is_dragging_tabHelper
;
int
dragging_cardtext_start_y
;
bool
is_dragging_tabSystem
;
bool
is_dragging_tabHelper
;
int
dragging_tab_start_pos
;
int
dragging_tabHelper_start_pos
;
int
dragging_tab_start_y
;
int
dragging_tabHelper_start_y
;
bool
is_dragging_tabSystem
;
int
dragging_tabSystem_start_pos
;
int
dragging_tabSystem_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 @
b3f64b31
...
@@ -1983,17 +1983,17 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -1983,17 +1983,17 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
is_dragging_cardtext
=
true
;
is_dragging_cardtext
=
true
;
dragging_
cardtext
_start_pos
=
mainGame
->
scrCardText
->
getPos
();
dragging_
tab
_start_pos
=
mainGame
->
scrCardText
->
getPos
();
dragging_
cardtext
_start_y
=
event
.
MouseInput
.
Y
;
dragging_
tab
_start_y
=
event
.
MouseInput
.
Y
;
return
true
;
return
true
;
}
}
if
(
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
tabHelper
){
if
(
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
tabHelper
){
if
(
!
mainGame
->
scrTabHelper
->
isVisible
())
{
if
(
!
mainGame
->
scrTabHelper
->
isVisible
())
{
break
;
break
;
}
}
is_dragging_tabHelper
=
true
;
is_dragging_tabHelper
=
true
;
dragging_tab
Helper
_start_pos
=
mainGame
->
scrTabHelper
->
getPos
();
dragging_tab_start_pos
=
mainGame
->
scrTabHelper
->
getPos
();
dragging_tab
Helper
_start_y
=
event
.
MouseInput
.
Y
;
dragging_tab_start_y
=
event
.
MouseInput
.
Y
;
return
true
;
return
true
;
}
}
if
(
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
tabSystem
){
if
(
root
->
getElementFromPoint
(
mousepos
)
==
mainGame
->
tabSystem
){
...
@@ -2001,8 +2001,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2001,8 +2001,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
is_dragging_tabSystem
=
true
;
is_dragging_tabSystem
=
true
;
dragging_tab
System
_start_pos
=
mainGame
->
scrTabSystem
->
getPos
();
dragging_tab_start_pos
=
mainGame
->
scrTabSystem
->
getPos
();
dragging_tab
System
_start_y
=
event
.
MouseInput
.
Y
;
dragging_tab_start_y
=
event
.
MouseInput
.
Y
;
return
true
;
return
true
;
}
}
break
;
break
;
...
@@ -2016,8 +2016,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2016,8 +2016,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
//touch the pic of detail to refresh textfonts
}
//touch the pic of detail to refresh textfonts
is_dragging_cardtext
=
false
;
is_dragging_cardtext
=
false
;
is_dragging_tabHelper
=
false
;
is_dragging_tabHelper
=
false
;
is_dragging_tabSystem
=
false
;
is_dragging_tabSystem
=
false
;
break
;
break
;
}
}
case
irr
:
:
EMIE_MOUSE_MOVED
:
{
case
irr
:
:
EMIE_MOUSE_MOVED
:
{
...
@@ -2027,7 +2027,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2027,7 +2027,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
int
step
=
mainGame
->
guiFont
->
getDimension
(
L"A"
).
Height
+
mainGame
->
guiFont
->
getKerningHeight
();
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
pos
=
dragging_
tab_start_pos
+
(
dragging_tab
_start_y
-
event
.
MouseInput
.
Y
)
/
step
;
int
max
=
mainGame
->
scrCardText
->
getMax
();
int
max
=
mainGame
->
scrCardText
->
getMax
();
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
>
max
)
pos
=
max
;
if
(
pos
>
max
)
pos
=
max
;
...
@@ -2040,7 +2040,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2040,7 +2040,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
rect
<
s32
>
tabHelperpos
=
mainGame
->
tabHelper
->
getRelativePosition
();
rect
<
s32
>
tabHelperpos
=
mainGame
->
tabHelper
->
getRelativePosition
();
int
pos
=
dragging_tab
Helper_start_pos
+
(
dragging_tabHelper
_start_y
-
event
.
MouseInput
.
Y
);
int
pos
=
dragging_tab
_start_pos
+
(
dragging_tab
_start_y
-
event
.
MouseInput
.
Y
);
int
max
=
mainGame
->
scrTabHelper
->
getMax
();
int
max
=
mainGame
->
scrTabHelper
->
getMax
();
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
>
max
)
pos
=
max
;
if
(
pos
>
max
)
pos
=
max
;
...
@@ -2053,7 +2053,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2053,7 +2053,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
rect
<
s32
>
tabSystempos
=
mainGame
->
tabSystem
->
getRelativePosition
();
rect
<
s32
>
tabSystempos
=
mainGame
->
tabSystem
->
getRelativePosition
();
int
pos
=
dragging_tab
System_start_pos
+
(
dragging_tabSystem
_start_y
-
event
.
MouseInput
.
Y
);
int
pos
=
dragging_tab
_start_pos
+
(
dragging_tab
_start_y
-
event
.
MouseInput
.
Y
);
int
max
=
mainGame
->
scrTabSystem
->
getMax
();
int
max
=
mainGame
->
scrTabSystem
->
getMax
();
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
>
max
)
pos
=
max
;
if
(
pos
>
max
)
pos
=
max
;
...
@@ -2271,28 +2271,28 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2271,28 +2271,28 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnActivate
->
setVisible
(
false
);
}
else
mainGame
->
btnActivate
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SUMMON
)
{
if
(
flag
&
COMMAND_SUMMON
)
{
mainGame
->
btnSummon
->
setVisible
(
true
);
mainGame
->
btnSummon
->
setVisible
(
true
);
mainGame
->
btnSummon
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnSummon
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSummon
->
setVisible
(
false
);
}
else
mainGame
->
btnSummon
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SPSUMMON
)
{
if
(
flag
&
COMMAND_SPSUMMON
)
{
mainGame
->
btnSPSummon
->
setVisible
(
true
);
mainGame
->
btnSPSummon
->
setVisible
(
true
);
mainGame
->
btnSPSummon
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnSPSummon
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSPSummon
->
setVisible
(
false
);
}
else
mainGame
->
btnSPSummon
->
setVisible
(
false
);
if
(
flag
&
COMMAND_MSET
)
{
if
(
flag
&
COMMAND_MSET
)
{
mainGame
->
btnMSet
->
setVisible
(
true
);
mainGame
->
btnMSet
->
setVisible
(
true
);
mainGame
->
btnMSet
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnMSet
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnMSet
->
setVisible
(
false
);
}
else
mainGame
->
btnMSet
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SSET
)
{
if
(
flag
&
COMMAND_SSET
)
{
...
@@ -2303,7 +2303,7 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2303,7 +2303,7 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnSSet
->
setVisible
(
true
);
mainGame
->
btnSSet
->
setVisible
(
true
);
mainGame
->
btnSSet
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnSSet
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSSet
->
setVisible
(
false
);
}
else
mainGame
->
btnSSet
->
setVisible
(
false
);
if
(
flag
&
COMMAND_REPOS
)
{
if
(
flag
&
COMMAND_REPOS
)
{
...
@@ -2316,35 +2316,35 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2316,35 +2316,35 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnRepos
->
setVisible
(
true
);
mainGame
->
btnRepos
->
setVisible
(
true
);
mainGame
->
btnRepos
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnRepos
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnRepos
->
setVisible
(
false
);
}
else
mainGame
->
btnRepos
->
setVisible
(
false
);
if
(
flag
&
COMMAND_ATTACK
)
{
if
(
flag
&
COMMAND_ATTACK
)
{
mainGame
->
btnAttack
->
setVisible
(
true
);
mainGame
->
btnAttack
->
setVisible
(
true
);
mainGame
->
btnAttack
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnAttack
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnAttack
->
setVisible
(
false
);
}
else
mainGame
->
btnAttack
->
setVisible
(
false
);
if
(
flag
&
COMMAND_LIST
)
{
if
(
flag
&
COMMAND_LIST
)
{
mainGame
->
btnShowList
->
setVisible
(
true
);
mainGame
->
btnShowList
->
setVisible
(
true
);
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnShowList
->
setVisible
(
false
);
}
else
mainGame
->
btnShowList
->
setVisible
(
false
);
if
(
flag
&
COMMAND_OPERATION
)
{
if
(
flag
&
COMMAND_OPERATION
)
{
mainGame
->
btnOperation
->
setVisible
(
true
);
mainGame
->
btnOperation
->
setVisible
(
true
);
mainGame
->
btnOperation
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnOperation
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnOperation
->
setVisible
(
false
);
}
else
mainGame
->
btnOperation
->
setVisible
(
false
);
if
(
flag
&
COMMAND_RESET
)
{
if
(
flag
&
COMMAND_RESET
)
{
mainGame
->
btnReset
->
setVisible
(
true
);
mainGame
->
btnReset
->
setVisible
(
true
);
mainGame
->
btnReset
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnReset
->
setRelativePosition
(
position2di
(
1
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
1
*
mainGame
->
yScale
;
height
+=
6
1
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnReset
->
setVisible
(
false
);
}
else
mainGame
->
btnReset
->
setVisible
(
false
);
panel
=
mainGame
->
wCmdMenu
;
panel
=
mainGame
->
wCmdMenu
;
...
...
Classes/gframe/game.cpp
View file @
b3f64b31
...
@@ -658,16 +658,16 @@ bool Game::Initialize() {
...
@@ -658,16 +658,16 @@ bool Game::Initialize() {
wCmdMenu
->
setDrawTitlebar
(
false
);
wCmdMenu
->
setDrawTitlebar
(
false
);
wCmdMenu
->
setVisible
(
false
);
wCmdMenu
->
setVisible
(
false
);
wCmdMenu
->
getCloseButton
()
->
setVisible
(
false
);
wCmdMenu
->
getCloseButton
()
->
setVisible
(
false
);
btnActivate
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
*
yScale
,
105
*
xScale
,
5
1
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1150
));
btnActivate
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
*
yScale
,
105
*
xScale
,
6
1
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1150
));
btnSummon
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
52
*
yScale
,
105
*
xScale
,
10
2
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SUMMON
,
dataManager
.
GetSysString
(
1151
));
btnSummon
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
62
*
yScale
,
105
*
xScale
,
12
2
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SUMMON
,
dataManager
.
GetSysString
(
1151
));
btnSPSummon
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
03
*
yScale
,
105
*
xScale
,
15
3
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SPSUMMON
,
dataManager
.
GetSysString
(
1152
));
btnSPSummon
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
23
*
yScale
,
105
*
xScale
,
18
3
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SPSUMMON
,
dataManager
.
GetSysString
(
1152
));
btnMSet
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
54
*
yScale
,
105
*
xScale
,
20
4
*
yScale
),
wCmdMenu
,
BUTTON_CMD_MSET
,
dataManager
.
GetSysString
(
1153
));
btnMSet
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
1
84
*
yScale
,
105
*
xScale
,
24
4
*
yScale
),
wCmdMenu
,
BUTTON_CMD_MSET
,
dataManager
.
GetSysString
(
1153
));
btnSSet
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
2
05
*
yScale
,
105
*
xScale
,
25
5
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SSET
,
dataManager
.
GetSysString
(
1153
));
btnSSet
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
2
45
*
yScale
,
105
*
xScale
,
30
5
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SSET
,
dataManager
.
GetSysString
(
1153
));
btnRepos
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
256
*
yScale
,
105
*
xScale
,
30
6
*
yScale
),
wCmdMenu
,
BUTTON_CMD_REPOS
,
dataManager
.
GetSysString
(
1154
));
btnRepos
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
306
*
yScale
,
105
*
xScale
,
36
6
*
yScale
),
wCmdMenu
,
BUTTON_CMD_REPOS
,
dataManager
.
GetSysString
(
1154
));
btnAttack
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
3
07
*
yScale
,
105
*
xScale
,
35
7
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ATTACK
,
dataManager
.
GetSysString
(
1157
));
btnAttack
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
3
67
*
yScale
,
105
*
xScale
,
42
7
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ATTACK
,
dataManager
.
GetSysString
(
1157
));
btnShowList
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
358
*
yScale
,
105
*
xScale
,
40
8
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SHOWLIST
,
dataManager
.
GetSysString
(
1158
));
btnShowList
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
428
*
yScale
,
105
*
xScale
,
48
8
*
yScale
),
wCmdMenu
,
BUTTON_CMD_SHOWLIST
,
dataManager
.
GetSysString
(
1158
));
btnOperation
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
4
09
*
yScale
,
105
*
xScale
,
45
9
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1161
));
btnOperation
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
4
89
*
yScale
,
105
*
xScale
,
54
9
*
yScale
),
wCmdMenu
,
BUTTON_CMD_ACTIVATE
,
dataManager
.
GetSysString
(
1161
));
btnReset
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
460
*
yScale
,
105
*
xScale
,
5
10
*
yScale
),
wCmdMenu
,
BUTTON_CMD_RESET
,
dataManager
.
GetSysString
(
1162
));
btnReset
=
env
->
addButton
(
rect
<
s32
>
(
1
*
xScale
,
550
*
yScale
,
105
*
xScale
,
6
10
*
yScale
),
wCmdMenu
,
BUTTON_CMD_RESET
,
dataManager
.
GetSysString
(
1162
));
//deck edit
//deck edit
wDeckEdit
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
309
*
xScale
,
1
*
yScale
,
605
*
xScale
,
130
*
yScale
),
true
,
false
,
0
,
-
1
,
true
);
wDeckEdit
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
309
*
xScale
,
1
*
yScale
,
605
*
xScale
,
130
*
yScale
),
true
,
false
,
0
,
-
1
,
true
);
wDeckEdit
->
setVisible
(
false
);
wDeckEdit
->
setVisible
(
false
);
...
@@ -1617,14 +1617,14 @@ void Game::ShowCardInfo(int code) {
...
@@ -1617,14 +1617,14 @@ void Game::ShowCardInfo(int code) {
stDataInfo
->
setText
(
formatBuffer
);
stDataInfo
->
setText
(
formatBuffer
);
stSetName
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
83
*
yScale
,
296
*
xScale
,
106
*
yScale
));
stSetName
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
83
*
yScale
,
296
*
xScale
,
106
*
yScale
));
stText
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
(
83
+
offset
)
*
yScale
,
287
*
xScale
,
324
*
yScale
));
stText
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
(
83
+
offset
)
*
yScale
,
287
*
xScale
,
324
*
yScale
));
scrCardText
->
setRelativePosition
(
rect
<
s32
>
(
2
67
*
xScale
,
(
83
+
offset
)
*
yScale
,
28
7
*
xScale
,
324
*
yScale
));
scrCardText
->
setRelativePosition
(
rect
<
s32
>
(
2
77
*
xScale
,
(
83
+
offset
)
*
yScale
,
29
7
*
xScale
,
324
*
yScale
));
}
else
{
}
else
{
myswprintf
(
formatBuffer
,
L"[%ls]"
,
dataManager
.
FormatType
(
cd
.
type
));
myswprintf
(
formatBuffer
,
L"[%ls]"
,
dataManager
.
FormatType
(
cd
.
type
));
stInfo
->
setText
(
formatBuffer
);
stInfo
->
setText
(
formatBuffer
);
stDataInfo
->
setText
(
L""
);
stDataInfo
->
setText
(
L""
);
stSetName
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
60
*
yScale
,
296
*
xScale
,
83
*
yScale
));
stSetName
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
60
*
yScale
,
296
*
xScale
,
83
*
yScale
));
stText
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
(
60
+
offset
)
*
yScale
,
287
*
xScale
,
324
*
yScale
));
stText
->
setRelativePosition
(
rect
<
s32
>
(
15
*
xScale
,
(
60
+
offset
)
*
yScale
,
287
*
xScale
,
324
*
yScale
));
scrCardText
->
setRelativePosition
(
rect
<
s32
>
(
2
67
*
xScale
,
(
60
+
offset
)
*
yScale
,
28
7
*
xScale
,
324
*
yScale
));
scrCardText
->
setRelativePosition
(
rect
<
s32
>
(
2
77
*
xScale
,
(
60
+
offset
)
*
yScale
,
29
7
*
xScale
,
324
*
yScale
));
}
}
showingtext
=
dataManager
.
GetText
(
code
);
showingtext
=
dataManager
.
GetText
(
code
);
const
auto
&
tsize
=
stText
->
getRelativePosition
();
const
auto
&
tsize
=
stText
->
getRelativePosition
();
...
...
mobile/assets/changelog.html
View file @
b3f64b31
...
@@ -47,7 +47,9 @@
...
@@ -47,7 +47,9 @@
怪兽-魔法-陷阱顺序排列;
怪兽-魔法-陷阱顺序排列;
8.搜索结果布局微调;
8.搜索结果布局微调;
9.常用设置提前
9.常用设置提前
(启用拓展卡包,决斗助手等)
(启用拓展卡包,决斗助手等);
10.现为点击效果文字区域消除黑块;
11.增大手卡操作按钮;
</pre>
</pre>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<pre>
<pre>
...
...
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