Compare commits

..

No commits in common. "0172c142c8281c9a3044b11990a06abad2da095e" and "376896da1e1a188a245a813de81331ce401841dc" have entirely different histories.

7 changed files with 7 additions and 49 deletions

View file

@ -1,6 +1,5 @@
---
sidebar_position: 0
description: Useful for headings.
---
# `SuiHeader`

View file

@ -1,6 +1,5 @@
---
sidebar_position: 3
description: Useful for buttons with icons.
---
# `SuiIconButton`

View file

@ -1,38 +0,0 @@
---
sidebar_position: 4
---
# `SuiScroller`
Godot's `ScrollContainer`, but *much* simpler.
## Variables
### *SuiTypes.ScrollVisibility* <u>hscroll_visibility</u> = *SuiTypes.ScrollVisibility.AUTO*
Controls the visibility of the horizontal scroll bar.
### *SuiTypes.ScrollVisibility* <u>vscroll_visibility</u> = *SuiTypes.ScrollVisibility.AUTO*
Controls the visibility of the vertical scroll bar.
### *SuiTypes.ScrollMode* <u>speed_mode</u> = *SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE*
Determines how the scrolling speed should be calculated.
### *float* <u>speed_multiplier</u> = *1.0*
The speed multiplier, used for `SuiTypes.ScrollMode.MULTIPLY_VIEWPORT` and `SuiTypes.ScrollMode.CUSTOM_VALUE`.
### *float* <u>speed_value</u> = *1.0*
The speed value, used for `SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE` and `SuiTypes.ScrollMode.CUSTOM_VALUE`.
### *float* <u>speed_wheel_multiplier</u> = *50.0*
Determines how much the scrolling speed should be multiplied by when scrolling with the scroll wheel. \
Using a lower value results in more mouse scrolling, higher values result in less mouse scrolling.
### *SuiTypes.ScrollMode* <u>thickness_mode</u> = *SuiTypes.ScrollMode.MULTIPLY_VIEWPORT*
Determines how the thickness of both scroll bars should be calculated.
### *float* <u>thickness_multiplier</u> = *0.025*
The thickness multiplier, used for `SuiTypes.ScrollMode.MULTIPLY_VIEWPORT` and `SuiTypes.ScrollMode.CUSTOM_VALUE`.
### *float* <u>thickness_value</u> = *0.0*
The thickness value, used for `SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE` and `SuiTypes.ScrollMode.CUSTOM_VALUE`.
### *bool* <u>editor_clip_content</u> = *true*
Will cause elements not inside the SuiScroller node to be no longer clipped *in editor mode*. \
Useful when editing the contents of a SuiScroller node, but may cause visual chaos.
### *bool* <u>editor_process</u> = *true*
Determines if the element should be updated automatically **while running in the editor**.
### *bool* <u>runtime_process</u> = *true*
Determines if the element should be updated automatically **during your game/application's runtime**.
## Functions
### *void* <u>update_element</u>()
Updates the element.

View file

@ -1,6 +1,5 @@
---
sidebar_position: 1
description: Useful for text.
---
# `SuiText`

View file

@ -1,6 +1,5 @@
---
sidebar_position: 2
description: Useful for buttons with text.
---
# `SuiTextButton`

View file

@ -19,10 +19,10 @@ script = ExtResource("1_dcfql")
modulate = Color(1, 1, 1, 0.501961)
layout_mode = 1
offset_top = 226.417
offset_right = 366.42
offset_right = 366.417
offset_bottom = 246.667
theme = ExtResource("2_4lteo")
max_value = 386.67
max_value = 386.667
step = 1.0
page = 1.0

View file

@ -12,20 +12,20 @@ extends SuiBaseClass
## Determines how the scrolling speed should be calculated.
@export var speed_mode: SuiTypes.ScrollMode = SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE
## The speed multiplier, used for [constant SuiTypes.ScrollMode.MULTIPLY_VIEWPORT] and [constant SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE].
@export var speed_multiplier: float = 1.0
@export var speed_multiplier: float = 1
## The speed value, used for [constant SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE] and [constant SuiTypes.ScrollMode.CUSTOM_VALUE].
@export var speed_value: float = 1.0
@export var speed_value: float = 1
@export_subgroup("Scroller speed (wheel)")
## Determines how much the scrolling speed should be multiplied by when scrolling with the scroll wheel.[br]
## Determines how much the scrolling speed should be multiplied by when scrolling with the scroll wheel.
## Using a lower value results in more mouse scrolling, higher values result in less mouse scrolling.
@export var speed_wheel_multiplier: float = 50.0
@export var speed_wheel_multiplier: float = 50
@export_subgroup("Scroll bar thickness")
## Determines how the thickness of both scroll bars should be calculated.
@export var thickness_mode: SuiTypes.ScrollMode = SuiTypes.ScrollMode.MULTIPLY_VIEWPORT
## The thickness multiplier, used for [constant SuiTypes.ScrollMode.MULTIPLY_VIEWPORT] and [constant SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE].
@export var thickness_multiplier: float = 0.025
## The thickness value, used for [constant SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE] and [constant SuiTypes.ScrollMode.CUSTOM_VALUE].
@export var thickness_value: float = 0.0
@export var thickness_value: float = 0
@export_category("Debugging")
## Will cause elements not inside the SuiScroller node to be no longer clipped [i]in editor mode[/i].
## Useful when editing the contents of a SuiScroller node, but may cause visual chaos.