Commit Graph

317 Commits

Author SHA1 Message Date
2cc1382696 Fixed Text border color not getting set correctly due to misnamed color parameter, generate Text border image with true white text since we draw it with the requested color later. 2026-09-20 16:10:10 -05:00
9fca64b643 Added render mode to BackgroundNineSlice 2026-09-19 19:10:39 -05:00
abe99ce949 Ignore sibling elements that aren't visible from fill mode space considerations 2026-09-17 12:25:48 -05:00
66fb136c83 Make elements sizing by like css' border-box box-sizing instead of like content-box for elements with specific width/height that isn't a ratio, tweaks to gui debug display, make F12 key toggle gui debug display for convenience 2026-09-11 13:05:08 -05:00
b23e5c2a42 Fix pending element recalculate requests apparently not getting processed properly... 2026-09-10 18:32:01 -05:00
747822aa61 Fixed flow containers not correctly positioning their children on the x axis when they wrap to the the next line, fix up containers vertical and horizontal alignment 2026-09-10 18:31:19 -05:00
140e7a3619 Make elements publish the :size_changed event when they change their size 2026-09-09 22:30:19 -05:00
349222f387 Flip flop Element#resolution_scaled 2026-09-04 10:31:30 -05:00
9d4bc89174 Fix Widget element unable to find children element tooltips if the widget's parent(s) had been scrolled 2026-09-04 10:31:02 -05:00
8e7c6f8a19 Many ux and api improvements 2026-05-02 18:20:17 -05:00
cd5bd51a02 Added EventBus, a simple global pub-sub event system. 2026-04-23 19:39:36 -05:00
adf517f374 Make Element#styled return 0 for border_thickness, margins, and paddings if the element is not Element#visible? 2026-04-21 13:19:02 -05:00
1c868522b7 Make Result return not okay if @data is nil 2026-04-21 12:12:16 -05:00
a79b9cc20e Added Widget, which acts like a Flow and a button. 2026-04-20 10:16:37 -05:00
c229329542 Send enter and hover events to mouse over element's parent containers- improves ux, disable applying :active styles if element does not have any specificied- fixes element blinking on click. 2026-04-18 12:29:04 -05:00
512d8a5c0f Added initial dialog support 2026-04-17 18:46:27 -05:00
d158d2fdd2 Added initial support for pages, fixed image not accounting for margin refactor 2026-04-17 17:45:58 -05:00
9f654129ef Improved handling of nine slice backgrounds, fixed scroll height, fixed container v/h_align 2026-04-17 11:38:17 -05:00
b694269409 Fixed ListBox/Menu not accounting for its border 2026-04-15 22:09:58 -05:00
3375d2d224 Fixed button image off center if button has margin left/top 2026-04-15 22:07:45 -05:00
a47505e7fa Improved debug_draw to be free of element clipping rectangle, fixed up container vertical and horizontal alignment 2026-04-15 22:06:55 -05:00
e572679f0b Renamed GuiState#menu to GuiState#active_menu to prevent conflict with DSL#menu 2026-04-15 22:02:09 -05:00
4286ca06b0 Fix up container's over estimating their width/height some more 2026-04-15 10:51:10 -05:00
a5636c82b3 Fixed Element's x and y position offset by their containers margin_left and/or margin_top, fixed containers 'inheriting' their parents and/or grandparents margin_left/top causing them to have an outer_height greater than it should be (needs a little more work.) 2026-04-13 20:00:24 -05:00
971ac5ff34 Lazy init Element background and border canvases 2026-03-27 11:20:03 -05:00
3b5902fef5 Reduce usages of Gosu.clip_to in Background 2026-03-27 11:18:55 -05:00
dfb9378c6d Remove unneeded string to integer conversions in Theme 2026-03-27 10:59:22 -05:00
3a23a8f8ca Improve clipping of TextBlock 2026-03-27 10:58:42 -05:00
d735edaec0 Make changing an element's styles trigger element to re-stylize 2026-03-21 22:42:57 -05:00
d2440b50a1 Added every and after timers to DSL 2026-03-21 21:11:51 -05:00
362fafa6fd Fixed HOME/END PAGE UP/DOWN keys incorrectly scrolling container when an EditLine or EditBox has focus 2026-03-21 21:11:51 -05:00
907257879c Fixed EditBox causing crash if parent container is scrolled and EditBox is clicked 2026-03-21 21:11:50 -05:00
e031039a77 Refactored GuiState Element style handling to simplify mutating them 2026-03-21 21:03:58 -05:00
16bd9168e4 Bump version 2026-01-28 18:02:18 -06:00
b946d5efa6 Added Result class to make writing failure resistant code easier 2026-01-28 18:02:18 -06:00
958d4e65f9 Bump version 2026-01-09 09:36:08 -06:00
0519253e03 Improved GuiState to fully recalculate before returning from draw 2026-01-09 09:29:41 -06:00
97055885a6 Cache TextBlock text width and height 2026-01-09 08:59:06 -06:00
b5912de980 Remove unused code from Background#update, improves performance notably. 2026-01-09 08:34:59 -06:00
b0376d85d9 Reduce allocations in Background 2026-01-09 08:26:55 -06:00
a30d66fafb Refactored Style to remove usage of method_missing 2026-01-09 08:20:27 -06:00
0fac4a0397 Add StackProf hooks for profile recalculate 2026-01-08 22:16:54 -06:00
498cf06916 Style fixes, wip layout speed up work 2025-12-01 10:03:45 -06:00
1f57dfd38c Update to support Gosu 2.0.0 (Gosu::Image taking in a Gosu::Image fails) 2025-11-29 11:27:27 -06:00
76a8bf95c7 Update Gosu.draw_arc to support partial segments 2025-11-29 11:11:53 -06:00
1c25eeb32b Bump version 2025-06-24 13:55:40 -05:00
eabad4abd4 Refactored mesh handling, imported AABB tree implementation from I-MIC FPS 2025-05-03 18:21:11 -05:00
b3561f02c1 Fixed edit_line's with prefilled values having an offset_x that hides the text unless caret is manually moved left 2024-04-09 09:27:12 -05:00
9694cc2270 Fix compatibility issue with gosu 2.0 pre-release 2024-03-12 19:20:25 -05:00
a7df9a660d Bump version 2024-03-05 14:16:25 -06:00