AddOns
Latest 200
AddOn Manager
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Wiki
Help
Login
Sign up
ESOUI
»
Developer Discussions
»
Lua/XML Help
»
GetDimensions
Go to Page...
Reply
Thread Tools
Display Modes
05/02/14, 02:20 PM
#
1
skyraker
Join Date: Mar 2014
Posts: 154
GetDimensions
Lua Code:
local
x,y
=
toolText:GetDimensions
(
)
When I do this, x and y are both 0, but when I /script it in game, it shows the correct values.
What gives?
skyraker
View Public Profile
Send a private message to skyraker
Find More Posts by skyraker
05/02/14, 02:45 PM
#
2
mra4nii
Join Date: Apr 2014
Posts: 42
I think this mean that in game toolText control is initialized already. But not in your code.
mra4nii
View Public Profile
Send a private message to mra4nii
Find More Posts by mra4nii
05/02/14, 03:02 PM
#
3
skyraker
Join Date: Mar 2014
Posts: 154
Originally Posted by
mra4nii
I think this mean that in game toolText control is initialized already. But not in your code.
It is initialized. It is being constantly updated.
skyraker
View Public Profile
Send a private message to skyraker
Find More Posts by skyraker
05/02/14, 03:22 PM
#
4
Seerah
Fishing Trainer
Join Date: Feb 2014
Posts: 648
Are you calling :GetDimensions() before your label has text?
Have you given your label explicit dimensions?
Seerah
View Public Profile
Send a private message to Seerah
Find More Posts by Seerah
05/02/14, 03:28 PM
#
5
skyraker
Join Date: Mar 2014
Posts: 154
Originally Posted by
Seerah
Are you calling :GetDimensions() before your label has text?
Heh, I forgot I cleared out the text before adding it back in. Though that gives me an idea on moving some info around.
Thanks Seerah!
skyraker
View Public Profile
Send a private message to skyraker
Find More Posts by skyraker
Reply
ESOUI
»
Developer Discussions
»
Lua/XML Help
» GetDimensions
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off