From c8a9b39c007c4eed9de5c28045197302c8cda52c Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Mon, 17 Jun 2024 19:43:08 +0100 Subject: [PATCH] Add cursor states to bars and sliders --- game/scripts/gui/_styles_.rpy | 3 +++ game/scripts/gui/settings.rpy | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/game/scripts/gui/_styles_.rpy b/game/scripts/gui/_styles_.rpy index 4aaaed7e..bf9414b4 100644 --- a/game/scripts/gui/_styles_.rpy +++ b/game/scripts/gui/_styles_.rpy @@ -59,6 +59,7 @@ style bar: thumb Frame("scrollbar_horizontal_[prefix_]thumb", gui.slider_borders, tile=gui.slider_tile) hover_sound "sounds/qubodup-hover1.ogg" activate_sound "sounds/qubodup-click2.ogg" + mouse "button" # style vbar: # unscrollable gui.unscrollable @@ -73,6 +74,7 @@ style scrollbar: thumb Frame("scrollbar_horizontal_[prefix_]thumb", gui.slider_borders, tile=gui.slider_tile) hover_sound "sounds/qubodup-hover1.ogg" activate_sound "sounds/qubodup-click2.ogg" + mouse "button" style vscrollbar: unscrollable gui.unscrollable @@ -81,6 +83,7 @@ style vscrollbar: thumb Frame("scrollbar_vertical_[prefix_]thumb", gui.slider_borders, tile=gui.slider_tile) hover_sound "sounds/qubodup-hover1.ogg" activate_sound "sounds/qubodup-click2.ogg" + mouse "button" # style dark_vscrollbar: # unscrollable gui.unscrollable diff --git a/game/scripts/gui/settings.rpy b/game/scripts/gui/settings.rpy index 7689aa82..a1bf86d5 100644 --- a/game/scripts/gui/settings.rpy +++ b/game/scripts/gui/settings.rpy @@ -14,7 +14,7 @@ screen settings_general(): textbutton _("System Cursor") action Preference("system cursor", "toggle") textbutton _("Autosaves") action ToggleField(store, "_autosave") textbutton _("Automatic Update Checks") action settings.Toggle("updates") - textbutton _("Kinetic Text") action settings.Toggle("kinetictext") + textbutton _("Kinetic Text") action settings.Toggle("kinetictext") tooltip "{bounce}Kinetic Text Example.{/bounce}" text _("Skipping") textbutton _("Skip Unseen Text") action Preference("skip", "toggle") @@ -27,7 +27,7 @@ screen settings_general(): bar value Preference("auto-forward time") style "navigation_bar" textbutton _("Power-saving") action Preference("gl powersave", "toggle") - textbutton _("multithreading") action settings.Toggle("multithreading") tooltip "Improves performance by executing tasks asynchronously. (Requires restart)" + textbutton _("multithreading") action settings.Toggle("multithreading") tooltip "Improves performance by executing tasks asynchronously. (Requires restart)" frame style "navigation_page_right": if settings.get("tooltip"): add "doodle_hermione" align (0.5, 0.5)