Difference between revisions of "LavishGUI:lguifont (Data Type)"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
*'''SetName['''text''']''': text can be any acceptable font interface name, default are terminal, fixedsys, and "bradley hand itc". default fonts are located in inner space\interface\defaultfonts.xml | *'''SetName['''text''']''': text can be any acceptable font interface name, default are terminal, fixedsys, and "bradley hand itc". default fonts are located in inner space\interface\defaultfonts.xml | ||
*'''SetColor['''hex''']''': | *'''SetColor['''hex''']''': | ||
+ | |||
+ | == Inherits == | ||
+ | [[ISSession:isuielement (Data Type)|isuielement]] | ||
== Returns == | == Returns == | ||
+ | Same as '''Name''' | ||
== Examples == | == Examples == |
Revision as of 23:32, 29 August 2005
Contents
Description
Members
Methods
- SetHeight[#]: 0-96 - if you use 0 it will set it to the default for the font
- SetName[text]: text can be any acceptable font interface name, default are terminal, fixedsys, and "bradley hand itc". default fonts are located in inner space\interface\defaultfonts.xml
- SetColor[hex]:
Inherits
Returns
Same as Name
Examples
Change a font for an element
- UIElement[main hud].FindChild[fps].Font:SetName[fixedsys]
- changes font to fixedsys
Change a font color to red
- UIElement[main hud].FindChild[fps].Font:SetColor[ffff0000]
- changes font to red
Change a font height
- UIElement[main hud].FindChild[fps].Font:SetHeight[30]
- changes font height to 30
Display the font type
- echo Font Type: ${UIElement[main hud].FindChild[fps].Font.Name}
- Output
Font Type: terminal
Display the color of an element
- echo Color(in hex): ${UIElement[main hud].FindChild[fps].Font.Color.Hex}
- Output
Color(in hex): ffff0000