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

fix: Fixes browser open warning gump so it is dynamic #2127

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading