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
1953b551
Commit
1953b551
authored
Jun 26, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加log按钮
更改贴图名称 增加按钮贴图
parent
6e578dad
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
10 deletions
+27
-10
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+1
-1
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+18
-7
Classes/gframe/image_manager.cpp
Classes/gframe/image_manager.cpp
+4
-1
Classes/gframe/image_manager.h
Classes/gframe/image_manager.h
+4
-1
mobile/assets/data/textures/extra/tlogs.png
mobile/assets/data/textures/extra/tlogs.png
+0
-0
mobile/assets/data/textures/extra/tmute.png
mobile/assets/data/textures/extra/tmute.png
+0
-0
mobile/assets/data/textures/extra/tplay.png
mobile/assets/data/textures/extra/tplay.png
+0
-0
mobile/assets/data/textures/extra/tsettings.png
mobile/assets/data/textures/extra/tsettings.png
+0
-0
No files found.
Classes/gframe/deck_con.cpp
View file @
1953b551
...
...
@@ -169,7 +169,7 @@ void DeckBuilder::Terminate() {
mainGame
->
wCardImg
->
setVisible
(
false
);
mainGame
->
wInfos
->
setVisible
(
false
);
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
wSettings
->
setVisible
(
false
);
mainGame
->
wPallet
->
setVisible
(
false
);
mainGame
->
PopupElement
(
mainGame
->
wMainMenu
);
mainGame
->
device
->
setEventReceiver
(
&
mainGame
->
menuHandler
);
mainGame
->
wACMessage
->
setVisible
(
false
);
...
...
Classes/gframe/game.cpp
View file @
1953b551
...
...
@@ -388,23 +388,34 @@ bool Game::Initialize() {
scrCardText
->
setLargeStep
(
1
);
scrCardText
->
setSmallStep
(
1
);
scrCardText
->
setVisible
(
false
);
//
setting
wPallet
=
env
->
addWindow
(
rect
<
s32
>
(
265
*
xScale
,
275
*
yScale
,
305
*
xScale
,
63
5
*
yScale
),
false
,
L""
);
//
imageButtons pallet
wPallet
=
env
->
addWindow
(
rect
<
s32
>
(
265
*
xScale
,
275
*
yScale
,
305
*
xScale
,
63
9
*
yScale
),
false
,
L""
);
wPallet
->
getCloseButton
()
->
setVisible
(
false
);
wPallet
->
setDraggable
(
false
);
wPallet
->
setDrawTitlebar
(
false
);
wPallet
->
setDrawBackground
(
false
);
wPallet
->
setVisible
(
false
);
imgSettings
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
0
*
yScale
,
0
*
yScale
,
40
*
yScale
,
40
*
yScale
),
wPallet
,
BUTTON_SETTINGS
);
imgSettings
->
setImage
(
imageManager
.
tSettings
);
imgSettings
->
setImageSize
(
core
::
dimension2di
(
yScale
,
yScale
));
//Logs
imgLog
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
0
*
yScale
,
65
*
yScale
,
45
*
yScale
,
110
*
yScale
),
wPallet
,
BUTTON_SHOW_LOG
);
imgLog
->
setImage
(
imageManager
.
tLogs
);
imgLog
->
setImageSize
(
core
::
dimension2di
(
yScale
,
yScale
));
//vol play/mute
imgVol
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
0
*
yScale
,
319
*
yScale
,
45
*
yScale
,
364
*
yScale
),
wPallet
,
BUTTON_BGM
);
if
(
gameConf
.
enable_music
)
{
imgVol
->
setImage
(
imageManager
.
tPlay
);
}
else
{
imgVol
->
setImage
(
imageManager
.
tMute
);
}
imgVol
->
setImageSize
(
core
::
dimension2di
(
yScale
,
yScale
));
//Settings
imgSettings
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
0
*
yScale
,
0
*
yScale
,
45
*
yScale
,
45
*
yScale
),
wPallet
,
BUTTON_SETTINGS
);
imgSettings
->
setImage
(
imageManager
.
tSettings
);
imgSettings
->
setImageSize
(
core
::
dimension2di
(
yScale
,
yScale
));
wSettings
=
env
->
addWindow
(
rect
<
s32
>
(
220
*
xScale
,
100
*
yScale
,
800
*
xScale
,
520
*
yScale
),
false
,
dataManager
.
GetSysString
(
1273
));
wSettings
->
getCloseButton
()
->
setVisible
(
false
);
wSettings
->
setVisible
(
false
);
irr
::
gui
::
IGUITabControl
*
tabSetting
=
env
->
addTabControl
(
rect
<
s32
>
(
0
*
xScale
,
20
*
yScale
,
579
*
xScale
,
419
*
yScale
),
wSettings
,
true
);
tabSetting
->
setTabHeight
(
40
*
yScale
);
//log
//imgLog = irr::gui::CGUIImageButton::addImageButton(env, rect<s32>(265 * yScale, 305 * yScale, 290 * yScale, 330 * yScale), 0, BUTTON_SHOW_LOG);
irr
::
gui
::
IGUITab
*
tabLog
=
tabSetting
->
addTab
(
dataManager
.
GetSysString
(
1271
));
lstLog
=
env
->
addListBox
(
rect
<
s32
>
(
10
*
xScale
,
10
*
yScale
,
790
*
xScale
,
510
*
yScale
),
wSettings
,
LISTBOX_LOG
,
false
);
lstLog
->
setItemHeight
(
25
*
yScale
);
...
...
Classes/gframe/image_manager.cpp
View file @
1953b551
...
...
@@ -34,7 +34,10 @@ bool ImageManager::Initial(const path dir) {
tAvatar
[
0
]
=
driver
->
getTexture
((
dir
+
path
(
"/textures/me.jpg"
)).
c_str
());
tAvatar
[
1
]
=
driver
->
getTexture
((
dir
+
path
(
"/textures/opponent.jpg"
)).
c_str
());
tLPBarFrame
=
driver
->
getTexture
((
dir
+
path
(
"/textures/lpbarf.png"
)).
c_str
());
tSettings
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/settings.png"
)).
c_str
());
tSettings
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tsettings.png"
)).
c_str
());
tLogs
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tlogs.png"
)).
c_str
());
tMute
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tmute.png"
)).
c_str
());
tPlay
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tplay.png"
)).
c_str
());
if
(
!
tBackGround_menu
)
tBackGround_menu
=
tBackGround
;
tBackGround_deck
=
driver
->
getTexture
((
dir
+
path
(
"/textures/bg_deck.jpg"
)).
c_str
());
...
...
Classes/gframe/image_manager.h
View file @
1953b551
...
...
@@ -56,7 +56,10 @@ public:
irr
::
video
::
ITexture
*
tAvatar
[
2
];
irr
::
video
::
ITexture
*
tLPBarFrame
;
irr
::
video
::
ITexture
*
tSettings
;
std
::
list
<
std
::
string
>
support_types
;
irr
::
video
::
ITexture
*
tLogs
;
irr
::
video
::
ITexture
*
tMute
;
irr
::
video
::
ITexture
*
tPlay
;
std
::
list
<
std
::
string
>
support_types
;
};
extern
ImageManager
imageManager
;
...
...
mobile/assets/data/textures/extra/tlogs.png
0 → 100644
View file @
1953b551
5.52 KB
mobile/assets/data/textures/extra/mute.png
→
mobile/assets/data/textures/extra/
t
mute.png
View file @
1953b551
File moved
mobile/assets/data/textures/extra/tplay.png
0 → 100644
View file @
1953b551
4.14 KB
mobile/assets/data/textures/extra/settings.png
→
mobile/assets/data/textures/extra/
t
settings.png
View file @
1953b551
File moved
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