Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

CanModifyResult.Reason sometimes is not displayed #59

@ratijas

Description

@ratijas

CanModifyResult may provide a reason why an entry can not be edited at the moment. The reason is supposed to be displayed in the tooltip when hovering said entry.

However, sometimes the tooltip omits the reason as if the string didn't fit:

        public static CanModifyResult CanModifyWeightsNow()
        {
            var startOfRound = StartOfRound.Instance;
            if (!startOfRound)
            {
                return CanModifyResult.True(); // Main menu
            }
            if (!startOfRound.IsHost)
            {
                return CanModifyResult.False("Only for host");
            }
            if (!startOfRound.inShipPhase)
            {
                return CanModifyResult.False("Only in orbit");
            }
            return CanModifyResult.True();
        }

As short as these strings are, "Only for host" can be displayed, but "Only in orbit" is missing.

While not a host:

Image

While host but not in orbit:
Image

However, lowercase letters are fine:
Image

So maybe the popup is just a few pixels short to fit uppercase text? I am not experienced with Unity at all to fix it myself, unfortunately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions