Commit graph

4694 commits

Author SHA1 Message Date
Soreepeong
111029e9bc Fix inconsistency 2024-03-01 10:01:51 +09:00
Soreepeong
8fa8ca43b6 Rename ISharedImmediateTexture methods 2024-03-01 09:47:27 +09:00
Soreepeong
c9f613931f supply Channel<T> create params 2024-03-01 01:49:32 +09:00
Soreepeong
e2ed5258eb Cleanup TextureLoadThrottler 2024-03-01 00:10:58 +09:00
Soreepeong
b34a901702 make it consistent 2024-02-28 22:16:40 +09:00
Soreepeong
ca986b46a2 cleanup 2024-02-28 21:17:50 +09:00
Soreepeong
cc756c243c Add ITextureProvider.GetFromManifestResource(Assembly,string) 2024-02-28 21:04:57 +09:00
Soreepeong
b52d4724e9 cleanup 2024-02-28 20:18:48 +09:00
Soreepeong
35f3802471 Format 2024-02-28 20:10:31 +09:00
Soreepeong
b16fa5cb46 Inline as seen fit 2024-02-28 20:07:13 +09:00
Soreepeong
55b5c5094a TextureLoadThrottler: make CreateLoader never block 2024-02-28 19:59:36 +09:00
Soreepeong
f8492dc06b changes 2024-02-28 19:16:14 +09:00
Soreepeong
aa35052a15 update UldWrapper 2024-02-28 17:43:24 +09:00
Soreepeong
e12563d20f Suppress cancelled task exception from bubbling 2024-02-28 17:43:24 +09:00
Soreepeong
2c013f39ca fix 2024-02-28 17:43:24 +09:00
Soreepeong
71b84bcf40 Move all texture loading functionalities from IM to TM 2024-02-28 17:43:24 +09:00
Soreepeong
248c7911a0 Ensure leaveOpen takes effect even on cancellations 2024-02-28 17:43:24 +09:00
Soreepeong
3bf907002f Remove CancellationToken from GetFromRaw(Sync) 2024-02-28 17:43:24 +09:00
Soreepeong
80875247b6 Correct Async refcount handling 2024-02-28 17:43:24 +09:00
Soreepeong
ba51ec52f5 Better tex load cancellation handling 2024-02-28 17:43:24 +09:00
Soreepeong
517abb0c71 Suppress hint 2024-02-28 17:43:24 +09:00
Soreepeong
ea633cd876 Implement texture load throttling & cancellable async loads 2024-02-28 17:43:24 +09:00
Soreepeong
e12b2f7803 Make state+texture retrieval done with one API call 2024-02-28 17:43:24 +09:00
Soreepeong
71bb02347f Update docs 2024-02-28 17:43:24 +09:00
Soreepeong
2920d18afa Update IconBrowserWidget 2024-02-28 17:43:24 +09:00
Soreepeong
5eadfc1b4d Add state fetchers 2024-02-28 17:43:24 +09:00
Soreepeong
eb4d9aba7e TexWidget: add test/examples for new APIs 2024-02-28 17:43:22 +09:00
Soreepeong
3fe2920e92 Update ITextureProvider 2024-02-28 17:29:23 +09:00
goat
8e5a84792e
Merge pull request #1684 from Soreepeong/feature/idtw-cloneable
Add IDalamudTextureWrap.CreateWrapSharingLowLevelResource
2024-02-27 19:43:21 +01:00
AzureGem
0651c643b1
Limit console log lines held in memory (#1683)
* Add AG.Collections.RollingList

* Use RollingList for logs + Adaption changes

* Create Dalamud.Utility.ThrowHelper

* Create Dalamud.Utility.RollingList

* ConsoleWindow: Remove dependency

* Remove NuGet Dependency

* Add Log Lines Limit configuration

* Use Log Lines Limit configuration and handle changes

* Make log lines limit configurable
2024-02-27 19:15:11 +01:00
bleatbot
e6c97f0f18
Update ClientStructs (#1685)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-02-27 09:03:09 -08:00
goat
54ba0e7d1a
Merge pull request #1688 from Soreepeong/fix/misc
Miscellaneous fixes
2024-02-27 12:53:02 +01:00
Soreepeong
12e2fd3f60 Miscellaneous fixes 2024-02-27 19:49:40 +09:00
Soreepeong
9629a555be Rename to CreateWrapSharingLowLevelResource 2024-02-26 03:20:28 +09:00
goat
6116508c57
Merge pull request #1673 from Soreepeong/fix/igameconfig-racecon
IGameConfig: fix load-time race condition
2024-02-25 19:00:00 +01:00
Soreepeong
f6be80a5fb Make IDalamudTextureWrap ICloneable 2024-02-25 21:21:50 +09:00
bleatbot
c1c85e5236
[master] Update ClientStructs (#1680)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-02-25 11:23:01 +00:00
srkizer
94cf1c82c4
Synchronize DalamudStartInfo between cpp and cs (#1679)
Dalamud Boot was using BootLogPath in place of LogPath, resulting in
wrong log path.
2024-02-22 20:27:07 -08:00
bleatbot
db17a86587
Update ClientStructs (#1677)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-02-22 07:00:19 +00:00
bleatbot
bf34dd2817
Update ClientStructs (#1670)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-02-21 20:04:16 -08:00
Soreepeong
a3217bb86d Remove InitialiationTask from interface 2024-02-21 16:34:53 +09:00
AzureGem
3909fb13fa
Fix ConsoleWindow regex handling (#1674) 2024-02-20 11:19:24 -08:00
Soreepeong
da969dec5c DAssetM cleanup 2024-02-20 15:42:49 +09:00
Soreepeong
c27422384f IGameConfig: fix load-time race condition
As some public properties of `IGameConfig` are being set on the first
`Framework` tick, there was a short window that those properties were
null, which goes against the interface declaration.

This commit fixes that, by making those properties block for the full
initialization of the class.

A possible side effect is that a plugin that is set to block the game
from loading until it loads will now hang the game if it tries to access
the game configuration from its constructor, instead of throwing a
`NullReferenceException`. As it would mean that the plugin was buggy at
the first place and it would have sometimes failed to load anyway, it
might as well be a non-breaking change.
2024-02-20 15:37:54 +09:00
bleatbot
ac59f73b59
[master] Update ClientStructs (#1669)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-02-18 19:15:55 +01:00
goat
2909c83521
build: 9.0.0.21 2024-02-18 17:16:35 +01:00
srkizer
2d8b71c647
Add SetFontScaleMode(ImFontPtr, FontScaleMode) (#1666)
* Add SetFontScaleMode(ImFontPtr, FontScaleMode)

`IgnoreGlobalScale` was advertised as "excludes the given font from
global scaling", but the intent I had in mind was "excludes the given
font from being scaled in any manner". As the latter functionality is
needed, obsoleted `IgnoreGlobalScale` and added `SetFontScaleMode`.

* Make it correct

* Name consistency
2024-02-18 15:08:07 +01:00
srkizer
7dc99c9307
Fix AddRectFilledDetour typo (#1667)
* Fix AddRectFilledDetour typo

* Skip drawing if zero opacity is specified for drawing
2024-02-18 07:03:51 +00:00
goat
7da47a8a33
build: 9.0.0.20 2024-02-17 19:07:18 +01:00
KazWolfe
c19e1f0fcd
Default Minimum/Maximum WindowSizeConstraints (#1574)
* feat: Default Minimum/Maximum WindowSizeConstraints

If `MinimumSize` or `MaximumSize` are not set when defining a `WindowSizeConstraints`, they will be effectively unbounded.

* chore: Make internal windows unbounded on max size

* Ignore max value if it's smaller than minimum in any dimension
2024-02-17 19:06:41 +01:00