Quantcast
Lua dynamic class name possible ? - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-03-15, 05:45 PM   #1
florian_9598
A Defias Bandit
Join Date: Mar 2015
Posts: 3
Lua dynamic class name possible ?

Hello everyone;

I'm new in LUA, i want to set a dynamic name class, for exemple :

Lua Code:
  1. Frame:SetPoint("TOPLEFT",Test.About._G[Test],"TOPLEFT",-100,-49)

It's not work ! :'(

But this, is good :

Lua Code:
  1. Frame:SetPoint("TOPLEFT",_G[Test].About.Test,"TOPLEFT",-100,-49)

How to dynamically assign the name of a class after the first object ?

Ex Test.About._G[Test], Test.About.(Test), Test.About.{Test} ?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Lua dynamic class name possible ?

Thread Tools
Display Modes

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