Problems in the tutorial?
This line in the tutorial seems wrong:
label = getglobal("TutorialProjectForm".."CountLabel".."Label"); My label is not updating. |
All you are doing here is setting label (a variable) to be that label.
Now you have to do label:SetText("Get on IRC"); |
I understand that.. It's just here are the instructions for Step 10
10. Now set up the properties for the label to: Location = 32, 64 Size = 336, 16 (Name) = $parentCountLabel Horizontal Alignment = LEFT The lua has an extra part on it. label = getglobal("TutorialProjectForm".."CountLabel".."Label"); That getglobal is going after something called "TutorialProjectFormCountLabelLabel", correct? |
You needed to get the Label component from the Default skin. Because all components have to be derived from Frame, you can't have a FontString directly as a component, so it is contained within a frame, so:
Main Frame: TutorialProjectForm Component Frame : $parentCountLabel = TutorialProjectFormCountLabel Embedded FontString : $parentLabel = TutorialProjectFormCountLabelLabel If you took the label from the Basic skin, then the embedded fontstring is not named correctly so will not work like that. You can go into the Skins\BasicSkin.xml file, go down to line 626 and you will see the FontString definition within the Layer tag: <FontString inherits="GameFontNormal" setAllPoints="true"/> and change it to: <FontString name="$parentLabel" inherits="GameFontNormal" setAllPoints="true"/> If you now restart the application, open your Form and resave it, it should work.. or just use the one from the Default skin. Good luck |
All times are GMT -6. The time now is 07:58 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI