Commit Graph

265 Commits

Author SHA1 Message Date
00e47d61a2 Bump version v0.24.0 2023-11-17 17:11:09 -06:00
1882673fff Improvements to layout recalculating, reduces need to manually force a refresh (F5) 2023-11-17 17:10:53 -06:00
286efa2059 Update required files 2023-11-17 15:07:08 -06:00
6b9af5c87c Merged in gosu_notifications 2023-11-17 15:06:38 -06:00
af3a3ff938 Merged in gosu_more_drawables 2023-11-17 15:06:21 -06:00
bcff35bd7b Sync 2023-11-17 14:08:21 -06:00
5d1c195917 Added support for rendering multiple lights, standardized shaders to use snake case for variables and camel case for functions, stubbed PBR material shader include. 2023-07-29 14:09:23 -05:00
9a6e1df032 Remove need to do a full gui recalc 3 or more times for the layout to work (current implementation slows things down a bit, but seems more reliable then brute forcing 3x+) 2023-06-18 19:42:38 -05:00
b1b8fc8556 Cache scroll width/height 2023-06-18 14:18:15 -05:00
a60b09a110 Further scrolling improvements (should be smoother/more consistent with varied frame time) 2023-06-18 13:50:32 -05:00
81a632942e Round scroll position to prevent rendering issues caused by floats 2023-06-18 12:38:12 -05:00
5ef8023aca Improved scrolling 2023-06-18 12:26:08 -05:00
2e690d7d33 Misc bug fixes and improvements 2023-06-16 14:40:16 -05:00
a9f9e20235 Remove named arguments from stats struct due to mruby lacking support 2023-04-28 22:29:53 -05:00
25c36d3788 Add CyberarmEngine::Stats::StatsPlotter for rendering frame timings graph along with labeled sub-timings 2023-04-20 21:54:44 -05:00
c26ddeef4d Refactored CyberarmEngine::Stats to track data for last N frames 2023-04-20 16:08:59 -05:00
5e3e06b74e Improve Vector arithmetic performance by 2x 2023-04-16 20:26:29 -05:00
72037efc73 Fixed Slider element not working properly under mruby (attempts to slide would jump between min/max values) 2023-03-27 17:13:51 -05:00
1462f89e24 Initial support for using cyberarm_engine as a mruby mrbgem: Remove/disable usages of defined?, update old gosu mouse and keyboard constants, and replace one usage of window.button_down? with proper Gosu.button_down? 2023-03-24 18:21:41 -05:00
98948c891a Request repaint when hiding menu 2023-03-17 11:05:17 -05:00
da16ab1ec9 Bump version v0.23.0 2023-02-01 15:48:29 -06:00
eb5d170733 Added #find_element_by_tag to Common module 2023-01-31 14:33:17 -06:00
14e9d4946f Add GameState#needs_repaint? and Container#remove 2023-01-31 10:17:51 -06:00
e3b8a9b102 Fixed overdrawing on BorderCanvas for left side, fixed BackgroundImage fill mode not filling correctly, fixed Progress in marquee mode not request repaint each frame. 2023-01-11 15:05:58 -06:00
458731a534 Added shaders from i-mic-fps, preload shaders if cyberarm_engine/opengl has been required. 2023-01-08 17:30:37 -06:00
d1d87db070 Made GuiState#update safe to call when it is not the active state 2023-01-08 03:36:33 -06:00
6e8948bd81 Repaint when Slider value changes 2023-01-06 16:14:18 -06:00
01a9187a57 Request a repaint when popping and shifting states 2023-01-05 08:36:38 -06:00
186ad220cc Added more triggers for repainting 2023-01-04 20:17:49 -06:00
f82c0953b2 Implemented support for dynamic repainting of gui states with GuiState#needs_repaint? 2023-01-03 22:16:07 -06:00
a2d44ea2dc Fix Element#scroll_height not accounting for padding_top and border_thickness_top 2023-01-02 16:45:43 -06:00
c46664778a Fixed Image element causing clipping issues to sibling elements due to not properly flooring @width/@height 2022-11-16 20:31:00 -06:00
c597a67ca6 Allow 1 pixel wide/tall Gui elements by only apply percentage based sizing on Floats, fixed max/min sizing not working if the element uses fill mode for either dimension 2022-10-30 11:57:20 -05:00
55382a7c14 Bump version v0.22.0 2022-10-23 18:40:46 -05:00
883de3db9f Added support for TextBlock's to have text_v_align to compliment text_h_align, EditLine and EditBox will now preserve their focus appear, fixed crash in ToggleButton due to using :Label instead of :TextBlock, misc. tweaks. 2022-10-23 18:38:51 -05:00
41c0b27937 Fixed layout bug for Flow when the element x + width is greater than the parent's width it would not correctly wrap 2022-10-20 09:36:20 -05:00
2fd5d398cf Fix crash when EditLine receives a paste from clipboard 2022-10-07 20:32:18 -05:00
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
521b3937dd Fixed Slider element's Handle not styling or positioning properly 2022-07-26 12:20:13 -05:00
ab9f9e8e7a Refactored dimentional_size to split out space_available_width/height, initial implementation of verticial and horizontal container alignment 2022-06-12 16:03:23 -05:00
705138f7ad Fixed elements in a Flow container not positioned correctly after the first wrap 2022-06-12 11:36:22 -05:00
94a65f447c Fixed long standing issue with ListBox menu not taking it's parents width only the parent has a specified width and fixed clicking on the menu's host element to hide the menu causes it to hide and reappear instantly. 2022-06-12 11:25:29 -05:00
97296b080c Bump version v0.21.0 2022-06-05 09:20:17 -05:00
ca73a2d8e8 Added all the callbacks to Window and GameState, removed all but one usage of global variables (). 2022-06-05 09:19:30 -05:00
0a62e5180a Add down arrow for ListBox 2022-05-03 20:01:34 -05:00
31e909eb30 Probably fix layout issues caused by floating point errors where an element is wrapped when it has space (e.g. 2 elements with a width 0.5 not fitting properly) 2022-05-02 19:08:47 -05:00
300e7c4e59 Implemented tiled mode for BackgroundImage and other improvements 2022-05-02 19:06:40 -05:00
be98fe47ad Fixed ListBox element menu getting cut off if it's near the bottom of the screen by stacking it ontop of the host element 2022-05-02 19:05:57 -05:00
a75afaf47a Added support for UI to have background_images, fixed TextBlock text overdrawing 2022-04-25 20:12:10 -05:00
d81df5f4e2 Moved min_width/height, max_width/height and fill control from Container into Element#dimensional_size so any element can use them 2022-04-25 16:48:17 -05:00