DartCore.UI - AtaTrkgl/Unity-DartCore GitHub Wiki
You can create the following UI widgets by right clicking on the hierarchy UI/DartCore.
ButtonPlus functions same as the standart button of the Unity Engine. It has 2 extra features, a tooltip and sound effects.
Properties:
- 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.
- 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;
TogglePlus functions same as the standart toggle of the Unity Engine with a lot of new customization options.
Properties:
- 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.
- 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.
- 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.
- 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;
Not yet documented.
Not yet documented.
Not yet documented.
Not yet documented.
Not yet documented.
Not yet documented.
Not yet documented.
Not yet documented.