Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline text bubble override produces huge margins around text #681

Open
Cjreek opened this issue Oct 31, 2024 · 0 comments
Open

Multiline text bubble override produces huge margins around text #681

Cjreek opened this issue Oct 31, 2024 · 0 comments
Labels
game Issues with the game code.

Comments

@Cjreek
Copy link

Cjreek commented Oct 31, 2024

Describe the bug

Adding new lines (\n) produces a huge margin around text bubbles. Natural line breaks don't cause this issue:

image

without manual line breaks the margin stays constant:

image

Code:

void main()
{
    object oItem = GetObjectByTag("TEST_SWORD"); 

    string sItemTooltip = "Frostwind\n";
    sItemTooltip += "Cryptic Sword\n";
    sItemTooltip += "One-Hand Damage: 16 to 251\n";
    sItemTooltip += "Durability: 44 of 44\n";
    sItemTooltip += "Required Dexterity: 109\n";
    sItemTooltip += "Required Strength: 99\n";
    sItemTooltip += "Required Level: 70\n";
    sItemTooltip += "Sword Class - Very Fast Attack Speed\n";
    sItemTooltip += "+25% increased Attack Speed\n";
    sItemTooltip += "+227% Enhanced Damage\n";
    sItemTooltip += "Adds 237-486 Cold Damage\n";
    sItemTooltip += "+10 to Arctic Blast\n";
    sItemTooltip += "Freezes Target +4\n";
    sItemTooltip += "Cold Absorb 15%\n";
    sItemTooltip += "Half Freeze Duration";

    SetObjectUiDiscoveryMask(oItem, OBJECT_UI_DISCOVERY_TEXTBUBBLE_MOUSEOVER);
    SetObjectTextBubbleOverride(oItem, OBJECT_UI_TEXT_BUBBLE_OVERRIDE_REPLACE, sItemTooltip);
}

Custom content or overrides used

No response

Game version

37-11

First seen on game version

No response

OS

Linux

Distribution

Steam

@Cjreek Cjreek added the game Issues with the game code. label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
game Issues with the game code.
Projects
None yet
Development

No branches or pull requests

1 participant