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
539c4212
Commit
539c4212
authored
Oct 18, 2019
by
kenan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix refreshTexture
parent
cf193a10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+1
-1
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+3
-3
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+11
-0
Classes/gframe/game.h
Classes/gframe/game.h
+1
-0
No files found.
Classes/gframe/deck_con.cpp
View file @
539c4212
...
...
@@ -1116,7 +1116,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
s32
y
=
event
.
MouseInput
.
Y
;
irr
::
core
::
position2di
pos
(
x
,
y
);
if
(
x
<
(
200
*
mainGame
->
xScale
)
&&
y
<
(
270
*
mainGame
->
yScale
))
{
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
refreshTexture
(
);
mainGame
->
ClearChatMsg
();
break
;
}
//touch the pic of detail to refresh textfonts
...
...
Classes/gframe/event_handler.cpp
View file @
539c4212
...
...
@@ -1053,7 +1053,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
hovered_location
=
0
;
irr
::
core
::
position2di
pos
(
x
,
y
);
if
(
x
<
(
200
*
mainGame
->
xScale
)
&&
y
<
(
270
*
mainGame
->
yScale
))
{
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
refreshTexture
(
);
mainGame
->
ClearChatMsg
();
break
;
}
//touch the pic of detail to refresh textfonts
...
...
@@ -1925,14 +1925,14 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
case
irr
:
:
KEY_KEY_R
:
{
if
(
mainGame
->
gameConf
.
control_mode
==
0
&&
!
event
.
KeyInput
.
PressedDown
&&
!
mainGame
->
HasFocus
(
EGUIET_EDIT_BOX
))
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
refreshTexture
(
);
return
true
;
break
;
}
case
irr
:
:
KEY_F9
:
{
if
(
mainGame
->
gameConf
.
control_mode
==
1
&&
!
event
.
KeyInput
.
PressedDown
&&
!
mainGame
->
HasFocus
(
EGUIET_EDIT_BOX
))
mainGame
->
textFont
->
setTransparency
(
true
);
mainGame
->
refreshTexture
(
);
return
true
;
break
;
}
...
...
Classes/gframe/game.cpp
View file @
539c4212
...
...
@@ -1758,4 +1758,15 @@ JNIEnv* Game::getJniEnv(){
}
#endif
void
Game
::
refreshTexture
(){
#ifdef _IRR_ANDROID_PLATFORM_
LOGD
(
"refreshTexture before"
);
#endif
gMutex
.
lock
();
textFont
->
setTransparency
(
true
);
gMutex
.
unlock
();
#ifdef _IRR_ANDROID_PLATFORM_
LOGD
(
"refreshTexture after"
);
#endif
}
}
Classes/gframe/game.h
View file @
539c4212
...
...
@@ -560,6 +560,7 @@ public:
JNIEnv
*
getJniEnv
();
#endif
void
refreshTexture
();
void
runWindbot
(
const
char
*
cmd
);
io
::
path
getCardImagePath
(){
return
cardImagePath
;
...
...
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