Commit Graph

196 Commits

Author SHA1 Message Date
739ae86966 Bump version v0.5.1 2019-05-06 19:21:56 -05:00
3be16c644f Fix Text height returning 0 if @text is blank 2019-05-06 19:21:30 -05:00
805077d232 Bump version v0.5.0 2019-05-03 13:52:44 -05:00
db1a0683e2 Added to_h (to hash) method to Vector, Text now tries to convert given text to string instead of assuming it is a string 2019-05-03 13:52:01 -05:00
f489ad162f Bump version v0.4.0 2019-05-01 13:47:57 -05:00
df2dc25e34 Made Vector#operator private, refactored BoundingBox initializer to accept either Vectors or numbers, added #opacity to Common 2019-05-01 13:47:17 -05:00
6b319935d3 Bump version v0.3.0 2019-04-30 06:43:10 -05:00
f9d551a419 Added #root and #value= to Element, Label now uses #value= and #root. 2019-04-29 13:21:37 -05:00
f34dd21644 Improved Vector, use named arguments for Engine initializer 2019-04-28 15:00:50 -05:00
025f54a752 Fix incorrect Text height 2019-04-28 07:51:46 -05:00
cbc27b5d5d Updated Text shadow rendering 2019-04-01 16:16:51 -05:00
4af377b93c Bump version v0.2.0 2019-03-31 17:35:32 -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
74a3631111 Update gemspec v0.1.0 2019-03-30 14:07:34 -05:00
8d623dab91 Update readme, update gemspec 2019-03-30 14:06:22 -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
8223dd7a01 Commented theme hierarchy 2019-03-07 13:21:44 -06:00
76c81ee7a9 Improved flow behavior, renamed stroke to color, added outer_width and outer_height to elements, added setters for width, and height. 2019-03-05 10:46:48 -06:00
7eae43d566 Fixed margin not correctly applying to elements 2019-03-04 19:59:43 -06:00
85f35ee1f4 Less broken 2019-03-04 16:10:22 -06:00
9f857bd787 Theming now implemented 2019-03-04 16:02:21 -06:00
d0be03653e Every element has a background and border, background and border support gradients. 2019-03-04 12:13:39 -06:00
c2d3759426 Button no longer shows 'active' color if it was not clicked upon 2019-03-03 11:26:31 -06:00
ab56803ac6 Removed CheckBox container events 2019-03-02 10:48:14 -06:00
ac1ddb638f CheckBox now works as expected 2019-03-02 10:45:42 -06: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
04ec6682ee Sync 2019-02-18 17:41:14 -06:00
998f27b742 Changes 2019-02-04 16:46:46 -06:00
31687598e5 Containers now have fixed widths and heights and their content uses internal_width and internal_height to position. 2019-02-04 15:57:15 -06:00
6225aa4985 Added pop_state to Engine 2019-02-02 08:58:19 -06:00
bb4da1d52e Fixed checkmark not showing mark if it was set as checked when created 2019-02-02 08:49:06 -06:00
8f842b7f58 Get last Element instead of highest 2019-02-02 08:46:07 -06:00
1dbe69167d Improved Container element margin handling, image is now clickable 2019-02-02 08:38:52 -06:00
3059e962fb Using Element margin now 2019-02-01 23:50:15 -06:00
1a06a9fdaa Added Image and Timer, Container and Element positioning and padding issues maybe fixed. 2019-02-01 20:18:07 -06:00
617fe4f77a Stacks and Flows now (mostly) work as expected 2019-02-01 11:55:40 -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
4d36268b04 Bug fixes: fixed crash with checkbox 2018-06-28 09:30:17 -05:00
b4852fbbd6 Initial Commit 2018-06-07 10:03:07 -05:00