From 04b7323be2028d9d4e23501877a274066c5e81f8 Mon Sep 17 00:00:00 2001 From: boruok Date: Mon, 1 Jul 2024 10:57:36 +0900 Subject: [PATCH 1/2] fixed wrong codelinks --- example/example.gui_script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.gui_script b/example/example.gui_script index ccdc45fc..098b9fca 100644 --- a/example/example.gui_script +++ b/example/example.gui_script @@ -173,7 +173,7 @@ local function init_lobby(self) self.lobby_grid:add(get_title(self, "Texts")) self.lobby_grid:add(get_button(self, "Texts", "texts_general", "/texts/texts_general/texts_general.gui_script")) self.lobby_grid:add(get_button(self, "Adjust types", "texts_adjust", "/texts/texts_adjust/texts_adjust.gui_script")) - self.lobby_grid:add(get_button(self, "Lang Text", "texts_lang_text", "/texts/texts_adjust/texts_lang_text.gui_script")) + self.lobby_grid:add(get_button(self, "Lang Text", "texts_lang_text", "/texts/lang_text/lang_text.gui_script")) self.lobby_grid:add(get_title(self, "Scrolls")) self.lobby_grid:add(get_button_disabled(self, "Nested scrolls", "scroll_scene")) @@ -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", "/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")) From 93cbb99cdf992b5b3cbcf571477160092eb7ca16 Mon Sep 17 00:00:00 2001 From: boruok Date: Tue, 16 Jul 2024 12:10:57 +0900 Subject: [PATCH 2/2] fix style docs --- docs_md/03-styles.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_md/03-styles.md b/docs_md/03-styles.md index 80675e68..4868d1e6 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](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: