Difference between revisions of "LavishGUI:lguiconsole (Data Type)"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | This data type provides and controls data for | + | This data type provides and controls data for LGUI consoles. |
== Members == | == Members == | ||
* [[ISSession:isuifont (Data Type)|isuifont]] '''Font''' : font type the console is using | * [[ISSession:isuifont (Data Type)|isuifont]] '''Font''' : font type the console is using | ||
Line 15: | Line 15: | ||
* '''Echo['''Text''']''' : Echoes <text> to the console | * '''Echo['''Text''']''' : Echoes <text> to the console | ||
== Inherits == | == Inherits == | ||
− | [[ | + | [[LavishGUI:lguielement_%28Data_Type%29|lguielement]] |
== Returns == | == Returns == | ||
− | Same as ''' | + | Same as '''lguielement.Name''' |
== Examples == | == Examples == |
Revision as of 20:43, 9 December 2005
Contents
Description
This data type provides and controls data for LGUI consoles.
Members
- isuifont Font : font type the console is using
- int BorderColor : border color of the console
- int ScrollbackColor : scrollback color of the console
- int BackgroundColor : background color of the console
- int SelectionColor : selection color of the console
Methods
- SetBorderColor[#] : set the color of the border with <#> in hex format <e.g. FFFFFF00>
- SetScrollbackColor[#] : set the color of the scrollback with <#> in hex format <e.g. FFFFFF00>
- SetBackgroundColor[#] : set the color of the background with <#> in hex format <e.g. FFFFFF00>
- SetSelectionColor[#] : set the color of selected text with <#> in hex format <e.g. FFFFFF00>
- Echo[Text] : Echoes <text> to the console
Inherits
Returns
Same as lguielement.Name
Examples
Display the font the Console is using
- echo Console font: ${UIElement[console].FindChild[output].Font}
- Output
Console font: Terminal
Display the scrollback color the Console is using
- echo Scrollback color(in hex): ${UIElement[console].FindChild[output].ScrollbackColor.Hex}
- Output
Scrollback color(in hex): ff330000
Display the background color the Console is using
- echo Background color(in hex): ${UIElement[console].FindChild[output].BackgroundColor.Hex}
- Output
Background color(in hex): ff000033
Set the Console border color
- UIElement[console].FindChild[output]:SetBorderColor[FFFF00FF]
- This command sets the Console border to pink
Set the Console selection color
- UIElement[console].FindChild[output]:SetSelectionColor[FF00FF00]
- This command changes the color when you click and drag your mouse over text, yay, bright green!