Skip to content
Jeppe Zapp edited this page Aug 12, 2014 · 8 revisions

The root manages pages and renders widgets

Variables

Variable Type
skin OGSkin The skin in use
currentPage OGPage The currently displayed page
isMouseOver boolean Is the mouse currently over any widget?
targetResolution Vector2 Target resolution for DCS

Methods

Method Return type
GetInstance OGRoot Returns the instance of the OGRoot. There can only ever be one in a scene
GetUnicode ( index : int ) Dictionary<int,int> Get the unicode reference for a font
ReloadFonts void Rebuilds the font library
GoToPage ( pageName : string ) void Switches to the indicated page
GoToPages ( pageNames : string [] ) void Switches to the indicated pages
SetDirty void Marks all widgets as dirty and updates them in the next CPU cycle
ReleaseWidget void Releases the widget currently marked as "down"
UpdateWidgets void Update all widgets
Clone this wiki locally