Window Manager
Workflow
A component responsible for managing app windows. It is mostly used with ‘Window Panel Manager’ component, which manages the in-app window / nav button states and allows creating multi-tabs. In order to add new in-app window, you can follow these steps:
- Select an app and create a new panel item via Window Panel Manager.
- Set an unique panel name, duplicate one of the existing panel object and button object, then assign those objects to ‘Panel Object’ and ‘Button Object’. If you don’t need a button, you can just assign an empty object.
- You can now call your in-app window with its unique name by calling Window Panel Manager > Open Panel() > Panel Name.
- If you’re going to call it within your script: WindowPanelManager.OpenPanel(“Panel Name”);
API / Scripting
using Michsky.DreamOS; // namespace
public ButtonManager myButton;
void YourFunction()
{
// Updating button content
myButton.buttonText = "My New Text";
myButton.buttonIcon = SpriteVar;
myButton.UpdateUI();
// Enable or disable options
myButton.useHoverEffect = true;
myButton.useRipple = true;
myButton.enableButtonSounds = true;
myButton.useClickSound = true;
myButton.useHoverSound = true;
myButton.useCustomContent = false;
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.