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
ea54e5ce
Commit
ea54e5ce
authored
Mar 15, 2023
by
JSY1728
Committed by
GitHub
Mar 15, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fallenstardust:master' into patch-3
parents
8e51370b
c80e3e35
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
176 additions
and
274 deletions
+176
-274
Classes/gframe/CGUITTFont.h
Classes/gframe/CGUITTFont.h
+4
-1
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+4
-4
Classes/gframe/drawing.cpp
Classes/gframe/drawing.cpp
+73
-169
Classes/gframe/duelclient.cpp
Classes/gframe/duelclient.cpp
+3
-3
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+40
-13
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+40
-69
Classes/gframe/game.h
Classes/gframe/game.h
+4
-0
mobile/assets/changelog.html
mobile/assets/changelog.html
+6
-13
mobile/build.gradle
mobile/build.gradle
+2
-2
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
+0
-0
No files found.
Classes/gframe/CGUITTFont.h
View file @
ea54e5ce
...
@@ -218,7 +218,10 @@ public:
...
@@ -218,7 +218,10 @@ public:
virtual
void
setMaxPageTextureSize
(
const
core
::
dimension2du
&
texture_size
)
{
virtual
void
setMaxPageTextureSize
(
const
core
::
dimension2du
&
texture_size
)
{
max_page_texture_size
=
texture_size
;
max_page_texture_size
=
texture_size
;
}
}
//! Set the font size.
virtual
void
setFontSize
(
u32
new_size
)
{
size
=
new_size
;
}
//! Get the font size.
//! Get the font size.
virtual
u32
getFontSize
()
const
{
virtual
u32
getFontSize
()
const
{
return
size
;
return
size
;
...
...
Classes/gframe/deck_con.cpp
View file @
ea54e5ce
...
@@ -172,7 +172,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -172,7 +172,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
switch
(
id
)
{
switch
(
id
)
{
case
BUTTON_CLEAR_DECK
:
{
case
BUTTON_CLEAR_DECK
:
{
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
370
,
mainGame
->
text
Font
,
dataManager
.
GetSysString
(
1339
));
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
370
,
mainGame
->
gui
Font
,
dataManager
.
GetSysString
(
1339
));
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
prev_operation
=
id
;
prev_operation
=
id
;
...
@@ -246,7 +246,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -246,7 +246,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
wchar_t
textBuffer
[
256
];
wchar_t
textBuffer
[
256
];
myswprintf
(
textBuffer
,
L"%ls
\n
%ls"
,
mainGame
->
cbDBDecks
->
getItem
(
sel
),
dataManager
.
GetSysString
(
1337
));
myswprintf
(
textBuffer
,
L"%ls
\n
%ls"
,
mainGame
->
cbDBDecks
->
getItem
(
sel
),
dataManager
.
GetSysString
(
1337
));
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
370
*
mainGame
->
xScale
,
mainGame
->
text
Font
,
textBuffer
);
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
370
*
mainGame
->
xScale
,
mainGame
->
gui
Font
,
textBuffer
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
prev_operation
=
id
;
prev_operation
=
id
;
...
@@ -883,7 +883,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -883,7 +883,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
}
}
if
(
is_modified
&&
!
readonly
&&
!
mainGame
->
chkIgnoreDeckChanges
->
isChecked
())
{
if
(
is_modified
&&
!
readonly
&&
!
mainGame
->
chkIgnoreDeckChanges
->
isChecked
())
{
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
370
*
mainGame
->
xScale
,
mainGame
->
text
Font
,
dataManager
.
GetSysString
(
1356
));
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
370
*
mainGame
->
xScale
,
mainGame
->
gui
Font
,
dataManager
.
GetSysString
(
1356
));
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
prev_operation
=
id
;
prev_operation
=
id
;
...
@@ -1671,7 +1671,7 @@ void DeckBuilder::RefreshPackListScroll() {
...
@@ -1671,7 +1671,7 @@ void DeckBuilder::RefreshPackListScroll() {
}
}
}
else
{
}
else
{
mainGame
->
scrPackCards
->
setVisible
(
false
);
mainGame
->
scrPackCards
->
setVisible
(
false
);
mainGame
->
scrPackCards
->
setPos
(
0
);
mainGame
->
scrPackCards
->
setPos
(
0
);
}
}
}
}
void
DeckBuilder
::
ChangeCategory
(
int
catesel
)
{
void
DeckBuilder
::
ChangeCategory
(
int
catesel
)
{
...
...
Classes/gframe/drawing.cpp
View file @
ea54e5ce
This diff is collapsed.
Click to expand it.
Classes/gframe/duelclient.cpp
View file @
ea54e5ce
...
@@ -1461,7 +1461,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1461,7 +1461,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
myswprintf
(
textBuffer
,
dataManager
.
GetDesc
(
desc
),
dataManager
.
GetName
(
code
));
myswprintf
(
textBuffer
,
dataManager
.
GetDesc
(
desc
),
dataManager
.
GetName
(
code
));
}
}
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
3
7
0
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
textBuffer
);
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
3
9
0
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
textBuffer
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
return
false
;
return
false
;
...
@@ -1471,7 +1471,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1471,7 +1471,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
int
desc
=
BufferIO
::
ReadInt32
(
pbuf
);
int
desc
=
BufferIO
::
ReadInt32
(
pbuf
);
mainGame
->
dField
.
highlighting_card
=
0
;
mainGame
->
dField
.
highlighting_card
=
0
;
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
3
70
*
mainGame
->
xScale
,
mainGame
->
text
Font
,
dataManager
.
GetDesc
(
desc
));
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
3
90
*
mainGame
->
xScale
,
mainGame
->
gui
Font
,
dataManager
.
GetDesc
(
desc
));
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
return
false
;
return
false
;
...
@@ -1731,7 +1731,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1731,7 +1731,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
myswprintf
(
textBuffer
,
L"%ls
\n
%ls
\n
%ls"
,
event_string
,
dataManager
.
GetSysString
(
222
),
dataManager
.
GetSysString
(
223
));
myswprintf
(
textBuffer
,
L"%ls
\n
%ls
\n
%ls"
,
event_string
,
dataManager
.
GetSysString
(
222
),
dataManager
.
GetSysString
(
223
));
else
else
myswprintf
(
textBuffer
,
L"%ls
\n
%ls"
,
event_string
,
dataManager
.
GetSysString
(
203
));
myswprintf
(
textBuffer
,
L"%ls
\n
%ls"
,
event_string
,
dataManager
.
GetSysString
(
203
));
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
3
7
0
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
textBuffer
);
mainGame
->
SetStaticText
(
mainGame
->
stQMessage
,
3
9
0
*
mainGame
->
xScale
,
mainGame
->
guiFont
,
textBuffer
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
}
}
}
}
...
...
Classes/gframe/event_handler.cpp
View file @
ea54e5ce
...
@@ -225,6 +225,32 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -225,6 +225,32 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
ClearChatMsg
();
mainGame
->
ClearChatMsg
();
break
;
break
;
}
}
case
BUTTON_REDUCE_CARD_TEXT
:
{
if
(
mainGame
->
gameConf
.
textfontsize
<
24
)
{
mainGame
->
btnEnlargeCardText
->
setEnabled
(
true
);
if
(
mainGame
->
gameConf
.
textfontsize
=
16
)
mainGame
->
btnReduceCardText
->
setEnabled
(
false
);
}
else
{
mainGame
->
gameConf
.
textfontsize
=
mainGame
->
gameConf
.
textfontsize
-
2
;
mainGame
->
textFont
->
setFontSize
(
mainGame
->
gameConf
.
textfontsize
*
mainGame
->
yScale
);
const
auto
&
tsize
=
mainGame
->
stText
->
getRelativePosition
();
mainGame
->
InitStaticText
(
mainGame
->
stText
,
tsize
.
getWidth
(),
tsize
.
getHeight
(),
mainGame
->
textFont
,
mainGame
->
showingtext
);
}
break
;
}
case
BUTTON_ENLARGE_CARD_TEXT
:
{
if
(
mainGame
->
gameConf
.
textfontsize
=
24
)
{
mainGame
->
btnEnlargeCardText
->
setEnabled
(
false
);
if
(
mainGame
->
gameConf
.
textfontsize
>
16
)
mainGame
->
btnReduceCardText
->
setEnabled
(
true
);
}
else
{
mainGame
->
gameConf
.
textfontsize
=
mainGame
->
gameConf
.
textfontsize
+
2
;
mainGame
->
textFont
->
setFontSize
(
mainGame
->
gameConf
.
textfontsize
*
mainGame
->
yScale
);
const
auto
&
tsize
=
mainGame
->
stText
->
getRelativePosition
();
mainGame
->
InitStaticText
(
mainGame
->
stText
,
tsize
.
getWidth
(),
tsize
.
getHeight
(),
mainGame
->
textFont
,
mainGame
->
showingtext
);
}
break
;
}
case
BUTTON_CHAIN_IGNORE
:
{
case
BUTTON_CHAIN_IGNORE
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
ignore_chain
=
mainGame
->
btnChainIgnore
->
isPressed
();
mainGame
->
ignore_chain
=
mainGame
->
btnChainIgnore
->
isPressed
();
...
@@ -2098,7 +2124,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2098,7 +2124,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
u32
pos
=
mainGame
->
scrCardText
->
getPos
();
u32
pos
=
mainGame
->
scrCardText
->
getPos
();
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
25
,
mainGame
->
gui
Font
,
mainGame
->
showingtext
,
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
15
,
mainGame
->
text
Font
,
mainGame
->
showingtext
,
pos
);
return
true
;
return
true
;
break
;
break
;
}
}
...
@@ -2254,6 +2280,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2254,6 +2280,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
eventElement
==
mainGame
->
wLanWindow
)
{
eventElement
==
mainGame
->
wLanWindow
)
{
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
guiFont
->
setTransparency
(
true
);
mainGame
->
ClearChatMsg
();
mainGame
->
ClearChatMsg
();
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
break
;
break
;
...
@@ -2286,7 +2313,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2286,7 +2313,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
>
max
)
pos
=
max
;
if
(
pos
>
max
)
pos
=
max
;
mainGame
->
scrCardText
->
setPos
(
pos
);
mainGame
->
scrCardText
->
setPos
(
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
25
,
mainGame
->
gui
Font
,
mainGame
->
showingtext
,
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
15
,
mainGame
->
text
Font
,
mainGame
->
showingtext
,
pos
);
}
}
if
(
is_dragging_lstLog
)
{
if
(
is_dragging_lstLog
)
{
if
(
!
mainGame
->
lstLog
->
getVerticalScrollBar
()
->
isVisible
())
{
if
(
!
mainGame
->
lstLog
->
getVerticalScrollBar
()
->
isVisible
())
{
...
@@ -2577,28 +2604,28 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2577,28 +2604,28 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
0
,
height
));
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnSummon
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnSPSummon
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnMSet
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnMSet
->
setVisible
(
false
);
}
else
mainGame
->
btnMSet
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SSET
)
{
if
(
flag
&
COMMAND_SSET
)
{
...
@@ -2609,7 +2636,7 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2609,7 +2636,7 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnSSet
->
setVisible
(
true
);
mainGame
->
btnSSet
->
setVisible
(
true
);
mainGame
->
btnSSet
->
setRelativePosition
(
position2di
(
0
,
height
));
mainGame
->
btnSSet
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnSSet
->
setVisible
(
false
);
}
else
mainGame
->
btnSSet
->
setVisible
(
false
);
if
(
flag
&
COMMAND_REPOS
)
{
if
(
flag
&
COMMAND_REPOS
)
{
...
@@ -2622,40 +2649,40 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -2622,40 +2649,40 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnRepos
->
setVisible
(
true
);
mainGame
->
btnRepos
->
setVisible
(
true
);
mainGame
->
btnRepos
->
setRelativePosition
(
position2di
(
0
,
height
));
mainGame
->
btnRepos
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnAttack
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnOperation
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
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
(
0
,
height
));
mainGame
->
btnReset
->
setRelativePosition
(
position2di
(
0
,
height
));
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
height
+=
5
0
*
mainGame
->
yScale
;
height
+=
6
0
*
mainGame
->
yScale
;
#endif
#endif
}
else
mainGame
->
btnReset
->
setVisible
(
false
);
}
else
mainGame
->
btnReset
->
setVisible
(
false
);
panel
=
mainGame
->
wCmdMenu
;
panel
=
mainGame
->
wCmdMenu
;
mainGame
->
wCmdMenu
->
setVisible
(
true
);
mainGame
->
wCmdMenu
->
setVisible
(
true
);
mainGame
->
wCmdMenu
->
setRelativePosition
(
irr
::
core
::
recti
(
x
-
10
*
mainGame
->
xScale
,
y
-
30
*
mainGame
->
yScale
-
height
,
x
+
100
*
mainGame
->
xScale
,
y
-
2
0
*
mainGame
->
yScale
));
mainGame
->
wCmdMenu
->
setRelativePosition
(
irr
::
core
::
recti
(
x
-
20
*
mainGame
->
xScale
,
y
-
30
*
mainGame
->
yScale
-
height
,
x
+
130
*
mainGame
->
xScale
,
y
-
3
0
*
mainGame
->
yScale
));
}
}
void
ClientField
::
HideMenu
()
{
void
ClientField
::
HideMenu
()
{
mainGame
->
wCmdMenu
->
setVisible
(
false
);
mainGame
->
wCmdMenu
->
setVisible
(
false
);
...
...
Classes/gframe/game.cpp
View file @
ea54e5ce
This diff is collapsed.
Click to expand it.
Classes/gframe/game.h
View file @
ea54e5ce
...
@@ -305,6 +305,8 @@ public:
...
@@ -305,6 +305,8 @@ public:
irr
::
gui
::
IGUIStaticText
*
stSetName
;
irr
::
gui
::
IGUIStaticText
*
stSetName
;
irr
::
gui
::
IGUIStaticText
*
stText
;
irr
::
gui
::
IGUIStaticText
*
stText
;
irr
::
gui
::
IGUIScrollBar
*
scrCardText
;
irr
::
gui
::
IGUIScrollBar
*
scrCardText
;
irr
::
gui
::
IGUIButton
*
btnReduceCardText
;
irr
::
gui
::
IGUIButton
*
btnEnlargeCardText
;
irr
::
gui
::
IGUICheckBox
*
chkMAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkMAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkSTAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkSTAutoPos
;
irr
::
gui
::
IGUICheckBox
*
chkRandomPos
;
irr
::
gui
::
IGUICheckBox
*
chkRandomPos
;
...
@@ -911,6 +913,8 @@ extern Game* mainGame;
...
@@ -911,6 +913,8 @@ extern Game* mainGame;
#define BUTTON_BIG_CARD_ZOOM_IN 381
#define BUTTON_BIG_CARD_ZOOM_IN 381
#define BUTTON_BIG_CARD_ZOOM_OUT 382
#define BUTTON_BIG_CARD_ZOOM_OUT 382
#define BUTTON_BIG_CARD_ORIG_SIZE 383
#define BUTTON_BIG_CARD_ORIG_SIZE 383
#define BUTTON_ENLARGE_CARD_TEXT 384
#define BUTTON_REDUCE_CARD_TEXT 385
#define AVAIL_OCG 0x1
#define AVAIL_OCG 0x1
#define AVAIL_TCG 0x2
#define AVAIL_TCG 0x2
...
...
mobile/assets/changelog.html
View file @
ea54e5ce
...
@@ -16,23 +16,16 @@
...
@@ -16,23 +16,16 @@
特别感谢: 尸体233,废话多,大毛, zhuhongbo, JSY1728, 幻兽L 等的支持与努力.
特别感谢: 尸体233,废话多,大毛, zhuhongbo, JSY1728, 幻兽L 等的支持与努力.
</pre>
</pre>
<ul>
<ul>
<li
style=
"color:#ffff00"
>
3.10.
8
</li>
<li
style=
"color:#ffff00"
>
3.10.
9
</li>
</ul>
</ul>
<pre>
<pre>
更新:
更新:
1.更新ygo内核;
1.更新ygopro内核;
2.新卡1112+PPC2+VJ等;
2.新卡T1112+VJ等;
3.新增人机:地天使泪珠哀歌族;
变更:
变更:
1.优化竖屏卡组管理UI;
1.修正没有卡组或者一些场景无法读取卡组时时打开卡组编辑错误退出的问题;
2.优化使得在大量卡组下也能快速加载;
2.从ygopro退出后切换到卡组编辑将重新加载最后使用的卡组;
3.显示卡包展示下的首图和张数统计;
3.修正卡包展示中先行卡展示卡堆统计数量错误的问题;
4.先行卡展示卡组统一纳入卡包展示置顶显示;
5.先行卡展示卡组不再可被备份;
6.先行卡展示卡组会随着拓展卡包下载更新自动替换,不再会残留旧的;
7.卡组管理增加关键字搜索卡组功能;
8.修正ygopro卡组管理下不显示先行卡展示的问题;
9.修正一些场合覆盖安装不完整复制文件的问题;
</pre>
</pre>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<h3
style=
"color:#ff0000"
>
注意
</h3>
...
...
mobile/build.gradle
View file @
ea54e5ce
...
@@ -9,8 +9,8 @@ android {
...
@@ -9,8 +9,8 @@ android {
minSdkVersion
21
minSdkVersion
21
//noinspection ExpiredTargetSdkVersion
//noinspection ExpiredTargetSdkVersion
targetSdkVersion
29
targetSdkVersion
29
versionCode
3100
80942
versionCode
3100
90943
versionName
"3.10.
8
"
versionName
"3.10.
9
"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
ndk
{
...
...
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
View replaced file @
8e51370b
View file @
ea54e5ce
180 KB
|
W:
|
H:
127 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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