You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/changelog.md
+33-17Lines changed: 33 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -726,39 +726,55 @@ Please support me if you like this project! It will help me keep engaged to upda
726
726
- Add image_refresh to the Druid atlas for compatibility with the Asset Store Widgets
727
727
728
728
### Druid 1.2.0
729
+
730
+
He-he-hello! It's a new Druid update!
731
+
732
+
733
+
**Changelog 1.2.0**
729
734
-[Blocker] Fix for internal `is_enabled` state
735
+
- Before, if blocker node was disabled at init step and when node was enabled later, blocker node keeps internal `is_enabled` state as false and had to be changed with `blocker:set_enabled(true)` to make it work. Now it's fixed and blocker will work as expected.
730
736
-[Button] Expose all click functions for the button
737
+
- Now you can call the `button:button_click()`, `button:button_double_click()`, `button:button_long_click()` etc.
731
738
-[Scroll] Add `scroll_to_make_node_visible` function
732
-
-[Color] Add Druid Color module
739
+
- This makes a scroll to the element, so it will be visible in the scroll view. If element is already visible, nothing will happen.
740
+
-[Color] 🎨 Add Druid Color module
733
741
- Use `local color = require("druid.color")` to access the module
734
-
- Manage color palettes
735
-
- Color conversions
736
-
- Convenient usage
742
+
- Use `color.get_color(color_id)` to get color by ID from palette, hex string, or return vector as-is.
743
+
- Use `color.set_color(gui_node, color_id)` to set color to the GUI node directly.
744
+
- Use `color.lerp(t, color1, color2)` to interpolate between two colors using HSB space (better visual results than RGB).
745
+
- Use `color.add_palette(palette_data)` to add colors to the palette. Colors can be hex strings or vector4 values.
746
+
- And various conversions between colors functions.
747
+
- Palette can be loaded at init step from the JSON file by path `druid.palette_path` in your `game.project` file.
737
748
-[Container] Fix for container stretch mode
738
749
- `stretch` and `fit` was not init correctly in the `init` function arguments
739
750
-[Rich Text] Using color names from the palette
740
751
-[Rich Text] Add `rich_text:set_split_to_characters(true)` to split each letter node separately
741
-
- Weird implementation, but nice to have
752
+
- With this option, each letter will be a separate node, which can be useful for some animations or other effects.
742
753
-[Rich Text] Add `set_width` and `set_height` functions
743
-
-[GO Widgets] Now passes events and functions from the widget to the GO context
744
754
-[Layout] Add `set_position_function` function, similar to the Grid component
755
+
-[GO Widgets] Now passes events in addition to functions from the widget to the GO context
745
756
-[#329](https://github.com/Insality/druid/issues/329) Allow numeric characters in RichText tags
746
-
-[#333](https://github.com/Insality/druid/issues/333) Add settings to enable/disable editor scripts for the Druid
757
+
-[#333](https://github.com/Insality/druid/issues/333) Add settings to enable/disable Editor Scripts for the Druid
758
+
-[System] Migrated to `gui.cancel_animations` instead of `gui.cancel_animation`
747
759
748
760
#### Druid Widget Store
749
-
All widgets moved from the Druid library to the Druid Asset Store extension
761
+
All Druid Widgets moved from the Druid library to the Druid [Asset Store](https://github.com/Insality/asset-store) extension.
762
+
Also several more widgets was added to the Asset Store extension. Check it out!
750
763
751
764
##### Migration
752
765
In case you using the `properties_panel`, `fps_panel`, `memory_panel`, `mini_graph` widgets, you need to migrate to the Druid Asset Store extension.
753
766
754
767
TO do that you should open Asset Store extension and install them, After that you need to update GUI paths and require paths from `druid.widget.*` to `widget.*`
755
768
756
-
-[Image] Add image component
757
-
- Create with `druid:new_image(node_or_node_id)`
758
-
- Currently used to load image from resource path, absolute path or URL
759
-
- Can be fit inside (keeping aspect ratio) stretched to the node area, depends on the GUI adjust mode
760
-
-[Properties Panel] Update with deep navigation support
761
-
- Add "Scenes" to manage a list of properties with back button support
762
-
- Add "Pages" to manage a a big lists of properties with paginations support
763
-
- Add `properties_panel:render_lua_table` to easily render your lua tables with a various types support (any simple types and vector, functions, events etc)
764
-
- Add "Refresh" button, which active a 1-sec refresh for current page
0 commit comments