Difference between revisions of "LavishGUI:lguiconsole (Data Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
== Description ==
 
== Description ==
This data type provides and controls data for LGUI consoles.
+
This data type provides and controls data for [[LavishGUI:console_%28Element_Type%29|console (Element Type)]].
 
== 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 42: Line 42:
 
== See Also ==
 
== See Also ==
 
*[[LavishGUI]]
 
*[[LavishGUI]]
 +
* [[LavishGUI:console_%28Element_Type%29|console (Element Type)]]
 
* [[LavishScript:Data Types|LavishScript Data Types]]
 
* [[LavishScript:Data Types|LavishScript Data Types]]
 
* [[IS:Session#Data_Types|Inner Space Session Data Types]]
 
* [[IS:Session#Data_Types|Inner Space Session Data Types]]
  
 
[[Category:LavishGUI]]
 
[[Category:LavishGUI]]

Latest revision as of 22:47, 15 December 2005

Description

This data type provides and controls data for console (Element Type).

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

lguielement

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!

See Also