DartCore.UI - AtaTrkgl/Unity-DartCore GitHub Wiki

You can create the following UI widgets by right clicking on the hierarchy UI/DartCore.

1. ButtonPlus

ButtonPlus functions same as the standart button of the Unity Engine. It has 2 extra features, a tooltip and sound effects.

image of the ButtonPlus

Properties:

  1. Tooltip:
  • Tooltip Text: The text of the tooltip. If left blank, tooltip will be disabled.
  • Tooltip Text Color: Text color of the tooltip.
  • Tooltip BG Color: Text bg of the tooltip.
  1. Audio:
  • Highlighted Clip: AudioClip that will be played on cursor enter.
  • Pressed Clip: AudioClip that will be played on cursor click.
  • Volume: Volume of the sound effects between 0 and 1.
  • Audio Mixer Group: The mixergroup of the sound effects (not mandatory for SFXs).

You can access to all of these properties programmatically.

Example usage:

string desiredToolTip = "This is the desired tooltip text";
GameObject.FindObjectOfType<ButtonPlus>().toolTip = desiredToolTip;

2. TogglePlus

TogglePlus functions same as the standart toggle of the Unity Engine with a lot of new customization options.

image of the TogglePlus

Properties:

  1. Colors:
  • Normal Color: Color of the background when not pressed or highligted.
  • Transition Duration: Transition time between background colors.
  • Highligted Color: Color of the background when the cursor is on the toggle.
  • Disabled Color: Color of the background when the isOn boolean is set to false.
  1. Filing:
  • Fill Transition Duration: The time it takes to transition between the on and off states.
  • Fill Color: Color of the filler.
  • Color Transition Duration: The time it takes to transition between fill colors.
  • Anim Type: Animation of the filling.
  • Fill Scale: Scale of the fill between 0 and 1.
  1. Tooltip:
  • Tooltip Text: The text of the tooltip. If left blank, tooltip will be disabled.
  • Tooltip Text Color: Text color of the tooltip.
  • Tooltip BG Color: Text bg of the tooltip.
  1. Audio:
  • Highlighted Clip: AudioClip that will be played on cursor enter.
  • Pressed Clip: AudioClip that will be played on cursor click.
  • Volume: Volume of the sound effects between 0 and 1.
  • Audio Mixer Group: The mixergroup of the sound effects (not mandatory for SFXs).

You can access to all of these properties programmatically.

Example usage:

float desiredTransitionDuration = .2f;
GameObject.FindObjectOfType<TogglePlus>().fillTransitionDuration = desiredTransitionDuration;

3. Switch

Not yet documented.

4. Progress Bar

Not yet documented.

5. Tooltip

Not yet documented.

6. Graph

Not yet documented.

7. Draggable Window Container

Not yet documented.

8. Draggable Window

Not yet documented.

9. Hyperlink

Not yet documented.

10. Input Visualizer

Not yet documented.

⚠️ **GitHub.com Fallback** ⚠️