Originally Posted by TJones1467
so, just to make sure I'm understanding this correctly. Please excuse my .Net (i know.. i know..) terminology.
the syntax testFrame.texture = testFrame:CreateTexture() is using the texture property of the testFrame (table) and then creating the texture to be applied to that property. is that right?
If that is correct, then I completely understand why it wasn't working. Thank you!
|
local is part of the declaration, since you are familiar with .net this would be the same as trying to declare a variable twice with a type set, ie:
string value = "Something"
(some other code)
string value = "Nothing"
This would throw an exception, whereas if you wanted to change the value it would look more like:
string value = "Something"
(some other code)
value = "Nothing"
However, in Lua, variables are not typed, so we just declare if it's a local. If you don't add the local then it defaults as a global and is accessible inside all of WoW