From 2fd47666babd48cc781297870fe98bb5d9b61311 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 10 May 2024 15:24:45 +0200 Subject: [PATCH] Append '.0' to all float variables --- sui/scenesrc/SuiScroller.tscn | 4 ++-- sui/src/SuiScroller.gd | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sui/scenesrc/SuiScroller.tscn b/sui/scenesrc/SuiScroller.tscn index c2a90ae..e0b349a 100644 --- a/sui/scenesrc/SuiScroller.tscn +++ b/sui/scenesrc/SuiScroller.tscn @@ -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.417 +offset_right = 366.42 offset_bottom = 246.667 theme = ExtResource("2_4lteo") -max_value = 386.667 +max_value = 386.67 step = 1.0 page = 1.0 diff --git a/sui/src/SuiScroller.gd b/sui/src/SuiScroller.gd index 1c8d340..c3f786b 100644 --- a/sui/src/SuiScroller.gd +++ b/sui/src/SuiScroller.gd @@ -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 +@export var speed_multiplier: float = 1.0 ## The speed value, used for [constant SuiTypes.ScrollMode.MULTIPLY_CUSTOM_VALUE] and [constant SuiTypes.ScrollMode.CUSTOM_VALUE]. -@export var speed_value: float = 1 +@export var speed_value: float = 1.0 @export_subgroup("Scroller speed (wheel)") -## Determines how much the scrolling speed should be multiplied by when scrolling with the scroll wheel. +## Determines how much the scrolling speed should be multiplied by when scrolling with the scroll wheel.[br] ## Using a lower value results in more mouse scrolling, higher values result in less mouse scrolling. -@export var speed_wheel_multiplier: float = 50 +@export var speed_wheel_multiplier: float = 50.0 @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 +@export var thickness_value: float = 0.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.