Difference between revisions of "LavishGUI 2"

From Lavish Software Wiki
Jump to: navigation, search
(Created page with "LavishGUI 2 (LGUI2) is a '''work-in-progress''' GUI system for Inner Space (build 6269 or later) which supports DirectX and OpenGL renderers. LavishGUI 2 effectively r...")
 
(Topics)
Line 31: Line 31:
 
* [[LGUI2:Event Handlers|Event Handlers]]
 
* [[LGUI2:Event Handlers|Event Handlers]]
 
* [[LGUI2:Input Bindings|Input Bindings]]
 
* [[LGUI2:Input Bindings|Input Bindings]]
 +
 +
== Types of Elements ==
 +
* [[LGUI2:border|border]]
 +
* [[LGUI2:button|button]]
 +
* [[LGUI2:checkbox|checkbox]]
 +
* [[LGUI2:combobox|combobox]]
 +
* [[LGUI2:dockpanel|dockpanel]]
 +
* [[LGUI2:expander|expander]]
 +
* [[LGUI2:listbox|listbox]]
 +
* [[LGUI2:panel|panel]]
 +
* [[LGUI2:progressbar|progressbar]]
 +
* [[LGUI2:screen|screen]]
 +
* [[LGUI2:scrollbar|scrollbar]]
 +
* [[LGUI2:scrollviewer|scrollviewer]]
 +
* [[LGUI2:slider|slider]]
 +
* [[LGUI2:stackpanel|stackpanel]]
 +
* [[LGUI2:tabcontrol|tabcontrol]]
 +
* [[LGUI2:textblock|textblock]]
 +
* [[LGUI2:textbox|textbox]]
 +
* [[LGUI2:window|window]]
  
 
[[Category:LavishGUI 2|LavishGUI 2]]
 
[[Category:LavishGUI 2|LavishGUI 2]]

Revision as of 23:21, 12 May 2018

LavishGUI 2 (LGUI2) is a work-in-progress GUI system for Inner Space (build 6269 or later) which supports DirectX and OpenGL renderers. LavishGUI 2 effectively replaces LavishGUI, although both systems will be active in Inner Space.

LavishGUI 2 interfaces are designed in JSON format, and are scriptable with LavishScript.

Here is a very simple (and completely valid) "Hello World!" example for LavishGUI 2
{  
      "type":"textblock",
      "text":"Hello World!",
}

LavishGUI 2 also implements an input bindings system which includes support for axis (thumbsticks, triggers, etc) and directional pad (D-pad) controls. Input bindings are also designed in JSON format.

Here is an example Input Bindings list that can be loaded into LavishGUI 2
[
	{
		"name":"I did it!",
		"controls":"VK_LBUTTON",
		"modifiers":"alt",
		"eventHandler":["method","MyBindingController","IDidIt"]
	}
]

The above example will execute the LavishScript method MyBindingController:IDidIt when pressing or releasing Alt+Mouse1. Event Handlers may also opt to directly embed LavishScript code (as done with LavishGUI), but we recommend providing a controller object as best practice.

Topics

We're filling in the documentation and some features (notably the analogs to LavishGUI Templates and Skins) are not yet implemented, so please excuse the mess in the meantime.

Types of Elements