Using a Vector Drawn Thumbstick

Description

Vector drawn thumbsticks are virtually identical to regular thumbsticks, barring the fact that they are drawn shapes with colour, rather than styled using textures and images.

Implementation in Table Realms IDE

To add a drawn thumbstick, click on its icon in the right hand pane. The component will then be added to the layout.

After adding the drawn thumbstick, the properties need to be changed in order for the thumbstick to appear on the aug. When setting the colour for the thumbstick, you can do it in one of two ways:

  1. Creating a colour setting function in a script, and calling it within the “Color” property pane.
  2. Directly setting the colour within the “Color” property pane using RGBA format, with values from 0 to 1. An example would be:

    Lua
    
    return {red = 1, blue = 0.5, green = 0, Alpha = 1}
    

Implementation on Different Game Development Engines

Unity


    TableRealmsModel.instance.GetData<string>(GetDeviceID() + ".ThumbstickDrawn.T1.x");
    TableRealmsModel.instance.GetData<string>(GetDeviceID() + ".ThumbstickDrawn.T1.y");

Unity Tiny


    TableRealmsTiny.Model.GetData(TableRealmsTiny.P2PManager.GetMyInstance() + ".ThumbstickDrawn.T1.x");
    TableRealmsTiny.Model.GetData(TableRealmsTiny.P2PManager.GetMyInstance() + ".ThumbstickDrawn.T1.y");

PlayCanvas

TODO:

Construct2/3

TODO: