mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
* it just works * why hasn't it catastrophically failed yet * not just gotta do the ui oh god the ui * that was easier than expected * a devious misdirection * touchups * svin * loc+fix * touchups * shitfix * touchups x3 * for further use * i hate this piece of shit engine * touchups x4 * ribbit also i'm retarded x2 * big tard energy * bb * rabbitson * ? * forgor * k * whoops * fug
41 lines
1.5 KiB
C#
41 lines
1.5 KiB
C#
using Content.Client._White.UserInterface;
|
|
using Content.Client.Changelog;
|
|
using Content.Client.Credits;
|
|
using Content.Shared.CCVar;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Shared.Configuration;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Localization;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Client.Info
|
|
{
|
|
public sealed class DevInfoBanner : BoxContainer
|
|
{
|
|
private WindowTracker<CreditsWindow> _creditsWindow = new(); // WWDP EDIT
|
|
public DevInfoBanner() {
|
|
var buttons = new BoxContainer
|
|
{
|
|
Orientation = LayoutOrientation.Horizontal,
|
|
};
|
|
AddChild(buttons);
|
|
|
|
var uriOpener = IoCManager.Resolve<IUriOpener>();
|
|
var cfg = IoCManager.Resolve<IConfigurationManager>();
|
|
|
|
var bugReport = cfg.GetCVar(CCVars.InfoLinksBugReport);
|
|
if (bugReport != "")
|
|
{
|
|
var reportButton = new Button { Text = Loc.GetString("server-info-report-button"), StyleClasses = { "NovaButton", } }; // WWDP EDIT
|
|
reportButton.OnPressed += args => uriOpener.OpenUri(bugReport);
|
|
buttons.AddChild(reportButton);
|
|
}
|
|
|
|
var creditsButton = new Button { Text = Loc.GetString("server-info-credits-button"), StyleClasses = { "NovaButton", } }; // WWDP EDIT
|
|
creditsButton.OnPressed += args => _creditsWindow.TryOpen(); // WWDP EDIT
|
|
buttons.AddChild(creditsButton);
|
|
}
|
|
}
|
|
}
|