From 97ff6154eb67b1d9ea01f99863c42d3d413a6b3e Mon Sep 17 00:00:00 2001 From: Insality Date: Tue, 5 Dec 2023 14:28:04 +0200 Subject: [PATCH] Update wrong links in documentation --- docs_md/03-styles.md | 4 ++-- example/example.gui_script | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs_md/03-styles.md b/docs_md/03-styles.md index 69e4d67..4868d1e 100644 --- a/docs_md/03-styles.md +++ b/docs_md/03-styles.md @@ -46,11 +46,11 @@ end ## Create your own styles -The most components have their styles. You can explore it on [Druid API](https://insality.github.io/druid/) in table style section ([button example](https://insality.github.io/druid/modules/druid.button.html#Style)). Or you can see, what fields component uses in code in function `on_style_change` +The most components have their styles. You can explore it on [Druid API](https://insality.github.io/druid/) in table style section ([button example](https://insality.github.io/druid/modules/Button.html#style)). Or you can see, what fields component uses in code in function `on_style_change` To create you style, create lua module, what return <_component_name_, _component_style_> table -Example: [default druid style](/druid/styles/default/style.lua) +Example: [default druid style](https://github.com/Insality/druid/blob/master/druid/styles/default/style.lua) Override all fields you want and set your style with one of next ways: diff --git a/example/example.gui_script b/example/example.gui_script index d8462bb..098b9fc 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/layout_fit/layout_fit.gui_script")) + self.lobby_grid:add(get_button(self, "Layout fit", "layout_fit", "/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"))