Commit graph

17 commits

Author SHA1 Message Date
Haselnussbomber
b3c4363e0f
Fix crashing Context Menu 2025-12-17 17:09:18 +01:00
Kaz Wolfe
ff36f08d0c
bump cs, fix warnings 2025-08-04 21:11:06 -07:00
goat
f3d7c6f2ea don't access nullptr addon when shutting down early 2024-12-26 17:17:04 +01:00
Asriel Camora
a042ec9a5f
Fix ContextMenu for 7.0 (#1876)
* Fix 7.0 ContextMenu

* ContextMenu: Use collection initializers

* Delay RaptureAtkModule.Instance() to not run in ctor
2024-07-01 22:27:30 -07:00
goat
b425bb3e49 fix a million warnings 2024-06-30 00:58:04 +02:00
Blair
7947b896ea
Add interfaces to non public/sealed classes referenced in public interfaces (#1808)
* Add interfaces to non public/sealed classes referenced in public interfaces

* Fixed inheritdocs + made most classes internal

* Add missing properties to IFate and Fate, fix documentation

---------

Co-authored-by: goat <16760685+goaaats@users.noreply.github.com>
2024-06-28 23:05:34 +02:00
Kaz Wolfe
97fe5c71bb
fix build 2024-06-27 14:42:53 -07:00
KazWolfe
0c8c4bfdbf
chore: Remove the [InterfaceVersion] attribute (#1844) 2024-06-16 13:01:17 +02:00
Haselnussbomber
7ddc5d82ca
Update ClientStructs (#1827) 2024-06-15 16:57:44 -07:00
aers
479049b78d
[apiX] dalamud fixes for CS updates (#1821)
* update CS & fix compilation issues

* update CS to latest commit

* update CS & change battlechara

* more CS updates and compilation fixes

* one last cs update
2024-06-03 12:49:44 -07:00
aers
d823db7930
[apiX] first pass update for new clientstructs (#1818)
* first pass update for new clientstructs

* track latest clientstructs & fix compilation errors

* fix GameInventory hook bug
rename Appartment
2024-05-31 09:09:28 -07:00
MidoriKami
5dd627d18e
Fix ContextMenu LogicError (#1790) 2024-04-28 11:02:42 -07:00
MidoriKami
b8802f0609
fix: Use Prefix instead of PrefixChar for menu item tag (#1767) 2024-04-12 03:25:04 +00:00
MidoriKami
e32fc00277
IContextMenu Tweaks and Cleanup (#1753)
* Tweaks and cleanup

* Fix backwards logic
2024-04-11 23:23:13 +02:00
nebel
3c471575af
Clear context menu callbacks when opening AddonContextMenuTitle (#1743) 2024-03-23 17:47:32 +01:00
srkizer
87b9edb448
Add IInternal/PublicDisposableService (#1696)
* Add IInternal/PublicDisposableService

Plugins are exposed interfaces that are not inherited from
`IDisposable`, but services implementing plugin interfaces often
implement `IDisposable`. Some plugins may try to call
`IDisposable.Dispose` on everything provided, and it also is possible to
use `using` clause too eagerly while working on Dalamud itself, such as
writing `using var smth = await Service<SomeService>.GetAsync();`. Such
behaviors often lead to a difficult-to-debug errors, and making those
services either not an `IDisposable` or making `IDisposable.Dispose` do
nothing if the object has been loaded would prevent such errors. As
`ServiceManager` must be the only class dealing with construction and
disposal of services, `IInternalDisposableService` has been added to
limit who can dispose the object. `IPublicDisposableService` also has
been added to classes that can be constructed and accessed directly by
plugins; for those, `Dispose` will be ignored if the instance is a
service instance, and only `DisposeService` will respond.

In addition, `DalamudPluginInterface` and `UiBuilder` also have been
changed so that their `IDisposable.Dispose` no longer respond, and
instead, internal functions have been added to only allow disposal from
Dalamud.

* Cleanup

* Postmerge fixes

* More explanation on RunOnFrameworkThread(ClearHooks)

* Mark ReliableFileStorage public ctor obsolete

---------

Co-authored-by: goat <16760685+goaaats@users.noreply.github.com>
2024-03-16 15:58:05 +00:00
Asriel Camora
5f62c703bf
Add IContextMenu service (#1682) 2024-02-29 15:15:02 -08:00