Commit graph

5486 commits

Author SHA1 Message Date
srkizer
42a10a1215
Fix SestringRenderer sig (#2030) 2024-08-27 08:48:28 +00:00
bleatbot
7cbc76d64d
Update ClientStructs (#2028)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-08-26 21:07:06 -07:00
bleatbot
a7cb89e2a4
Update ClientStructs (#2020)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-08-26 11:28:51 -07:00
goat
ec77f2cc90
Added two new helpers, for PushItemWidth and PushTextWrapPos (#2017)
Added two new helpers, for PushItemWidth and PushTextWrapPos
2024-08-25 16:30:27 +02:00
goat
7da4a5d703
Merge pull request #2016 from Soreepeong/fix/servicescopedispose
Make ServiceScope IAsyncDisposable
2024-08-25 16:21:18 +02:00
Soreepeong
27ef053252 Update docs 2024-08-25 22:23:58 +09:00
Pascal
cab84a8e31
feat: add new 7.0 BitmapFontIcons & fix few others (#2006)
add new 7.0 BitmapFontIcons
- Tuiyolal flag
- Viper job icon
- Pictomancer job icon
- Moogle treasure trove

fix some outdated icons
2024-08-25 15:07:32 +02:00
Infi
84fd82aa80
Add .Pop() to the doc about fontHandle examples (#2021) 2024-08-25 15:06:39 +02:00
srkizer
8822810229
DalamudAssetManager: avoid locks and lookups (#2015)
* Made DalamudAsset-to-something tables into arrays from dictionaries.
  Number of items in the DalamudAsset enum aren't many, and the numbers
  are small enough that implementing lookup tables as arrays aren't
  wasting much memory space.
* Removed locking from asset accessors, while still guaranteeing that
  the load operation happens only once per asset.
* ISharedImmediateTexture: made it not even access assets if textures
  are available.
2024-08-25 15:06:21 +02:00
nebel
981387504b
Avoid capturing local variables in TitleBarButton.Click closure (#2019) 2024-08-25 14:57:36 +02:00
James Keesey
0acab6935a Added two new helpers, one for PushItemWidth and the other for PushTextWrapPos. 2024-08-17 18:03:42 -07: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