SpireLens builds and runs on the v0.113.1 beta, which dropped HoverTipAlignment.Center #395
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!395
Loading…
Reference in a new issue
No description provided.
Delete branch "SPIRELENS-103-tooltip-below"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-103The beta replaces
CenterwithNHoverTipSet.SetAlignmentBelow(Vector2), which its ownNPotionHoldernow uses at the same position SpireLens computes (GlobalPosition + Down * Size.Y * max(1.5, Scale.Y)). Stable still has onlyCenter.Changed, in the pinned potion tooltip (
StatsTooltipPinManager):CreateAndShowtakes no alignment (the overload exists on both builds);AlignPotionTipSetplaces the tips.AlignPotionTipSetcallsSetAlignmentBelowwhen the running game has it, found by reflection once; otherwise it sets the position andCenter, parsed by name so the code compiles against eithersts2.dll.Also changed:
MembershipCardStatsTests.Patch_TargetsBothPurchaseWrappersAndThePurchaseHooknamedOnTryPurchaseWrapper, which v0.113 removed, so the test project didn't compile against v0.113. It now finds the purchase method by name, asMerchantPurchaseApidoes (OnTryPurchaseUnsynchronizedon v0.113+,OnTryPurchaseWrapperand the removal overload before).PotionRunHistoryTooltipTests.ExplosiveAmpouleDamagePatch_TargetsFinalMultiTargetDamageCommandasserted the pre-v0.113 creature-listDamageoverload, which v0.113.1 lacks; it now finds whichever overloadCreatureDamageFunneltargets. 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
🤖 Generated with Claude Code