Commit graph

24 commits

Author SHA1 Message Date
c0c659ee61 Fix spawned selector lifetime 2023-01-01 21:54:49 +03:00
e1d4608e3f Highlight the option that owns the active submenu in ui::selector 2022-12-23 10:01:24 +03:00
183e5bb482 Rename ui::spawn -> ui::spawn_selector 2022-12-20 17:11:14 +03:00
79eceaa616 Fix selectors lifetime issues 2022-12-19 21:17:22 +03:00
f42b91a80e Another selector callback fix 2022-12-18 19:15:24 +03:00
3a93ddce65 Fix selector callback patching 2022-12-18 18:17:00 +03:00
945b126e64 Post mouseover callback when ui::selector is removed from it's parent 2022-05-23 20:41:43 +03:00
dd87dadd2f Call post_reshape when adding children to ui::single_container & ui::selector 2022-05-23 20:07:25 +03:00
a368eb32ff Support selector canceled callback in ui::spawn 2022-05-03 20:14:14 +03:00
8354ee1753 Support mouseover callback in ui::selector 2022-05-03 15:43:37 +03:00
3760741ba6 Refactor ui::selector to support selector hierarchies 2022-05-01 13:16:48 +03:00
7b63614787 Fix ui::selector submenu callback 2022-04-30 20:48:11 +03:00
26ca210ecf Make ui::selector callback retrievable so that ui::spawn can replace it 2022-04-30 20:42:45 +03:00
1cdfcc5aa5 Support a separate callback for ui::selector submenu selection 2022-04-30 20:31:34 +03:00
a6b89e3d54 Make ui::spawn(selector) accept floating-point position directly 2022-04-30 18:34:19 +03:00
55d2a48ff2 Support retrieving item y-range from ui::selector 2022-04-30 16:52:23 +03:00
cc6691c633 Support submenu options in ui::selector 2022-04-30 16:47:54 +03:00
c5ca7a3c4f Fix ui::spawn(selector) destruction order on close 2022-03-13 17:21:04 +03:00
d1c95ea142 Add ui::selector::clear 2022-03-13 17:20:50 +03:00
6c4c0d8305 Make ui::selector release children on destroy 2022-03-13 17:20:20 +03:00
83df1a82ef Add ui::spawn helper for creating dropdown lists 2022-03-10 12:23:23 +03:00
976b493e2b Fix ui::selector handling mouse click event 2022-03-10 12:21:51 +03:00
6412238e19 Make ui::style::inner_margin a 2D vector 2022-03-09 19:25:56 +03:00
a8f51e93ac Add ui::selector (dropdown list component) 2022-03-08 13:02:39 +03:00