Commit graph

5564 commits

Author SHA1 Message Date
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
goat
8c593bc31d
Merge pull request #1966 from Soreepeong/fix/servicescope
ServiceScope fixes
2024-07-25 21:30:14 +02:00
KazWolfe
32607ed6ba
fix/ci: don't reference a non-existent env var (#1975) 2024-07-25 21:22:54 +02:00
Soreepeong
f0777106d3 Render reshade over dalamud on hook mode 2024-07-25 21:39:07 +09:00
Soreepeong
d8861ec7da write code 2024-07-25 21:07:49 +09:00
Soreepeong
ef64a67d10 fix 2024-07-25 20:19:22 +09:00
Soreepeong
1f34db5039 Do not handle DXGI_PRESENT_TEST 2024-07-25 19:05:59 +09:00
Soreepeong
ebee2f151e add back DXGISwapChain::on_present hook as default for now 2024-07-25 18:14:06 +09:00
goat
bd170ee74a
Merge pull request #1945 from KazWolfe/fixed-versioning
feat: Use new versioning strategy
2024-07-25 01:01:50 +02:00
Haselnussbomber
5650bf3ae0
Properly remove DtrEntries from DtrBarPluginScoped (#1969)
fixes #1862
2024-07-25 00:59:34 +02:00
goat
7a5bdb6bde
Merge pull request #1968 from KazWolfe/charamount
feat: Add new fields for a character's current mount and minion
2024-07-25 00:58:44 +02:00
KazWolfe
0684c31ec1
ci: Fixups (#1971)
- Disable rollup job as it's not needed at the moment
- Ignore some compat changes.
  - CP0006: Allow members to be added to interfaces.
2024-07-25 00:58:22 +02:00
srkizer
818eec91a0
Use ReShade addon event Present (#1970) 2024-07-24 15:33:46 -07:00