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
8c897791
Commit
8c897791
authored
Mar 19, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove 修改文字大小按钮
parent
c80e3e35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
33 deletions
+1
-33
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+0
-26
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+1
-3
Classes/gframe/game.h
Classes/gframe/game.h
+0
-4
No files found.
Classes/gframe/event_handler.cpp
View file @
8c897791
...
@@ -225,32 +225,6 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -225,32 +225,6 @@ 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
();
...
...
Classes/gframe/game.cpp
View file @
8c897791
...
@@ -493,9 +493,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
...
@@ -493,9 +493,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
scrCardText
->
setLargeStep
(
1
);
scrCardText
->
setLargeStep
(
1
);
scrCardText
->
setSmallStep
(
1
);
scrCardText
->
setSmallStep
(
1
);
scrCardText
->
setVisible
(
false
);
scrCardText
->
setVisible
(
false
);
btnReduceCardText
=
env
->
addButton
(
rect
<
s32
>
(
140
*
yScale
,
340
*
yScale
,
165
*
yScale
,
365
*
yScale
),
wInfos
,
BUTTON_REDUCE_CARD_TEXT
,
L"A-"
);
//imageButtons pallet
btnEnlargeCardText
=
env
->
addButton
(
rect
<
s32
>
(
175
*
yScale
,
340
*
yScale
,
200
*
yScale
,
365
*
yScale
),
wInfos
,
BUTTON_ENLARGE_CARD_TEXT
,
L"A+"
);
//imageButtons pallet
wPallet
=
env
->
addWindow
(
rect
<
s32
>
(
262
*
xScale
,
275
*
yScale
,
307
*
xScale
,
639
*
yScale
),
false
,
L""
);
wPallet
=
env
->
addWindow
(
rect
<
s32
>
(
262
*
xScale
,
275
*
yScale
,
307
*
xScale
,
639
*
yScale
),
false
,
L""
);
wPallet
->
getCloseButton
()
->
setVisible
(
false
);
wPallet
->
getCloseButton
()
->
setVisible
(
false
);
wPallet
->
setDraggable
(
false
);
wPallet
->
setDraggable
(
false
);
...
...
Classes/gframe/game.h
View file @
8c897791
...
@@ -305,8 +305,6 @@ public:
...
@@ -305,8 +305,6 @@ 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
;
...
@@ -913,8 +911,6 @@ extern Game* mainGame;
...
@@ -913,8 +911,6 @@ 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
...
...
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