59af00c89a
Code cleanup, and marked AStar.InfiniteCost as obsolete
2022-06-15 11:38:11 +02:00
6393d879d9
added SpriteBatchContext
2022-04-25 15:25:58 +02:00
94dec34470
render panel's render target in the Draw method
2022-03-26 21:13:05 +01:00
bb22bbdf75
Fixed children of Panel scroll bars also being scrolled
2022-03-17 20:04:58 +01:00
cd32372994
fixed 0f4e67f20f
2022-03-10 18:39:35 +01:00
0f4e67f20f
Fixed auto-navigating panels not scrolling to the center of elements properly
2022-03-10 18:04:36 +01:00
a143aef67c
Revert scissor rectangle change since it doesn't support panels with complex transformations
...
Revert "Use a scissor rectangle for panels in favor of a render target, and marked UiSystem.DrawEarly and Element.DrawEarly as obsolete"
This reverts commit 3c4567e4a1
.
Revert "cleaned up DrawEarly documentation references"
This reverts commit dc6c472b84
.
2022-01-30 16:35:10 +01:00
dc6c472b84
cleaned up DrawEarly documentation references
2022-01-30 12:20:32 +01:00
3c4567e4a1
Use a scissor rectangle for panels in favor of a render target, and marked UiSystem.DrawEarly and Element.DrawEarly as obsolete
2022-01-30 01:13:59 +01:00
80a6c6b5e2
Avoid unnecessary panel updates by using an Epsilon comparison when scrolling children
2022-01-09 01:15:05 +01:00
c28f6d858c
Ensure that a panel gets notified of all relevant changes by calling OnChildAreaDirty for all grandchildren
2022-01-09 01:12:16 +01:00
dae511e455
Made StyleProp immutable
2021-12-21 11:54:32 +01:00
3541b8d3e1
Automatically set area dirty when changing child padding or paragraph fonts
2021-12-21 00:01:57 +01:00
55fae16768
Allow overriding SetAreaAndUpdateChildren and switch to using it in some locations
2021-12-11 17:39:49 +01:00
84e2544dc8
Allow setting a custom effect and depth stencil state for ui drawing
2021-11-22 17:42:08 +01:00
5b99f29490
Fixed some inconsistencies with element transformations and mouse interaction
2021-11-22 15:13:08 +01:00
cd48ad6e2a
ensure that child padding stays consistent if ScrollerSize gets updated
2021-11-14 20:28:53 +01:00
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
1fa9204680
added a style property for a panel's scroll bar offset
2021-11-11 16:43:27 +01:00
dc15a9139f
added a bound check for the auto-calculated scroller size
2021-11-08 02:11:05 +01:00
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
3d0250bf86
Calculate panel scroll bar height based on content height
2021-11-08 02:02:59 +01:00
778d416774
mark panel's relevant children dirty when the render target changes
2021-11-05 23:28:32 +01:00
543201d178
ensure that relevant panel children are updated when children are changed
2021-11-05 23:22:39 +01:00
cf48fc372e
skip unnecessary relevant children updates for panels
2021-11-01 22:58:37 +01:00
ca89d03ca4
Some more ui style improvements
2021-10-30 15:33:38 +02:00
3648352540
organized MLEM.Ui properties and fields slightly
2021-10-30 15:01:04 +02:00
0809cd0218
Added style properties for a lot of hardcoded default element styles
2021-10-29 23:33:15 +02:00
ef83124cfa
allow changing the color of panels
2021-06-22 01:14:06 +02:00
a02334a34c
turned some non-event events into events and added Disposing event to ui elements
2021-06-09 00:27:50 +02:00
e0a9971bdb
added DynamicEnum to MLEM.Data
2021-06-08 13:32:01 +02:00
20e2d098ef
suppress finalize for manually disposed panels
2021-06-08 00:32:07 +02:00
0dad4860c1
dispose of the panel's render target
2021-06-08 00:29:51 +02:00
ed02a83879
fixed panels drawing children early within the render target
2021-06-07 23:14:50 +02:00
2055c3a6ef
convert tests to use graphics
2021-04-02 17:12:27 +02:00
e7fd026a33
added some UI tests
2021-04-01 19:36:56 +02:00
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
e6243b831c
remove unnecessary references to GraphicsDevice from UiSystem
2021-03-29 02:26:44 +02:00
602f19a2a8
some minor code style and format improvements
2021-03-24 22:44:39 +01:00
5f7956a7a3
properly stop a panel's scroll bar from being removed
2021-03-24 22:01:02 +01:00
be9748e70e
fully disallow access to internal children collections
2021-03-24 01:39:41 +01:00
9146d7f2ba
disallow removing the scroll bar from a panel
2021-02-07 18:30:56 +01:00
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