1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-10 08:49:08 +01:00
Commit graph

135 commits

Author SHA1 Message Date
Ell
5b99f29490 Fixed some inconsistencies with element transformations and mouse interaction 2021-11-22 15:13:08 +01:00
Ell
cd48ad6e2a ensure that child padding stays consistent if ScrollerSize gets updated 2021-11-14 20:28:53 +01:00
Ell
9cd72e9b4e Fixed panels that don't auto-hide their scroll bars ignoring their width for child padding 2021-11-14 19:50:24 +01:00
Ell
1fa9204680 added a style property for a panel's scroll bar offset 2021-11-11 16:43:27 +01:00
Ell
dc15a9139f added a bound check for the auto-calculated scroller size 2021-11-08 02:11:05 +01:00
Ell
6d554faaac mark panel children dirty when the scroll bar's max value (the height of the children) changes 2021-11-08 02:06:50 +01:00
Ell
3d0250bf86 Calculate panel scroll bar height based on content height 2021-11-08 02:02:59 +01:00
Ell
778d416774 mark panel's relevant children dirty when the render target changes 2021-11-05 23:28:32 +01:00
Ell
543201d178 ensure that relevant panel children are updated when children are changed 2021-11-05 23:22:39 +01:00
Ell
cf48fc372e skip unnecessary relevant children updates for panels 2021-11-01 22:58:37 +01:00
Ell
ca89d03ca4 Some more ui style improvements 2021-10-30 15:33:38 +02:00
Ell
3648352540 organized MLEM.Ui properties and fields slightly 2021-10-30 15:01:04 +02:00
Ell
0809cd0218 Added style properties for a lot of hardcoded default element styles 2021-10-29 23:33:15 +02:00
Ell
ef83124cfa allow changing the color of panels 2021-06-22 01:14:06 +02:00
Ell
a02334a34c turned some non-event events into events and added Disposing event to ui elements 2021-06-09 00:27:50 +02:00
Ell
e0a9971bdb added DynamicEnum to MLEM.Data 2021-06-08 13:32:01 +02:00
Ell
20e2d098ef suppress finalize for manually disposed panels 2021-06-08 00:32:07 +02:00
Ell
0dad4860c1 dispose of the panel's render target 2021-06-08 00:29:51 +02:00
Ell
ed02a83879 fixed panels drawing children early within the render target 2021-06-07 23:14:50 +02:00
Ell
2055c3a6ef convert tests to use graphics 2021-04-02 17:12:27 +02:00
Ell
e7fd026a33 added some UI tests 2021-04-01 19:36:56 +02:00
Ell
82b8c0ab49 fixed a rare stack overflow where scroll bars could get stuck in an auto-hide loop 2021-03-29 08:28:49 +02:00
Ell
e6243b831c remove unnecessary references to GraphicsDevice from UiSystem 2021-03-29 02:26:44 +02:00
Ell
602f19a2a8 some minor code style and format improvements 2021-03-24 22:44:39 +01:00
Ell
5f7956a7a3 properly stop a panel's scroll bar from being removed 2021-03-24 22:01:02 +01:00
Ell
be9748e70e fully disallow access to internal children collections 2021-03-24 01:39:41 +01:00
Ell
9146d7f2ba disallow removing the scroll bar from a panel 2021-02-07 18:30:56 +01:00
Ell
f6c4d83775 fixed panel element detection being incorrect if scrolling overflow is enabled 2020-11-05 01:16:01 +01:00
Ellpeck
deec553b22 code cleanup 2020-06-18 17:24:35 +02:00
Ellpeck
71dabe7360 use specific check instead of generic one for panel fix 2020-06-17 01:44:16 +02:00
Ellpeck
2d332c3a48 allow panel children to be ordered arbitrarily rather than requiring the scroll bar in the first index 2020-06-17 01:43:08 +02:00
Ellpeck
c7de0322b0 sanity check for panel render target size 2020-06-01 21:34:55 +02:00
Ellpeck
6c03ef2bd9 fixed hidden panels trying to update, causing a crash 2020-05-30 22:48:09 +02:00
Ellpeck
f12284169e full xml documentation for MLEM.Ui 2020-05-22 17:02:24 +02:00
Ellpeck
5115bd8ca6 some element code cleanup 2020-05-17 00:59:15 +02:00
Ellpeck
cc06b827ff use the new system in panel 2020-04-02 17:54:10 +02:00
Ellpeck
d823064979 added HasValue() to styleprop 2020-02-06 17:36:51 +01:00
Ellpeck
b3331834e1 I did not want to push this here
This reverts commit ee511137
2020-02-06 01:51:41 +01:00
Ellpeck
ee5111372b part 1 2020-02-06 01:33:24 +01:00
Ellpeck
b53588c32e redid that bugfix that I undid with that other bugfix 2019-12-28 12:59:14 +01:00
Ellpeck
d70e89aff6 fixed what I just did 2019-12-24 17:52:16 +01:00
Ellpeck
fff25c6c12 made panels without content not crash 2019-12-24 17:48:57 +01:00
Ellpeck
8dcf3d8e63 made disabling scroll bar hiding easier for the panel 2019-12-14 14:10:38 +01:00
Ellpeck
dbe7980add made padding a lot more versatile in mlem.ui 2019-12-14 14:00:12 +01:00
Ellpeck
b8e73717f4 made panels update their draw area properly in drawearly 2019-12-12 22:56:49 +01:00
Ellpeck
548e603900 made cameras snap right in small rooms and made panels not require a texture 2019-12-06 20:54:30 +01:00
Ellpeck
4888bb0fd7 made dropdowns only have high priority when opened and fixed panels sometimes ignoring priority 2019-11-18 22:36:55 +01:00
Ellpeck
f1c9ba5517 fixed the panel updating its render target too often 2019-11-05 13:42:39 +01:00
Ellpeck
7f81f6469f fixed scroll bars still ceiling their values 2019-11-02 22:38:44 +01:00
Ellpeck
32c8147a4c added a rectanglef class which allows mlem to use decimal coordinates 2019-11-02 14:53:59 +01:00
Ellpeck
cb7abbbbef fixed some panel issues 2019-11-02 14:21:42 +01:00
Ellpeck
ee35509f23 made ui styling a lot more user friendly 2019-10-14 21:28:12 +02:00
Ellpeck
36204e40cb turn some points into vectors for added precision 2019-09-26 22:16:21 +02:00
Ellpeck
a048daefbf made panels only draw and update their visible children 2019-09-20 13:48:49 +02:00
Ellpeck
c5170917fb fixed custom draw groups not working outside of a render target 2019-09-20 13:22:05 +02:00
Ellpeck
8afe9962fb added a dropdown menu and also fixed some issues 2019-09-12 12:39:18 +02:00
Ellpeck
672e5eb548 clean up navigation a lot 2019-09-09 17:12:36 +02:00
Ellpeck
b85afccaf5 fixed the panel passing a wrong matrix to its children 2019-09-08 21:32:48 +02:00
Ellpeck
20d7b95891 added CustomDrawGroup which allows for components to have their own draw call 2019-09-08 16:30:55 +02:00
Ellpeck
619db6bb94 remove offset from draw method and use a matrix instead 2019-09-04 17:19:31 +02:00
Ellpeck
1ee7fafc23 change this to ceil so that elements don't just get cut off 2019-09-04 16:37:57 +02:00
Ellpeck
0dff0e275d added the ability to transform the entire ui 2019-09-02 19:55:26 +02:00
Ellpeck
3e7ddb8b1a add the ability for scroll bars to hide themselves when they're empty 2019-09-01 19:53:52 +02:00
Ellpeck
353afdef6f started working on touch support for MLEM.Ui 2019-08-30 18:15:50 +02:00
Ellpeck
90d292cd37 tabbing, part 2 2019-08-28 18:58:05 +02:00
Ellpeck
5c741a98e9 tabbing, part 1! 2019-08-28 18:27:17 +02:00
Ellpeck
6766d769f4 made scrolling a lot less intensive 2019-08-24 22:27:47 +02:00
Ellpeck
13c7aa90e2 why was this here 2019-08-24 20:33:55 +02:00
Ellpeck
287885b96d fixed panels overflowing incorrectly in some dimensions 2019-08-24 19:21:06 +02:00
Ellpeck
d231386f86 made auto-anchored elements look for the lowest older sibling 2019-08-24 15:12:11 +02:00
Ellpeck
21c17066fc added column helper and fixed some more bugs 2019-08-24 15:00:08 +02:00
Ellpeck
d69033a315 fixed some bugs and added column helper 2019-08-24 14:34:08 +02:00
Ellpeck
b6d3496987 added the ability to move roots to front or back 2019-08-23 22:23:10 +02:00
Ellpeck
cbb265a5d5 use the right area for the panel's hover check 2019-08-21 22:50:13 +02:00
Ellpeck
fac7f2beb0 propagate mouse events to children by default, except for panels that handle overflow 2019-08-20 21:41:22 +02:00
Ellpeck
5d8e010bad made tooltips not go off screen and fixed the ui system breaking clearing 2019-08-15 14:59:15 +02:00
Ellpeck
5d2f77e95c added a tooltip 2019-08-13 23:54:29 +02:00
Ellpeck
4624219b4e added scroll bar and overflow handling panel 2019-08-12 19:44:16 +02:00
Ellpeck
8af040787c added the ability for nine patch regions to have their patches scaled 2019-08-11 21:38:03 +02:00
Ellpeck
cb12ead7cc added element auto-resizing 2019-08-11 18:50:39 +02:00
Ellpeck
0c8af5b9bf better styling 2019-08-10 21:37:10 +02:00
Ellpeck
3f7f06f98f added draw alpha to all components 2019-08-10 13:42:18 +02:00
Ellpeck
88da47bc00 added defaults for most element properties 2019-08-10 13:28:58 +02:00
Ellpeck
ef3726b077 added auto-scaled text, buttons and vertical space 2019-08-09 22:04:26 +02:00
Ellpeck
b1d41d572c added panels and paragraphs 2019-08-09 19:28:48 +02:00