Thread: Level: None
View Single Post
  #3  
Unread 11-26-2010, 01:06 AM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Quote:
Originally Posted by Drumstix42 View Post
Make that element invisible, and make a new text element exactly like it. Don't use the dynamicdata for the next text however.

In the invisible element you would add a OnTextChanged property and do something like this:

Code:
sCurrentLevel=Text
bCheck=(Text == 'None')
sResult=(bCheck ? ' ' : sCurrentLevel)
Parent.NewLevelDisplay.text=sResult
where NewLevelDisplay is your new, visible text element. That should make it show the level as long as it's not equal to "None".
This is my actual lvl item:
Code:
<Text Activated="true" DynamicData="/GameData.Target.Level" Font="/TextStyles.SuperLarge.SuperLargeStyle" Location="12,42" MaxLines="1" Name="Level" OnTextChanged="sCurrentLevel=Text bCheck=(Text == 'None') sResult=(bCheck ? ' ' : sCurrentLevel) Parent.LevelTextObject.text=sResult" ScrollExtent="32,40" Size="32,32" TextAlignment="Center" TruncateElipsis="false" Visible="false">60</Text>
This is my NewTextObject:
Code:
<Text Activated="true" Font="/TextStyles.SuperLarge.SuperLargeStyle" Location="12,42" MaxLines="1" Name="LevelTextObject" ScrollExtent="32,40" Size="32,32" TextAlignment="Center" TruncateElipsis="false" Visible="false">60</Text>
Its still showing the None as a level. None isnt a level lol.

Thanks,
Draven

Last edited by Draven_Caine : 11-26-2010 at 01:15 AM. Reason: Fixed an error that the web created.
Reply With Quote