|
|
153871e7f3
|
Improved performance a touch: fixed never clearing list of elements to recalculate unless a full gui recalcuate occurred, don't recalculate button/text if a full gui recalculate is requested, fixed typo: apend -> append
|
2021-12-16 22:09:56 -06:00 |
|
|
|
0aa9b59316
|
Containers that need to be recalculated but will not affect their current size can request to have themselves directly recalculated on the next update (fixes scrolling triggering many unneed recalculations), list_box now excludes the currently selected item from the menu, probably fixed list_box callback being called twice instead of the correct once.
|
2021-11-15 10:17:49 -06:00 |
|
|
|
850bb610bb
|
Fixed GUI having a total recalculation whenever a style changed, made tooltip not be centered on mouse, removed duplicate loc from Text
|
2021-05-28 00:43:40 +00:00 |
|
|
|
abb989f842
|
Added flags to use ffi-gosu optionally instead of always trying, made tooltip affected by theme (the last set theme in setup will be used to style the tooltip)
|
2021-03-12 08:33:16 -06:00 |
|
|
|
1e0d2004b5
|
More adjustments to scrolling and scroll_top, added debug_draw to elements that draws a box around the element that is atop all rendered things
|
2021-02-13 22:57:18 -06:00 |
|
|
|
76eb1a85d5
|
Added focus event, elements can request focus
|
2021-02-11 09:31:44 -06:00 |
|
|
|
d050f63c2b
|
Increased scroll speed and added window_size_changed event for containers that is thrown from the root container
|
2021-01-31 13:33:20 -06:00 |
|
|
|
886680ab31
|
Renamed Label to TextBlock, added Shoes text dsl methods; needs mroe refinements, made tooltip styleable.
|
2021-01-05 17:31:31 -06:00 |
|
|
|
26dd688124
|
Ran rubocop -a
|
2020-12-14 16:04:31 -06:00 |
|
|
|
d3ff7c1fc1
|
Added support for future borderless window option, added initial support for label word wrapping (needs more work), fixed toggle button checkmark not displaying due to changes in Label
|
2020-12-14 15:39:16 -06:00 |
|
|
|
b06ceaabce
|
Fixed crash if GuiState @mouse_over has no parent
|
2020-08-28 08:37:24 -05:00 |
|
|
|
ce64b8a205
|
Implemented ListBox- Menu
|
2020-08-21 15:56:11 -05:00 |
|
|
|
5d7e2028b1
|
Added support for image icon for ToggleButton, added initial implementation of EditBox, fixed a few ruby -w warnings by initializing select instance nilable variables, added clipboard support to EditLine, added drag selection to EditLine, added keyboard shortcuts to EditLine, GuiState now passes button_down/button_up callbacks to @focus
|
2020-06-16 00:19:30 -05:00 |
|
|
|
5b2a015421
|
Call recalulate less often to speed up gui updates, call root_container.recalculate a third time when recalculating gui. Gui calls recalculate 10x less when doing a full recalculate.
|
2020-06-09 09:11:57 -05:00 |
|
|
|
3226eb2bda
|
Sliders work better, fixed CheckBox not passing along options hash, Text width/height now accept a string, changed EditLine text selection color, temporary back to back gui recalculations to fix positioning errors until Container#layout can safely be called after determining element width and height.
|
2020-05-06 12:08:20 -05:00 |
|
|
|
4055f645f3
|
Implemented Slider (still have some positioning issues to resolve but it works), added files for ListBox, Radio, and EditBox, implemented dragging support in GuiState.
|
2020-04-10 18:45:55 -05:00 |
|
|
|
4b25d724b5
|
Improved shoes-iness; no longer need to pass clear blocks an element to parent to, todo: replace global var with something else.
|
2020-01-13 20:13:03 -06:00 |
|
|
|
788d987da1
|
Elements now return :handled when they're supposed to, GameState initialization and setup are now seperated
|
2019-09-12 08:15:02 -05:00 |
|
|
|
bdce85613b
|
Added Progress bar, refactored Elements to be under CyberarmEngine::Element namespace.
|
2019-06-27 15:41:38 -05:00 |
|
|
|
e95b4c05e2
|
Added GuiState#request_recalculation to enable requesting a gui recalc on next update, GUI state will request a recalculation if the window size changes
|
2019-06-23 10:43:31 -05:00 |
|
|
|
6f9b00ffb5
|
Improvements to GameObject and friends
|
2019-03-30 13:29:30 -05:00 |
|
|
|
a8b8d5aba1
|
UX improvements for Button:active handling, added Style stub, Default element width/height is now window width/height instead of 0,0; may need tweaking.
|
2019-03-25 20:07:43 -05:00 |
|
|
|
9e8301cd44
|
Packing now works! (Broke clicked_#{button}_mouse_button events)
|
2019-03-02 08:58:33 -06:00 |
|
|
|
cfad5eafab
|
Broke container layout some more
|
2019-03-01 22:22:44 -06:00 |
|
|
|
478c8498f3
|
Added padding and margin left,right,top,bottom, changed CheckBox to ToggleButton, added new CheckBox which uses a Flow with ToggleButton and Label.
|
2019-03-01 15:57:22 -06:00 |
|
|
|
21904ae6fe
|
Update Button to use evnts
|
2019-03-01 11:48:54 -06:00 |
|
|
|
8664c90de7
|
Made Container less independant of Element, events are now fired.
|
2019-03-01 10:27:29 -06:00 |
|
|
|
18ff0a1ea9
|
Refactored Container to be an Element, removed button_up/button_down passing to elements, moved Gui out of GameState and into GuiState, added scaffolding for events (Publish/Subscribe pattern). Element input is broken ATM.
|
2019-03-01 09:41:51 -06:00 |
|