From 4247277d88d186a9755d1d061a38090fff9427e5 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Wed, 3 May 2023 20:24:27 +0200 Subject: [PATCH] Scrollbar setMaxValue > setScrollAmount --- docs/objects/Scrollbar.md | 4 ++-- .../Scrollbar/{setMaxValue.md => setScrollAmount.md} | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename docs/objects/Scrollbar/{setMaxValue.md => setScrollAmount.md} (81%) diff --git a/docs/objects/Scrollbar.md b/docs/objects/Scrollbar.md index 25a0050..0c8f835 100644 --- a/docs/objects/Scrollbar.md +++ b/docs/objects/Scrollbar.md @@ -7,7 +7,7 @@ In addition to the Object and VisualObject methods, Scrollbar objects have the f |[setSymbol](objects/Scrollbar/setSymbol.md)|Sets the scrollbar symbol |[setBackgroundSymbol](objects/Scrollbar/setBackgroundSymbol.md)|Sets the background symbol |[setBarType](objects/Scrollbar/setBarType.md)|Sets the bar type (vertical or horizontal) -|[setMaxValue](objects/Scrollbar/setMaxValue.md)|Sets the maximum value +|[setScrollAmount](objects/Scrollbar/setScrollAmount.md)|Sets the maximum scroll amount |[setIndex](objects/Scrollbar/setIndex.md)|Sets the current index |[getIndex](objects/Scrollbar/getIndex.md)|Returns the index @@ -20,7 +20,7 @@ local mainFrame = basalt.createFrame() local scrollbar = mainFrame:addScrollbar() scrollbar:setBarType("vertical") -scrollbar:setMaxValue(100) +scrollbar:setScrollAmount(100) scrollbar:setIndex(50) scrollbar:onChange(function(self, event, value) diff --git a/docs/objects/Scrollbar/setMaxValue.md b/docs/objects/Scrollbar/setScrollAmount.md similarity index 81% rename from docs/objects/Scrollbar/setMaxValue.md rename to docs/objects/Scrollbar/setScrollAmount.md index 1d6246e..026de04 100644 --- a/docs/objects/Scrollbar/setMaxValue.md +++ b/docs/objects/Scrollbar/setScrollAmount.md @@ -1,4 +1,4 @@ -## setMaxValue +## setScrollAmount ### Description @@ -23,13 +23,13 @@ local mainFrame = basalt.createFrame() local scrollbar = mainFrame:addScrollbar() :setPosition(3, 3) :setSize(1, 10) - :setMaxValue(20) + :setScrollAmount(20) basalt.autoUpdate() ``` -In this example, a Scrollbar object is created and added to the mainFrame. The setPosition and setSize methods are used to adjust the position and size of the Scrollbar. The setMaxValue method is used to set the maximum value of the Scrollbar to 20. +In this example, a Scrollbar object is created and added to the mainFrame. The setPosition and setSize methods are used to adjust the position and size of the Scrollbar. The setScrollAmount method is used to set the maximum value of the Scrollbar to 20. ```xml - + ```