Smart UI Plugin
The SmartUI framework plugin, capabilities and features.
Last updated
The SmartUI framework plugin, capabilities and features.
Last updated
The SmartUI plugin contains all the libraries needed by all the addons to operate. It lives separated from the construct's runtime but within it. It's a runtime script that operates in a separate context, but can be minified and embeded in the runtime, working isolated.
Unlike many addons, the framework takes as input parameters the runtime ands suscribes to event triggers, and also loads all the model, views and controller classes to the memory. Because of this, in case your curiosity pushes you to dive into the source code of the addons, you will find only interface methods that are being called by the addons that live within the framework.
Recomended Smart UI Frameworkgetting started guide.
SmartUI is not an open-source framework; it is an intellectual property (I.P.) of Pixel Perfect Studio. Details can be disclosed upon request by the developer to enrich the Construct community's experience, but the source code will not be available. Please consider intellectual property laws and developers' rights. Each addon includes an embedded copy of the End User Licensing Agreement (EULA) that all users must adhere to.
Smart UI Plugin. Framework to handle UI components.
Set Enabled
Disable/Enable the Smart UI. No more interactions, animations, nor inputs are processed when it's disabled.
Set Navigation Type
Sets the default navigation type for the keyboard.
Trigger Default Action
Triggers the component default action when pressing/clicking on it.
Pointer Touch
Triggers a touch event at the location of the pointer.
Hover Component
Triggers the component hovering state.
Stop Hovering Component
Finishes the component hovering state.
Set Focus
Sets the focus on the indicated component.
Next Container
Moves the focus to the next container in the layout.
Previous Container
Moves the focus to the previous container in the layout.
Left Element
Moves the focus to the nearest UI element on the left the current focused element within the container (EXPERIMENTAL)
Right Element
Moves the focus to the nearest UI element on the right the current focused element within the container. (EXPERIMENTAL)
Upper Element
Moves the focus to the nearest UI element above the current focused element within the container (EXPERIMENTAL)
Lower Element
Moves the focus to the nearest UI element below the current focused element within the container (EXPERIMENTAL)
Next Element
Moves the focus to the next UI element within the container
Previous Element
Moves the focus to the previous UI element within the container
Open Dialog
Creates an instance of the object and triggers the dialog initialization and animations. Object MUST use the Smart UI Dialog behavior.
Set Pointer
Sets the object that will be act as screen pointer/arrow. Use this action when using gamepads. All interactions will be evaluated against the object coordinates
Track Pointer
Disable/Enable tracking the pointer object to trigger UI interactions.
Is Enabled
Returns true if the Plugin is enabled
Is Modal Open
Indicates if any modal dialog is open
Is Dialog Open
Returns true if any dialog window is open
Is Tracking Pointer
Returns true SmartUI is currently tracking the pointer object assigned, to interact with the UI components.
FocusedUID
Returns the UID of the focused component. If none, the value is -1
(c) Pixel Perfect Studio 2024
Parameter
Description
Enabled
Enabled/Disabled
Parameter
Description
Type
Navigation type
Parameter
Description
Object
Object instance that uses a SmartUI Behavior
Parameter
Description
Object
Object instance that uses a SmartUI Behavior
Parameter
Description
Object
Object instance that uses a SmartUI Behavior
Parameter
Description
Object
Object instance that uses a SmartUI Behavior
Parameter
Description
Dialog Object
An object that uses the Smart UI Dialog behavior
Layer
Layer to place the dialog
X
X-Coordinate
Y
Y-Coordinate
Auto-center
Centers the dialog in the layer and viewport rect visible.
Template
Hierarchy template name
Parameter
Description
Object
Any world instance object
Parameter
Description
Enabled
Enabled/Disabled
Property
Description
Tutorial
Visit the getting started guide, understand how SmartUI works and how components integrate with each other.
Enabled
Enables or Disables the framework.
Default Controls
Allows the default controls to cycle the focus over the different components and containers. Arrow keys and tab are the common navigation controls. Beware that in preview mode, Tab key may work differently that when the game is exported.
Prevent Defaults
Prevents arrow and space keys to be propagated to the top window. Useful to keep the interactions within your game.
Navigation Type
Sets the default navigation type for the keyboard.
Send usage data
Share SmartUI usage data with the developer to improve the tool
Usage Analytics
Help the dev providing usage statistics information.
Privacy Policy
Read the privacy policy available to understand how we treat collected data.