Commit graph

5548 commits

Author SHA1 Message Date
SlashNephy
98f58b3f89
Respect Dalamud chat type setting in changelogs message (#2041) 2024-09-15 18:20:42 +00:00
srkizer
1f74293de4
Update Lumina and use MacroStringParser (#2033)
No longer requires hook and main thread requirements on compiling macro
strings.

Needs lookup table fixing on Lumina; using reflection to fix for the
time being.
2024-09-14 10:23:24 -07:00
bleatbot
4b4227d127
Update ClientStructs (#2032)
Co-authored-by: github-actions[bot] <noreply@github.com>
2024-09-13 16:14:11 -07:00
KazWolfe
3f34fb2dd3
ci: Bump upload-artifact (#2040) 2024-09-12 22:39:43 -07:00
dependabot[bot]
f7e3156a89
Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows (#2039)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-04 07:48:52 +02:00
ItsBexy
e19f9284e5 Implement ImRaii 2024-09-03 21:28:22 -06:00
ItsBexy
bf8690fc60 Update Addon Inspector
This updates the Addon Inspector with lots of new features and functionality.

- Features from Caraxi's fork of UiDebug have been incorporated, such as the Element Selector UI and address search.
- Any addon or node can now pop out into its own window.
- Revised the visual style of node field/property information.
- Color values are now visually displayed.
- Any nodes or components that are referenced by fields within the addon will now show that field name in the inspector.
- Added editors for nodes, allowing complete control over most of their properties.
- Improved texture display for Image nodes (and Image node variant types). The active part of the texture is now highlighted, and the boundaries of other parts can be shown via mouseover.
- Highlighting of node bounds onscreen is now more accurate, factoring in rotation (including when using the Element Selector).
- Display of animation timelines has been revamped, showing a table of keyframes for each animation.

A standalone SamplePlugin-based version is available here: https://github.com/ItsBexy/UiDebug2
2024-09-02 21:01:49 -06:00
KazWolfe
0fb7585973
feat: Use Debug Command Handler for Dalamud Commands (#2018)
* feat: new command handler that works off a hook

* cr comment

* Use ClientStructs for sig
2024-08-28 13:23:39 -07:00
Infi
9de58b0cb9
Change type of JobFlags to ulong (#2035) 2024-08-27 22:46:15 +00:00
goat
27ae368690 build: 10.0.0.14 2024-08-27 20:37:09 +02:00
KazWolfe
b2166fb910
fix: Broken HoverActionKind IDs (#2034) 2024-08-27 16:39:11 +00:00
srkizer
063f58a49a
Fix GameNetwork sig (#2031)
* Fix GameNetwork sig

* Fix SigScanner and add safeguard to prevent bad jmp resolution
2024-08-27 08:33:47 -07:00
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