View Single Post
11-13-05, 06:46 PM   #4
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
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
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote