Commit Graph

260 Commits

Author SHA1 Message Date
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
af24fc8690 Added vertical scrolling support for containers (no scrollbar yet) 2021-01-31 09:44:46 -06:00
f63b893c70 Bump version 2021-01-18 14:01:29 -06:00
5adc27feef Sync 2021-01-18 14:00:29 -06:00
62636158f7 Fixed word wrapping weirdness and made it the default text_wrap method from :none 2021-01-16 19:43:49 -06:00
2179e11ba1 Updated list box 2021-01-07 10:12:14 -06:00
1ac5e0695e Fixed Image element background and border not working, made button use Style as sole source of background and color colors 2021-01-05 23:15:22 -06:00
732dc2c957 Fixed new label dsl methods requiring options to be provided, upgraded Image to accept either a path or an image and to enable replacing image using #value= 2021-01-05 20:39:13 -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
0268a8a5fb Button element (and its decendents) can now be disabled 2021-01-04 09:34:11 -06:00
1c22c36d6b Include Common in Window 2021-01-01 19:20:52 -06:00
3e56d48556 Update dependencies, bump version 2020-12-31 07:48:44 -06:00
0c9874c53b Added support for tiled 9 slice backgrounds 2020-12-18 12:43:53 -06:00
164a46c1fb Added Background Nine Slice (Not yet usable for ui widgets) 2020-12-15 11:38:17 -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
2d57d62bc2 Don't trigger a recalc when hiding/showing elements if they're already in that state 2020-12-09 19:11:28 -06:00
fb36436d79 Added color support to Image 2020-12-09 09:19:32 -06:00
246e0c54b2 Fixed crashes when using EditBox with no content 2020-12-08 20:27:01 -06:00
d02c001989 Added download manager, added excon dependency 2020-09-25 20:51:25 -05:00
3ba635f157 Fixed ConfigFile not storing values deeper then one level, added markup_width to Text 2020-09-24 10:47:55 -05:00
695c77b183 Added support for Label text alignement, improved EditBox to correctly position caret and support mouse caret positioning, added debugging Container boundry (WIP) 2020-09-09 09:51:18 -05: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
da4188764c Added min/max_view_distance to attr_accessor for PerspectiveCamera 2020-07-19 09:44:09 -05:00
d01e91c3fd Added support for draw mode to Text 2020-07-18 21:34:21 -05:00
041cfcccaa Added a large portion of I-MIC-FPS's opengl rendering and model loading systems 2020-07-15 21:33:24 -05:00
d7dbcf8511 Added orthographic support to Transform 2020-07-10 14:51:02 -05:00
2a8e852b15 Added support for passing a filter method/proc to EditLine 2020-06-23 09:51:36 -05:00
d392d8249d Added support for deciding text drawing method, more work on edit_box 2020-06-16 10:12:21 -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
d902e5d111 Fixed EditLine not positioning caret correctly when clicked 2020-06-10 07:32:31 -05:00
39964e5bd4 Added support for using an image in a button 2020-06-09 10:49:31 -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
eb4d5d4d21 Use Gosu.clip_to to prevent elements from overdrawing 2020-06-08 09:01:10 -05:00
c83b204447 Removed debugging puts from EditLine 2020-06-08 05:48:30 -05:00
d0449c7b65 Add support back for fixed x and y positioning of elements, fixed theming not using deep_merge 2020-06-08 05:35:03 -05:00
a05ee57f6f Fixed EditLine text not visible if using dynamic width/height, fixed cursor in wrong position when at start/end 2020-06-07 13:18:03 -05:00
c3b227d6e7 Fix vector transform using 5th element instead if 15th 2020-06-07 12:36:37 -05:00
7aaf37d43e Added Vector#multiply_transform, needs more testing. 2020-05-12 09:32:50 -05:00
0850336e55 Bump version 2020-05-06 22:01:15 -05:00
8b6d7b6eb2 Fixed Slider default value was always 0.5 instead of middle of range 2020-05-06 12:54:52 -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
a98bb4ec82 Fixed hidden elements were interactable, added comments 2020-05-05 10:48:00 -05:00
da5d740c6e Sync: Renamed Engine to Window to be less confusing, elements are now supposed to throw a changed event if their value is changed 2020-05-04 11:17:11 -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
ed061c8408 Fixed incorrect element positioning when using margin 2020-04-06 09:38:30 -05:00
d8551c7428 Bump version 2020-03-24 10:34:14 -05:00
0017c841dd Added Shader.delete, shaders now clean up after themselves 2020-03-24 10:33:44 -05:00
8cedb40283 Increase shader error message buffer size 2020-03-22 17:28:03 -05:00