UserInterface2D_CreatePanel - MalisPierre/ModularGame GitHub Wiki
Void UserInterface2D.CreatePanel(string ScriptId, string PanelId)
Description:
CreatePanelAllow you to Create a new Panel2D Prefab and Display it into the HUD.
Parameters:
- String AssetId: The Path of the Prefab To load into the GUI
- String PanelId: The New Id of the Panel
Returns:
- Void
Code Example:
function OpenDialogPanel()
Framework.UserInterface_2D.CreatePanel("C:ui:UI/DialogMenu", "DialogMenu")
Framework.UserInterface_2D.FindPanel("DialogMenu").Initialize()
Framework.UserInterface_2D.FindPanel("DialogMenu").Call("Init", {})
end