mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-16 21:17:39 +03:00
Use ServerName instead LabelName
This commit is contained in:
@@ -56,6 +56,13 @@ namespace Content.Client.Lobby
|
||||
_voteManager.SetPopupContainer(Lobby.VoteContainer);
|
||||
LayoutContainer.SetAnchorPreset(Lobby, LayoutContainer.LayoutPreset.Wide);
|
||||
|
||||
var lobbyNameCvar = _cfg.GetCVar(CCVars.ServerLobbyName);
|
||||
var serverName = _baseClient.GameInfo?.ServerName ?? string.Empty;
|
||||
|
||||
Lobby.ServerName.Text = string.IsNullOrEmpty(lobbyNameCvar)
|
||||
? Loc.GetString("ui-lobby-title", ("serverName", serverName))
|
||||
: lobbyNameCvar;
|
||||
|
||||
var width = _cfg.GetCVar(CCVars.ServerLobbyRightPanelWidth);
|
||||
Lobby.RightSide.SetWidth = width;
|
||||
|
||||
@@ -204,9 +211,6 @@ namespace Content.Client.Lobby
|
||||
|
||||
if (_gameTicker.ServerInfoBlob != null)
|
||||
Lobby!.ServerInfo.SetInfoBlob(_gameTicker.ServerInfoBlob);
|
||||
|
||||
Lobby!.LabelName.SetMarkup("[font=\"Bedstead\" size=20] White Dream [/font]"); // WD EDIT
|
||||
//Lobby!.ChangelogLabel.SetMarkup(Loc.GetString("ui-lobby-changelog")); // WD EDIT
|
||||
}
|
||||
|
||||
private void UpdateLobbySoundtrackInfo(LobbySoundtrackChangedEvent ev)
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0 8" />
|
||||
<!-- Vertical Padding -->
|
||||
<Control VerticalExpand="True" />
|
||||
<RichTextLabel Name="LabelName" Access="Public" HorizontalAlignment="Left"
|
||||
<RichTextLabel Name="ServerName" Access="Public" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center" Margin="20 0 0 420" />
|
||||
<!-- Left Bot Panel -->
|
||||
<PanelContainer Name="BottomLeftPanel" HorizontalAlignment="Left" VerticalAlignment="Bottom">
|
||||
<BoxContainer Orientation="Vertical" SeparationOverride="4" Margin="2"> <!-- wwdp edit start -->
|
||||
<BoxContainer Orientation="Vertical" SeparationOverride="4" Margin="2">
|
||||
<BoxContainer Orientation="Horizontal" SeparationOverride="4" Margin="6,8,6,8">
|
||||
<wdcontrols:CvarToggleableBoxContainer CVar="white.funny_features_enabled" Flip="True">
|
||||
<buttons:ViewPremiumInfoButton StyleClasses="NovaButton" SetSize="154 64">
|
||||
@@ -51,7 +51,7 @@
|
||||
</BoxContainer>
|
||||
</PanelContainer>
|
||||
</BoxContainer>
|
||||
</BoxContainer> <!-- wwdp edit end -->
|
||||
</BoxContainer>
|
||||
</PanelContainer>
|
||||
<!-- Left Panel -->
|
||||
<PanelContainer HorizontalAlignment="Left" Name="Center" VerticalAlignment="Center">
|
||||
|
||||
@@ -46,7 +46,7 @@ public sealed partial class CCVars
|
||||
/// If empty, the title will be {ui-lobby-title} + the server's full name from the hub
|
||||
/// </summary>
|
||||
public static readonly CVarDef<string> ServerLobbyName =
|
||||
CVarDef.Create("server.lobby_name", "", CVar.REPLICATED | CVar.SERVER);
|
||||
CVarDef.Create("server.lobby_name", "[font=\"Bedstead\" size=20] White Dream [/font]", CVar.REPLICATED | CVar.SERVER); // WD EDIT
|
||||
|
||||
/// <summary>
|
||||
/// The width of the right side (chat) panel in the lobby
|
||||
|
||||
Reference in New Issue
Block a user