Search Results for

    Show / Hide Table of Contents

    Namespace AS2.UI

    Classes

    ButtonHoldTrigger

    Listener for the background button for each setting.

    ClickAction

    This class contains the information of a click, drag that is finished or ongoing.

    InitializationUIHandler

    Controls the init mode panel.

    InputAction

    Superclass for all kinds of mouse and keyboard events.

    InputController

    Reads in the inputs from the mouse and passes them to the InputHandler.

    InputHandler

    Takes the raw input from the InputControllers and converts them into suitable actions that are passed to the InputManager.

    InputManager

    Receives the standardized inputs from the InputHandler and passes them to the simulation environment.

    LineDrawer

    Utility class for drawing lines and arrows over the system, for example to visualize structures like spanning trees or to indicate collisions.

    One instance of this script is attached to an empty GameObject in the Simulator Scene. This instance can be accessed as a singleton object and it maintains a pool of GameObjects that contain LineRenderers. Note that the class is located in the AS2.UI namespace.

    Call Clear() to remove all currently displayed lines, use AddLine(Vector2, Vector2, Color, bool, float, float, float) to add lines, and use SetTimer(float) to clear all lines after a specific time.

    LogUIHandler

    Controls the log panel.

    ObjectUIHandler

    Controls the object panel.

    ParticleUIExtensionSmoothLerp

    Controls the particle panel extension lerping movement.

    ParticleUIHandler

    Controls the particle panel.

    SettingsUIHandler

    Controls the setting panel.

    SizeFitter

    Simple script for resizing UI elements based on the childrens' sizes. Used for resizing the elements in the log (e.g. when there is a text block).

    Tooltip

    The behavior script for GameObjects that should have a tooltip.

    TooltipHandler

    The main behavior script for the tooltip system. This class manages the visibility of the tooltip text box and provides the interface for requesting a tooltip and closing the box again.

    UIHandler

    Controls the general UI (like top and bottom bars). Also references the other main panels of the UI.

    UISetting

    Superclass of all implemented settings (like dropdowns, toggles, text boxes, etc.). Used together with the setting prefab GameObjects.

    UISetting_Color

    UISetting subclass for setting a color. Colors are represented in RGB format, either as integers from 0 to 255 or as floats from 0 to 1.

    UISetting_Dropdown

    UISetting subclass for settings that have a fixed number of possible values, like enums. The setting is represented as a dropdown menu.

    UISetting_Header

    UISetting subclass representing a simple text to describe the following section of settings.

    UISetting_MinMax

    UISetting subclass for settings that are value ranges. A value range simply defines a minimum and a maximum value as either a float or an integer.

    UISetting_Slider

    UISetting subclass representing a setting that has a float or integer value with a lower and upper limit so that it can be set using a slider.

    UISetting_Spacing

    UISetting subclass that only serves as spacing between other settings. Can be used to create groups of settings that are visually separated.

    UISetting_Text

    UISetting subclass representing a setting with a numeric or string value using a simple text input field. Can be used to read in integer and float values as strings.

    UISetting_Toggle

    UISetting subclass for simple Boolean settings. The setting's value can be changed with a toggle button.

    UISetting_ValueSlider

    UISetting subclass for settings that have a range of values and should be selectable by a slider. The values can be float or integer numbers or a list of strings for which the slider selects the index.

    WorldSpaceBackgroundUIHandler

    Controls the background grid (with the grid coordinates).

    WorldSpaceUIHandler

    Controls the world space UI overlay (which shows the attributes of the particles).

    Structs

    InputHandler.MouseState

    Each frame one of these is sent to the InputHandler. It processes the data and converts it to a valid InputState.

    WorldSpaceUIHandler.ParticleTextUIData

    Enums

    ClickAction.ClickButton

    ClickAction.ClickType

    InputAction.InputType

    LogUIHandler.EntryType

    UIHandler.UITool

    The set of tools selectable in the top bar.

    UISetting_Color.InputType

    UISetting_MinMax.InputType

    UISetting_Text.InputType

    Possible format types of the text field.

    WorldSpaceUIHandler.TextType

    The type of the currently set overlay.

    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX