Commit graph

5326 commits

Author SHA1 Message Date
Soreepeong
27ef053252 Update docs 2024-08-25 22:23:58 +09:00
Soreepeong
6db7acca20 Do not throw already unloaded exception on exit 2024-08-18 08:18:30 +09:00
Soreepeong
9e95ab8ff7 fix log 2024-08-18 08:12:00 +09:00
Soreepeong
0a8f9b73fb Make ServiceScope IAsyncDisposable
ServiceScope.Dispose was not waiting for scoped services to complete
disposing. This had an effect of letting a new plugin instance register
a DtrBar entry before previous plugin instance's entry got unregistered.

This change also cleans up unloading procedure in LocalPlugin.
2024-08-18 07:58:45 +09:00
bleatbot
fdfdee1fcb
Update ClientStructs (#2009)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-08-17 12:43:29 -07:00
nebel
7a45fb05e3
Cache DalamudAssetAttribute lookups (#2014) 2024-08-17 11:05:15 +02:00
srkizer
ecf8e323c4
Misc fixes (#2013) 2024-08-15 15:22:33 +02:00
ALymphocyte
bd9eaed763
Improve BattleNpcSubKind (#2010)
This adds BattleNpcSubKind.NpcPartyMember and documents BattleNpcSubKind.Enemy better.
2024-08-13 16:05:45 +00:00
srkizer
cddad72066
Add error handlings for UldWidget (#2011)
* Add error handlings for UldWidget

* fixes
2024-08-13 08:45:00 -07:00
Haselnussbomber
7e0c97f59e
Update GameInventoryType enum (#2007) 2024-08-12 14:35:14 -07:00
wolfcomp
ae4c561e09
Add an ULD display to data window (#1938)
* prelim uld data display
* change uld list to a string array
* fix some uld parts not having their texture id set.
* update uld browser to use themes and get locations from sig scanning
* undo ClientStructs change during rebase
* fix capitalization during rebase
2024-08-12 13:36:31 -07:00
goat
bba3298538 build: 10.0.0.13 2024-08-08 19:45:26 +02:00
srkizer
861a688b89
LoadingDialog: fix possible racecon (#2004) 2024-08-08 19:40:40 +02:00
bleatbot
82472ffc11
Update ClientStructs (#1999)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-08-08 08:49:38 -07:00
srkizer
018524fb8f
Fix UIColor layout (#1998)
* Fix UIColor layout

* Handle <color(0)> correctly
2024-08-06 22:31:24 +02:00
goat
88bb224894 build: 10.0.0.12 2024-08-04 17:46:47 +02:00
srkizer
694b42a378
Fix UIColor handling per theme (#1995)
UIColor sheet has color sets per theme. Updated `UIColorWidget` to
reflect that, and added `SeStringDrawParams.ThemeIndex` to let users
choose which theme color set to use while drawing SeString from Dalamud.
2024-08-04 17:46:05 +02:00
srkizer
eb2724f366
Bump Lumina to 4.1.1 (#1997) 2024-08-04 17:44:25 +02:00
srkizer
169cf32a0e
Fix NRE from Class/Job/Level change handler (#1996) 2024-08-04 17:42:07 +02:00
goat
968dbc5bb7 build: 10.0.0.11 2024-08-04 14:39:37 +02:00
srkizer
424f129969
TextureManager: cleanup shared textures off main thread periodically (#1984)
* TextureManager: cleanup shared textures off main thread periodically

The cleanup function was already written in a threadsafe way. This
commit moves that functionality to a background low priority thread, and
does that every 60 frames.

* fix
2024-08-04 13:31:08 +02:00
srkizer
878b96e67d
SeString renderer: Implement replacement entity (#1993)
* Refactor

* Implement replacement entity

* Apply rounding functions more correctly
2024-08-04 13:30:49 +02:00
srkizer
23a2bd6228
Fix ImDrawList::AddImageRounded (#1994)
The function makes an assumption that there exists 1 font atlas texture,
so that `ImDrawList._Data->TexIdCommon` ==
`ImDrawList._CmdHeader.TextureId`. Since we support multiple font atlas
textures, that assumption is no longer true and
`ImDrawList::AddConvexPolyFilled` will create a new draw command as
needed, giving `ImGui::ShadeVertsLinearUV` a clean draw command to work
with.

This workaround forcefully sets *the* font atlas texture to be the
texture the user is trying to draw for the duration of drawing polygons
and shading those vertices again, so that no draw command change
happens. Once the operation is done, font atlas texture is reverted back
to what it was.

This fix is done without thread safety concerns, but an `ImDrawList`
should not be touched from multiple threads at a single time, so this is
fine.
2024-08-03 09:51:34 -07:00
Haselnussbomber
fc7b1f222d
Set style parameter of CompileSeStringWrapped to default (#1991) 2024-08-01 15:16:30 -07:00
srkizer
c721069b08
Fix scoped in and mark experimental (#1990) 2024-08-01 18:23:42 +00:00
bleatbot
afe44e4ca8
Update ClientStructs (#1989)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-08-01 17:39:59 +00:00
srkizer
b6eb18d550
SeString renderer: fix colors, add link support (#1983)
* Add coloring options

* Add link support

* simplify

* fixes

* Prevent EncodeString from causing crashes

* Fix link range application and add link example

* Fix test widget

* Make DalamudLinkPayload backward compatible

* make it better to use

* make it better to use

* Mark SeString rendering functions experimental via comments

* rename

* Simplify

* Make sestring draw functions take in draw params

* Improvements
2024-08-01 10:36:11 -07:00
Haselnussbomber
5fdd88b488
Update AtkArrayDataBrowserWidget (#1987) 2024-08-01 10:32:41 -07:00
Haselnussbomber
731c0b7c6d
Rework FateTableWidget (#1988)
* Rework FateTableWidget

* Maybe better FateTable column order

* Add Icon, MapIcon and Radius column
2024-08-01 10:32:12 -07:00
Haselnussbomber
a5fa109afa
Rework AtkArrayDataBrowserWidget (#1986)
Co-authored-by: KazWolfe <KazWolfe@users.noreply.github.com>
2024-07-30 09:19:07 -07:00
bleatbot
a79b27db10
Update ClientStructs (#1982)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-07-30 09:05:42 -07:00
Haselnussbomber
9bb9b3acf4
Add events for ClassJob and Level change (#1985)
* Add events for ClassJob and Level change
* Correctly handle uiModuleHandlePacketHook
* Update Dalamud/Plugin/Services/IClientState.cs


Co-authored-by: KazWolfe <KazWolfe@users.noreply.github.com>
2024-07-29 17:17:07 -07:00
goat
7369878789 build: 10.0.0.10 2024-07-28 22:22:11 +02:00
goat
73e50c823b interface: only warn about signed reshade if we are actually using addon mode 2024-07-28 22:06:53 +02:00
goat
b13e1eef86 build: 10.0.0.9 2024-07-28 20:30:20 +02:00
srkizer
3e86764748
Add xmldoc for TextProcessing (#1980) 2024-07-28 17:29:25 +02:00
srkizer
844b04faad
Implement SeString renderer (#1977)
Does not have contextual evaluation. Only styling payloads are handled for (relative) simplicity.
2024-07-28 15:36:04 +02:00
goat
1c0ad61335 build: 10.0.0.8 2024-07-28 15:11:33 +02:00
srkizer
c25f13261d
Make DtrBar more threadsafe (#1978)
* Changed DtrBar to use ReaderWriterLockSlim so that there exists only one storage of entries, preventing possible desync.
* DtrBarEntry will now hold a reference to the LocalPlugin that created the entry, so that DtrBarPluginScoped can defer plugin related handling to the main service.
* Marked DtrBarEntry class itself to be turned internal in API 11.
* Made IDtrBar.Entries return an immutable copy of underlying list of DtrBar entries, that will be freshly created whenever the list changes.
2024-07-28 14:14:37 +02:00
bleatbot
a7ab3b9def
[master] Update ClientStructs (#1979)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-07-28 11:30:49 +02:00
goat
b1fe875c6e build: 10.0.0.7 2024-07-27 13:37:24 +02:00
goat
eec755b1f3 chat: print SCM version instead of git hash when logging in 2024-07-27 13:36:26 +02:00
bleatbot
90c9705ea2
Update ClientStructs (#1976)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-07-26 11:27:52 -07:00
MidoriKami
9a259100b4
Better AddonLifecycle AddonEvent docs (#1964)
Co-authored-by: Kaz Wolfe <root@kazwolfe.io>
Co-authored-by: Haselnussbomber <mail@haselnussbomber.de>
2024-07-25 14:02:29 -07:00
Soreepeong
7b7d5ad9c7 Fix case order 2024-07-25 21:46:40 +02:00
nebel
b523acd500
Use origins when calculating scaled node position (#1972) 2024-07-25 21:39:54 +02:00
bleatbot
9643f32a49
[master] Update ClientStructs (#1961)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-07-25 21:39:32 +02:00
goat
2265b389b1 config: rename ReShade handling mode property to force new default 2024-07-25 21:36:53 +02:00
goat
9298e85c61
Merge pull request #1973 from Soreepeong/reshade-addon
add back DXGISwapChain::on_present hook as default for now
2024-07-25 21:35:41 +02:00
KazWolfe
79971fc8d6
fix: Use AssemblyVersion for UserAgent header (#1974)
- Fixes a bug with local builds not being able to make HTTP requests
2024-07-25 21:30:36 +02:00