From 2c083f6a7195b2d1a0a13833a1ceb1de0db92484 Mon Sep 17 00:00:00 2001 From: Insality Date: Tue, 5 Dec 2023 14:27:53 +0200 Subject: [PATCH] Update wrong links in documentation --- docs_md/03-styles.md | 2 +- druid/styles/default/style.lua | 2 +- example/example.gui_script | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs_md/03-styles.md b/docs_md/03-styles.md index 80675e6..69e4d67 100644 --- a/docs_md/03-styles.md +++ b/docs_md/03-styles.md @@ -50,7 +50,7 @@ The most components have their styles. You can explore it on [Druid API](https:/ To create you style, create lua module, what return <_component_name_, _component_style_> table -Example: [default druid style](styles/default/style.lua) +Example: [default druid style](/druid/styles/default/style.lua) Override all fields you want and set your style with one of next ways: diff --git a/druid/styles/default/style.lua b/druid/styles/default/style.lua index 3b074c1..29921a6 100644 --- a/druid/styles/default/style.lua +++ b/druid/styles/default/style.lua @@ -87,7 +87,7 @@ M["scroll"] = { WHEEL_SCROLL_SPEED = 0, -- Amount of pixels to scroll by one wheel event (0 to disable) WHEEL_SCROLL_INVERTED = false, -- Boolean to invert wheel scroll side WHEEL_SCROLL_BY_INERTION = false, -- If true, wheel will add inertion to scroll. Direct set position otherwise. - SMALL_CONTENT_SCROLL = true, -- If true, content node with size less than view node size can be scrolled + SMALL_CONTENT_SCROLL = false, -- If true, content node with size less than view node size can be scrolled } diff --git a/example/example.gui_script b/example/example.gui_script index 5517f9e..d8462bb 100644 --- a/example/example.gui_script +++ b/example/example.gui_script @@ -196,7 +196,7 @@ local function init_lobby(self) self.lobby_grid:add(get_button(self, "With component", "data_list_with_component", "/data_list/with_component/with_component.gui_script")) self.lobby_grid:add(get_title(self, "Layouts")) - self.lobby_grid:add(get_button(self, "Layout fit", "layout_fit", "/custom/layout_fit/layout_fit.gui_script")) + self.lobby_grid:add(get_button(self, "Layout fit", "layout_fit", "/custom/layout/layout_fit/layout_fit.gui_script")) self.lobby_grid:add(get_title(self, "Custom components")) self.lobby_grid:add(get_button(self, "Rich Input", "custom_rich_input", "/custom/rich_input/rich_input.gui_script"))