1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00
Commit graph

391 commits

Author SHA1 Message Date
Ell
b0bf55842b Improved the naming of SpriteBatchExtensions texture generation methods 2024-11-16 13:53:04 +01:00
Ell
201fd8d294 TextureExtensions improvements 2024-11-16 13:33:09 +01:00
Ell
2e1d52944a Merge remote-tracking branch 'origin/main' 2024-11-09 18:02:52 +01:00
Ell
e1e1e8db8c Fixed UiParser ImageExceptionHandler being ignored when an exception occurs during texture construction 2024-11-09 18:02:35 +01:00
Ell
6f64661817
Improve the runtime texture packer algorithm (#31)
* use a random size for testing pack times to show how truly bad the current algo is

* expand overlap test to include padding and pixel padding

* fixed TestPackTimes on KNI

* also test for whether the padding intersects

* Use a binary tree algorithm for the runtime texture packer

* update changelog and bump version

* fixed fna compile errors

* save TestPackTimes textures separately
2024-11-07 16:18:51 +01:00
Ell
b59fe6b817 bump version (we've been adding features!) 2024-10-29 23:13:41 +01:00
Ell
41fb515f80 Fixed AddedToUi and RemovedFromUi being called for freshly added or removed children whose parents are not in a ui system 2024-10-29 20:28:44 +01:00
Ell
50e864b94f
Fixed stack overflow related to panel scrolling and scrollbar auto hiding (and improved build scripts) (#28)
* add a test to recreate the issue

* fixed deploy-demo running on pull requests

* restructure cake script to run tests separately

* actually name the test step correctly

* also run the build task separately

* made all tasks explicitly depend on prepare

* install android workload manually, rather than as part of cake

* Revert "install android workload manually, rather than as part of cake"

This reverts commit 101d6d3eac.

* don't clear a panel's scroll bar max history between area updates

* added changelog entry
2024-10-27 00:46:15 +02:00
Ell
1cfdedfc80 Made fields and methods in StaticJsonConverter protected to allow extending it 2024-10-20 12:31:31 +02:00
Ell
3bc5c7f18c Fixed tooltips not being bounded correctly for viewports that don't start at the origin 2024-10-08 18:12:22 +02:00
Ell
d2774ad7d2 Added Tooltip.IgnoreViewport and allow overriding the default viewport using Tooltip.Viewport 2024-10-08 18:07:38 +02:00
Ell
0eeeed1a27 Added TextField.OnEnterPressed event 2024-09-29 22:58:50 +02:00
Ell
4c378f7cd9 Fixed formatting codes at the start of strings not being added to the AllCodes collection
Closes #26
2024-09-29 12:17:47 +02:00
Ell
f35730ee7c moved change to the correct changelog category 2024-09-19 20:22:04 +02:00
Ell
84bf3fa0a3 Added Panel.IsVisible method to check if a child element is visible 2024-09-19 20:21:06 +02:00
Ell
c5f4fd27bd bump upcoming version 2024-09-14 11:48:18 +02:00
Ell
cdc4756a6a 7.1.1 2024-09-14 11:39:05 +02:00
Ell
c4bd03ff04 Image loading improvements:
- Added TextureExtensions.PremultipliedCopy for textures
- Create a premultiplied copy of UiParser images to support usage with KNI
2024-09-14 10:48:04 +02:00
Ell
a6a34c3937 Construct images in UiParser.ParseImage on the main thread to support usage with KNI 2024-09-14 10:40:11 +02:00
Ell
73a02dfe19 bump upcoming version 2024-09-02 21:00:40 +02:00
Ell
17cb112360 7.1.0 2024-09-02 20:51:23 +02:00
Ell
ea8ec69dd6 Added MLEM.KNI and friends, which are fully compatible with KNI 2024-09-02 19:55:28 +02:00
Ell
74254e6cdb Added ColorExtensions.ToHsv and ColorHelper.FromHsv 2024-07-29 20:46:40 +02:00
Ell
9c4a66ef6d bump minor version 2024-07-29 20:16:14 +02:00
Ell
943a9cbd77 Added ColorExtensions.ToHsl and ColorHelper.FromHsl 2024-07-29 19:57:33 +02:00
Ell
dd3fc6b85d bump upcoming version 2024-07-20 12:04:48 +02:00
Ell
7c3cffd2cd 7.0.0 2024-07-20 11:57:36 +02:00
Ell
ecc0c3b963 Allow static json converters to write null values 2024-07-19 21:35:47 +02:00
Ell
498e1d8fe6 Allow static json converters to throw an exception if a key does not exist 2024-07-19 21:10:30 +02:00
Ell
677230ce28 Moved extension methods into matching namespaces to avoid unexpected suggestions 2024-07-19 20:02:28 +02:00
Ell
b0c6067555 removed all non-recent obsolete methods, properties and types 2024-07-17 18:21:13 +02:00
Ell
b4f45ba6b5 small keybind improvements
- Added a constructor that accepts a set of combinations
- Made the Combinations collection a public property
2024-07-16 12:10:41 +02:00
Ell
6f51b3542b Revert "Added a public Combinations collection and associated constructor to Keybind"
This reverts commit b2dd81e95b.
2024-07-16 12:06:47 +02:00
Ell
b2dd81e95b Added a public Combinations collection and associated constructor to Keybind 2024-07-16 11:18:56 +02:00
Ell
2df216c15d various sprite animation improvements
- Added indexers and Count to SpriteAnimation and SpriteAnimationGroup
- Marked SpriteAnimation.ByName obsolete in favor of the new indexer
2024-07-14 19:52:32 +02:00
Ell
fa1cafd751 Added compatibility for MonoGame.Extended 4.0.0 and FNA.Extended 2024-07-10 12:03:24 +02:00
Ell
24277ba494 Allow AutoTiling overlayTextures to return null texture regions 2024-06-27 22:24:11 +02:00
Ell
bcc558f591 some panel improvements
- Added Panel.ScrollToTop and Panel.ScrollToBottom
- Fixed Panel.ScrollToElement not scrolling correctly when the panel's area is dirty
2024-06-14 22:31:32 +02:00
Ell
3a055129b5 Made the Element.Children collection public 2024-06-11 18:47:22 +02:00
Ell
fb3b586a35 Track element area update recursion count in UiMetrics 2024-06-09 20:29:23 +02:00
Ell
6a5e9a77ea Fixed auto-sized elements sometimes updating their location based on outdated parent positions 2024-06-09 20:22:24 +02:00
Ell
d7cda0d39b Fixed scroll bars doing unnecessary calculations when hidden 2024-06-02 13:26:51 +02:00
Ell
8fdc3546c6 Added the ScissorGroup element 2024-05-30 13:24:35 +02:00
Ell
d879894e30 Include the SpriteBatchContext in OnDrawn, OnElementDrawn and OnSelectedElementDrawn 2024-05-30 12:48:08 +02:00
Ell
ee2b0266aa automatically set TreatSizeAsMaximum for height-based scrolling panels 2024-05-29 23:37:42 +02:00
Ell
ab96e97f8e Fixed hidden scroll bars inhibiting scrolling on their parent panel 2024-05-29 23:34:23 +02:00
Ell
f499ed94a7 Allow scrolling panels to set height based on children with TreatSizeAsMaximum 2024-05-29 23:30:12 +02:00
Ell
85d20b6433 Added a RectangleF.FromCorners overload that accepts points 2024-04-13 21:14:34 +02:00
Ell
7bf418f8b2 Allow NumberExtensions.GetPoints to include bottom and right coordinates 2024-04-13 21:12:49 +02:00
Ell
9a03a8c62d Added the ability for formatted (tokenized) strings to be drawn with custom rotation, origin and flipping
Closes #18
2024-04-10 20:27:00 +02:00