More UI work!

Here I have some more UI elements I have been working on. These are not using the Unity UI system, I wrote the code for these components myself along with the event system (configured to play the sounds you hear).

The button scales when highlighted and then shrinks when clicked on. The dragging button inherits that code, whereas the two sliders on the right translate an arrow to them when highlighted. All these UI components inherit from an abstract base class with an abstract function OnClick().

All UI elements are derived from MoveableActor. The UI elements themselves have an abstract base class ClickableItem that must implement the abstract function OnClick(). The drag button inherits from the swell button (the red button that grows and shrinks when clicked on) as when the drag button is being dragged, it to changes its size.
All UI elements are derived from MoveableActor. The UI elements themselves have an abstract base class ClickableItem that must implement the abstract function OnClick(). The drag button inherits from the swell button (the red button that grows and shrinks when clicked on) as when the drag button is being dragged, it to changes its size.

Below is a video:

Leave a Reply

Your email address will not be published.