Update changelogs

This commit is contained in:
Insality 2020-09-28 02:52:38 +03:00
parent 0e96c582c9
commit af61d4561a
3 changed files with 15 additions and 16 deletions

View File

@ -96,6 +96,7 @@ Druid 0.4.0:
Druid 0.5.0: Druid 0.5.0:
- **#77** Grid update: - **#77** Grid update:
- The _grid_ component now is __deprecated__. Use _static_grid_ instead. Druid will show you deprecated message, if you still using _grid_ component - The _grid_ component now is __deprecated__. Use _static_grid_ instead. Druid will show you deprecated message, if you still using _grid_ component
- __[BREAKING]__ Remove the _grid:set_offset_ grid functions. To adjust the distance between nodes inside grid - setup correct node sizes
- Add _static_grid_ component - Add _static_grid_ component
- The behaviour like previous _grid_ component - The behaviour like previous _grid_ component
- Have constant element size, so have ability to precalculate positions, indexes and size of content - Have constant element size, so have ability to precalculate positions, indexes and size of content
@ -103,22 +104,24 @@ Druid 0.5.0:
- This grid can spawn elements with several rows and collumns - This grid can spawn elements with several rows and collumns
- Add _dynamic_grid_ component - Add _dynamic_grid_ component
- Have dynamic element size. So have no ability to precalculate stuff like _static_grid_ - Have dynamic element size. So have no ability to precalculate stuff like _static_grid_
- Element size got from _gui.get_size_ * _gui.get_scale_ - This grid can't have gaps between elements. You will get the error, if spawn element far away from other elements
- This grid can not have spaces between elements. You will get the error, if spawn element far away from other elements
- The grid can spawn elements only in row or in collumn - The grid can spawn elements only in row or in collumn
- The grid node should have West or North pivot (vertical or horizontal element placement) - The grid node should have __West__ or __North__ pivot (vertical or horizontal element placement)
- Able to shift nodes left or right on _grid:add_/_grid:remove_ functions
- Scroll update:
- Add _scroll:set_vertical_scroll_ and _scroll:set_horizontal_scroll_ for disable scroll sides
- Add _scroll:bind_grid_ function. It's allow bind grid component (static or dynamic) to the scroll for auto refresh the scroll size on grid nodes changing
- **#37** Add _on_layout_change_ support. Druid will keep and restore GUI component data between changing game layout. Override function _on_layout_change_ in your custom components to do stuff you need. - **#37** Add _on_layout_change_ support. Druid will keep and restore GUI component data between changing game layout. Override function _on_layout_change_ in your custom components to do stuff you need.
- **#85** Move several components from `base` folder to `extended`. In future, to use them, you have to register them manually. This is need for decrease build size by excluding unused components - **#85** Move several components from `base` folder to `extended`. In future to use them, you have to register them manually. This is done for decrease build size by excluding unused components
- Add _scroll:set_vertical_scroll_ and _scroll:set_horizontal_scroll_ for disable scroll sides
- **Fix #61:** Button component: fix button animation node creation - **Fix #61:** Button component: fix button animation node creation
- **Fix #64:** Hover component: wrong mouse_hover default state - **Fix #64:** Hover component: wrong mouse_hover default state
- **Fix #71:** Blocker: blocker now correct block mouse hover event - **Fix #71:** Blocker: blocker now correct block mouse hover event
- **Fix #72:** Fix `return nil` in some `on_input` functions - **Fix #72:** Fix `return nil` in some `on_input` functions
- **Fix #74:** __[BREAKING]__ Fix typo: strech -> stretch. Scroll function `set_extra_stretch_size` renamed - **Fix #74:** __[BREAKING]__ Fix typo: strech -> stretch. Scroll function `set_extra_stretch_size` renamed
- **Fix #76:** Add params for lang text localization component - **Fix #76:** Add params for lang text localization component
- **Fix #79:** Fix druid:remove inside on_input callback - **Fix #79:** Fix _druid:remove_ inside on_input callback
- **Fix #80:** Fix hover set_enable typo function call - **Fix #80:** Fix _hover:set_enable_ typo function call
- **Fix #88:** Add _component:set_input_enabled_ function to enable/disable input for druid component - **Fix #88:** Add _component:set_input_enabled_ function to enable/disable input for druid component. Now you can disable input of any druid component, even complex (with other components inside)
- Add `component.tempalte.lua` as template for Druid custom component - Add `component.tempalte.lua` as template for Druid custom component
>>>>>>> develop >>>>>>> develop

View File

@ -327,7 +327,7 @@ end
--- Bind the grid component (Static or Dynamic) to recalc --- Bind the grid component (Static or Dynamic) to recalculate
-- scroll size on grid changes -- scroll size on grid changes
-- @function scroll:bind_grid -- @function scroll:bind_grid
-- @tparam druid.static_grid|druid.dynamic_grid Druid grid component -- @tparam druid.static_grid|druid.dynamic_grid Druid grid component

View File

@ -166,9 +166,6 @@ function StaticGrid:remove(index, is_shift_nodes)
end end
end end
-- Recalculate borders
self.border = vmath.vector4(0)
self:_update() self:_update()
self.on_add_item:trigger(self:get_context(), index) self.on_add_item:trigger(self:get_context(), index)
@ -179,11 +176,10 @@ end
--- Return grid content size --- Return grid content size
-- @function static_grid:get_size -- @function static_grid:get_size
-- @treturn vector3 The grid content size -- @treturn vector3 The grid content size
function StaticGrid:get_size(border) function StaticGrid:get_size()
border = border or self.border
return vmath.vector3( return vmath.vector3(
border.z - border.x, self.border.z - self.border.x,
border.y - border.w, self.border.y - self.border.w,
0) 0)
end end