Commit Graph

35 Commits

Author SHA1 Message Date
2e66509f87 Removed use of the clipboard gem since Gosu now supports this natively! Added :static option for Text to render text using Gosu::Image.from_text/markup which results in nicer looking text, improvements to EditLine to display the caret in the correct place (doesn't position properly if :text_static is true) 2022-10-04 10:16:32 -05:00
a75afaf47a Added support for UI to have background_images, fixed TextBlock text overdrawing 2022-04-25 20:12:10 -05:00
24be9bfb29 Imported Console from I-MIC FPS 2021-06-26 13:12:44 +00:00
cdee6548e3 Added support for 9 sliced backgrounds in UI, fixed events not propagating to subscribers if element threw :handled in its own event handler 2021-06-04 03:00:31 +00:00
676545f3c7 Added wip engine intro state 2021-04-19 14:42:49 +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
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
d02c001989 Added download manager, added excon dependency 2020-09-25 20:51:25 -05:00
ce64b8a205 Implemented ListBox- Menu 2020-08-21 15:56:11 -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
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
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
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
7f25cd49fe Added ConfigFile for persistent hash storage 2020-01-29 18:22:24 -06:00
3a83e616d3 Added Animator for creating animations with various tweeners, supports Gosu::Color's and numbers 2019-12-19 13:08:29 -06:00
7f97ec85dd Added Container#clear to remove child elements and optionally eval block, improvements to EditLine to show current selection. 2019-11-21 14:07:42 -06:00
28c4acdedf Added Gosu.draw_circle 2019-10-09 11:35:40 -05:00
51dd3803fa Moved files around, renamed Matrix to Transform 2019-10-07 12:30:48 -05:00
c6beab3e99 Added Matrix, incomplete. 2019-10-06 21:35:10 -05:00
8f9e671340 Added Vector#lerp 2019-10-01 11:48:22 -05:00
bb482f4463 Sync 2019-09-26 12:41:34 -05:00
a2e0c07c6a Added Ray class 2019-08-07 23:03:40 -05:00
3ead2f5daf Added Shader handling class, made Text re-render text_shadow if anything affecting shadow is changed. 2019-08-07 12:02:22 -05:00
bdce85613b Added Progress bar, refactored Elements to be under CyberarmEngine::Element namespace. 2019-06-27 15:41:38 -05:00
cc97077b0f Remove MultiLineText as gosu natively supports newlines, Update Text to correctly calculate its height, call super in button_down/button_up to support gosu's fullscreen toggle, added Window.text_input = nil to GameState to prevent fustrating bugs that stem from forgetting to set it back to nil. 2019-03-31 17:34:24 -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
d0be03653e Every element has a background and border, background and border support gradients. 2019-03-04 12:13:39 -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
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
1a06a9fdaa Added Image and Timer, Container and Element positioning and padding issues maybe fixed. 2019-02-01 20:18:07 -06:00
5188532ad0 Major refactor of Container and elements to support a more Shoes-like construction of menus (in complete) 2019-01-31 17:33:05 -06:00
76ac1d553a Fixed crash due to old code from initial import, various clean up. 2019-01-30 13:37:29 -06:00
b4852fbbd6 Initial Commit 2018-06-07 10:03:07 -05:00