Skip to content

Commit

Permalink
fix: Fixes browser open warning gump so it is dynamic (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Feb 17, 2025
1 parent 5251129 commit c1068c5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Projects/UOContent/Commands/Generic/Commands/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,16 @@ public void Execute(CommandEventArgs e, object obj, bool echo)
}
}

private class OpenBrowserWarningGump : StaticWarningGump<OpenBrowserWarningGump>
private class OpenBrowserWarningGump : WarningGump
{
public override string Content { get; }
public override int Width => 320;
public override int Height => 240;

public OpenBrowserWarningGump(string url, Action<bool> callback) : base(callback) =>
Content = $"A game master is requesting to open your web browser to the following URL:<br>{url}";
public OpenBrowserWarningGump(string url, Action<bool> callback) : base(
$"A game master is requesting to open your web browser to the following URL:<br>{url}",
320,
240,
callback
)
{
}
}

public override void Execute(CommandEventArgs e, object obj)
Expand Down

0 comments on commit c1068c5

Please sign in to comment.