Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-ygopro
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
苍蓝
rd-ygopro
Commits
cd9df85f
Commit
cd9df85f
authored
Oct 22, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
711ebfe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gframe/event_handler.cpp
gframe/event_handler.cpp
+6
-6
No files found.
gframe/event_handler.cpp
View file @
cd9df85f
...
...
@@ -2240,12 +2240,12 @@ void ClientField::ShowCardInfoInList(ClientCard* pcard, irr::gui::IGUIElement* e
}
if
(
str
.
length
()
>
0
)
{
parent
->
addChild
(
mainGame
->
stCardListTip
);
irr
::
core
::
rect
<
s32
>
e
p
os
=
element
->
getRelativePosition
();
s32
x
=
(
e
pos
.
UpperLeftCorner
.
X
+
ep
os
.
LowerRightCorner
.
X
)
/
2
;
s32
y
=
e
p
os
.
LowerRightCorner
.
Y
;
irr
::
core
::
dimension2d
<
unsigned
int
>
dtip
=
mainGame
->
textFont
->
getDimension
(
str
.
c_str
())
+
irr
::
core
::
dimension2d
<
unsigned
int
>
(
10
,
10
);
mainGame
->
stCardListTip
->
setRelativePosition
(
recti
(
x
-
dtip
.
Width
/
2
,
y
-
10
,
x
+
dtip
.
Width
/
2
,
y
-
10
+
dtip
.
Height
)
);
mainGame
->
stCardListTip
->
set
Text
(
str
.
c_str
(
));
irr
::
core
::
rect
<
s32
>
e
P
os
=
element
->
getRelativePosition
();
s32
x
=
(
e
Pos
.
UpperLeftCorner
.
X
+
eP
os
.
LowerRightCorner
.
X
)
/
2
;
s32
y
=
e
P
os
.
LowerRightCorner
.
Y
;
mainGame
->
SetStaticText
(
mainGame
->
stCardListTip
,
160
,
mainGame
->
guiFont
,
str
.
c_str
()
);
irr
::
core
::
dimension2d
<
unsigned
int
>
dTip
=
mainGame
->
guiFont
->
getDimension
(
mainGame
->
stCardListTip
->
getText
())
+
irr
::
core
::
dimension2d
<
unsigned
int
>
(
10
,
10
);
mainGame
->
stCardListTip
->
set
RelativePosition
(
recti
(
x
-
dTip
.
Width
/
2
,
y
-
10
,
x
+
dTip
.
Width
/
2
,
y
-
10
+
dTip
.
Height
));
mainGame
->
stCardListTip
->
setVisible
(
true
);
}
}
...
...
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