Multiplayer icon indicating copy to clipboard operation
Multiplayer copied to clipboard

Add a warning about rituals if Prepatcher is not active #501

Open SirrWilliam opened this issue 5 months ago • 2 comments

#501

https://github.com/user-attachments/assets/2fe885d2-125d-4fcb-b6b3-6d3b11e63a3b

  • The box height adjusts based on the translation length.
  • Clicking it triggers the action described in the tooltip (except for in-game restart)
  • Only visible in the server browser and in-game host window.
  • Currently, there's no check for DLCs, but I can implement it if necessary.

Extensions.cs changes:

  • I added a RemoveRichTextTags() method to Extensions.cs, because Text.CalcHeight() doesn't work properly with rich text, and it also causes unnecessary spacing, which can make the box taller than it needs to be.

SirrWilliam avatar Jul 19 '25 20:07 SirrWilliam

Is this purely 1.5 or is there a working prepatcher for 1.6?

notfood avatar Jul 20 '25 00:07 notfood

It's for 1.6, but I think it might also work on 1.5. There is no Prepatcher for 1.6 yet. If the Prepatcher is still not available when the mod is ready for 1.6, we can disable the warning or we can just wait until Prepatcher is released for 1.6.

SirrWilliam avatar Jul 20 '25 06:07 SirrWilliam