1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Slider: Add tick position property and tick offset theme item

Allow ticks to be placed at the top, bottom, or center with custom offset.
This commit is contained in:
LuoZhihao
2025-06-09 12:36:08 +08:00
parent 9e02194297
commit 257c6ebe3c
6 changed files with 97 additions and 4 deletions

View File

@@ -588,6 +588,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("center_grabber", "HSlider", 0);
theme->set_constant("grabber_offset", "HSlider", 0);
theme->set_constant("tick_offset", "HSlider", 0);
// VSlider
@@ -602,6 +603,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("center_grabber", "VSlider", 0);
theme->set_constant("grabber_offset", "VSlider", 0);
theme->set_constant("tick_offset", "VSlider", 0);
// SpinBox