SpireLens builds and runs on the v0.113.1 beta, which dropped HoverTipAlignment.Center #395

Merged
merge-queue merged 3 commits from SPIRELENS-103-tooltip-below into main 2026-11-24 07:09:04 -08:00
Owner

SpireLens builds and runs on the Slay the Spire 2 v0.113.1 public beta, which removed HoverTipAlignment.Center. Work package: https://openproject.home.romaine.life/wp/SPIRELENS-103

The beta replaces Center with NHoverTipSet.SetAlignmentBelow(Vector2), which its own NPotionHolder now uses at the same position SpireLens computes (GlobalPosition + Down * Size.Y * max(1.5, Scale.Y)). Stable still has only Center.

Changed, in the pinned potion tooltip (StatsTooltipPinManager):

  • CreateAndShow takes no alignment (the overload exists on both builds); AlignPotionTipSet places the tips.
  • AlignPotionTipSet calls SetAlignmentBelow when the running game has it, found by reflection once; otherwise it sets the position and Center, parsed by name so the code compiles against either sts2.dll.

Also changed: MembershipCardStatsTests.Patch_TargetsBothPurchaseWrappersAndThePurchaseHook named OnTryPurchaseWrapper, which v0.113 removed, so the test project didn't compile against v0.113. It now finds the purchase method by name, as MerchantPurchaseApi does (OnTryPurchaseUnsynchronized on v0.113+, OnTryPurchaseWrapper and the removal overload before). PotionRunHistoryTooltipTests.ExplosiveAmpouleDamagePatch_TargetsFinalMultiTargetDamageCommand asserted the pre-v0.113 creature-list Damage overload, which v0.113.1 lacks; it now finds whichever overload CreatureDamageFunnel targets. Both use plain reflection, because the Harmony lookups don't initialize in the test host against the checked-in DLL.

Left alone: every other tooltip alignment (Left/Right exist on both).

Core and the tests build, and the two changed tests pass, against both the installed beta and the checked-in lib/sts2.dll. The full .NET suite passes against the beta (ci-check). Not verified in game.

Workshop notes

  • Works on the v0.113.1 public beta: potion stat tooltips build and position as the game's own do.

🤖 Generated with Claude Code

SpireLens builds and runs on the Slay the Spire 2 v0.113.1 public beta, which removed `HoverTipAlignment.Center`. Work package: https://openproject.home.romaine.life/wp/SPIRELENS-103 The beta replaces `Center` with `NHoverTipSet.SetAlignmentBelow(Vector2)`, which its own `NPotionHolder` now uses at the same position SpireLens computes (`GlobalPosition + Down * Size.Y * max(1.5, Scale.Y)`). Stable still has only `Center`. Changed, in the pinned potion tooltip (`StatsTooltipPinManager`): - `CreateAndShow` takes no alignment (the overload exists on both builds); `AlignPotionTipSet` places the tips. - `AlignPotionTipSet` calls `SetAlignmentBelow` when the running game has it, found by reflection once; otherwise it sets the position and `Center`, parsed by name so the code compiles against either `sts2.dll`. Also changed: `MembershipCardStatsTests.Patch_TargetsBothPurchaseWrappersAndThePurchaseHook` named `OnTryPurchaseWrapper`, which v0.113 removed, so the test project didn't compile against v0.113. It now finds the purchase method by name, as `MerchantPurchaseApi` does (`OnTryPurchaseUnsynchronized` on v0.113+, `OnTryPurchaseWrapper` and the removal overload before). `PotionRunHistoryTooltipTests.ExplosiveAmpouleDamagePatch_TargetsFinalMultiTargetDamageCommand` asserted the pre-v0.113 creature-list `Damage` overload, which v0.113.1 lacks; it now finds whichever overload `CreatureDamageFunnel` targets. Both use plain reflection, because the Harmony lookups don't initialize in the test host against the checked-in DLL. Left alone: every other tooltip alignment (Left/Right exist on both). Core and the tests build, and the two changed tests pass, against both the installed beta and the checked-in `lib/sts2.dll`. The full .NET suite passes against the beta (`ci-check`). Not verified in game. ## Workshop notes - Works on the v0.113.1 public beta: potion stat tooltips build and position as the game's own do. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The damage-target test finds whichever damage overload the build ends in (SPIRELENS-103)
All checks were successful
Suite release / home-sync (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 5s
Suite release / reused-checks (pull_request) Successful in 5s
Suite dotnet / check-test-windows (pull_request) Successful in 1m48s
Suite dotnet / scope (pull_request) Successful in 6s
Suite default / scope (pull_request) Successful in 6s
Suite go / scope (pull_request) Successful in 6s
Suite dotnet / check-test-linux (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / dispatch (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite go / check-format (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 6s
Suite release / check-build (dotnet, windows-latest) (, dotnet, false, windows-latest, , dotnet) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / build (dotnet, windows-latest) (, dotnet, false, windows-latest, , dotnet) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Successful in 49s
Suite go / check-test-linux (pull_request) Successful in 8s
Suite go / reused-checks (pull_request) Successful in 6s
Suite dotnet / reused-checks (pull_request) Successful in 7s
merge-queue landed on main
e5a2a7114c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merge-queue deleted branch SPIRELENS-103-tooltip-below 2026-11-24 07:09:04 -08:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!395
No description provided.