Commit Graph

269 Commits

Author SHA1 Message Date
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
8f3d9ff193 added Element#inner_width and Element#inner_height methods, EditLine now resets caret blink cycle when clicked 2019-06-27 17:23:15 -05:00
bed78e7dc8 Bumped version v0.9.0 2019-06-27 15:47:49 -05:00
bdce85613b Added Progress bar, refactored Elements to be under CyberarmEngine::Element namespace. 2019-06-27 15:41:38 -05:00
b3bfa0d654 Updated ToggleButton and CheckBox width/height handling 2019-06-25 15:33:58 -05:00
a972cfac98 Added partial support for fixed element width/height and added support for dynamic width/height (currently only works on Containers) 2019-06-25 14:56:41 -05:00
2fe8e6042b Added deep_merge for Theme 2019-06-24 15:06:51 -05:00
f68a8383af Monkeypatch Gosu::Color to add <=> to support color ranges in Background 2019-06-23 14:54:34 -05:00
72df060059 Root Container width/height now always match window 2019-06-23 11:27:13 -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
4642056576 Bumped version v0.8.1 2019-06-21 18:54:54 -05:00
3d2402b7f7 Fixed Image and EditLine sizing messed out 2019-06-21 18:54:30 -05:00
f4a783b371 Bumped version v0.8.0 2019-06-21 16:15:53 -05:00
d1dec5791b Improved theme handling 2019-06-21 13:53:57 -05:00
8c5c5e1b7b Element width and height are now proper styles, removed width/height setters when element is not visible, Element.width and Element.height now return 0 if Element is invisible 2019-06-21 11:59:13 -05:00
f9324448ee Moved Element styles into Style 2019-06-21 11:40:15 -05:00
34d53ae1cb Bump version v0.7.1 2019-06-17 08:57:33 -05:00
74d1ddd16b Fixed not handling padding properly, fixed edit_line stuck appearing like mouse is hovering over it after mouse has left it 2019-06-17 08:56:17 -05:00
da69f057a0 Bump version v0.7.0 2019-06-16 12:03:45 -05:00
4f4770db0e Fixed CheckBox#value not returning a boolean, added support for toggling Element visiblity 2019-06-16 12:03:20 -05:00
b6730204e8 Bump version v0.6.0 2019-06-13 21:21:46 -05:00
d8dc621c62 Added proper theming support 2019-05-11 17:13:24 -05:00
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