Window Framework v1.2.4
Window Framework for Unity UI Toolkit
Loading...
Searching...
No Matches
GWG.WindowFramework.FormElements.ThemeSelectorFormElement Class Reference
Inheritance diagram for GWG.WindowFramework.FormElements.ThemeSelectorFormElement:

Classes

class  ThemeLineItem

Public Member Functions

 ThemeSelectorFormElement ()

Properties

int ActiveThemeIndex [get, set]
WindowFrameThemeData ThemeData [get, set]

Private Member Functions

void BindLineItem (VisualElement lineItem, int index)
void CreateThemesList ()
bool LoadThemeData ()
 Loads the WindowFrameThemeData asset from the PlayerPrefs path. If the path is valid, loads the asset and returns true. If the path is invalid, returns false.
void RebuildThemeList ()

Private Attributes

int _activeThemeIndex
WindowFrameThemeData _themeData
VisualElement _themesList = new VisualElement()

Constructor & Destructor Documentation

◆ ThemeSelectorFormElement()

GWG.WindowFramework.FormElements.ThemeSelectorFormElement.ThemeSelectorFormElement ( )

Member Function Documentation

◆ BindLineItem()

void GWG.WindowFramework.FormElements.ThemeSelectorFormElement.BindLineItem ( VisualElement lineItem,
int index )
private

◆ CreateThemesList()

void GWG.WindowFramework.FormElements.ThemeSelectorFormElement.CreateThemesList ( )
private

◆ LoadThemeData()

bool GWG.WindowFramework.FormElements.ThemeSelectorFormElement.LoadThemeData ( )
private
Returns
Returns true if the asset was loaded successfully, false otherwise.

◆ RebuildThemeList()

void GWG.WindowFramework.FormElements.ThemeSelectorFormElement.RebuildThemeList ( )
private

Member Data Documentation

◆ _activeThemeIndex

int GWG.WindowFramework.FormElements.ThemeSelectorFormElement._activeThemeIndex
private

◆ _themeData

WindowFrameThemeData GWG.WindowFramework.FormElements.ThemeSelectorFormElement._themeData
private

◆ _themesList

VisualElement GWG.WindowFramework.FormElements.ThemeSelectorFormElement._themesList = new VisualElement()
private

Property Documentation

◆ ActiveThemeIndex

int GWG.WindowFramework.FormElements.ThemeSelectorFormElement.ActiveThemeIndex
getsetprivate

◆ ThemeData

WindowFrameThemeData GWG.WindowFramework.FormElements.ThemeSelectorFormElement.ThemeData
getset