упс
This commit is contained in:
parent
eb92783292
commit
d90d32f843
3 changed files with 1 additions and 9 deletions
|
|
@ -59,6 +59,7 @@ namespace Content.Client.Info
|
|||
};
|
||||
roadmapButton.OnPressed += _ => UserInterfaceManager.GetUIController<RoadmapUIController>().ToggleRoadmap();
|
||||
buttons.AddChild(roadmapButton);
|
||||
AddInfoButton("ui-lobby-replays-button", SunriseCCVars.InfoLinksReplays);
|
||||
// Sunrise-End
|
||||
|
||||
void AddInfoButton(string loc, CVarDef<string> cVar)
|
||||
|
|
|
|||
|
|
@ -180,8 +180,6 @@
|
|||
<Button Name="MHelpButton" Access="Public" Text="{Loc 'ui-lobby-mhelp-button'}"
|
||||
StyleClasses="ButtonBig"/>
|
||||
<vote:VoteCallMenuButton Name="CallVoteButton" StyleClasses="ButtonBig" />
|
||||
<Button Name="ReplaysButton" Access="Public" Text="{Loc 'ui-lobby-replays-button'}"
|
||||
StyleClasses="ButtonBig"/>
|
||||
<Button Name="OptionsButton" Access="Public" Text="{Loc 'ui-lobby-options-button'}"
|
||||
StyleClasses="ButtonBig"/>
|
||||
<Button Name="LeaveButton" Access="Public" Text="{Loc 'ui-lobby-leave-button'}"
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ namespace Content.Client.Lobby.UI
|
|||
|
||||
LeaveButton.OnPressed += _ => _consoleHost.ExecuteCommand("disconnect");
|
||||
OptionsButton.OnPressed += _ => UserInterfaceManager.GetUIController<OptionsUIController>().ToggleWindow();
|
||||
ReplaysButton.OnPressed += _ => _uriOpener.OpenUri(_configurationManager.GetCVar(SunriseCCVars.InfoLinksReplays));
|
||||
|
||||
//CollapseButton.OnPressed += _ => TogglePanel(false);
|
||||
//ExpandButton.OnPressed += _ => TogglePanel(true);
|
||||
|
|
@ -149,7 +148,6 @@ namespace Content.Client.Lobby.UI
|
|||
_configurationManager.OnValueChanged(SunriseCCVars.ServersHubEnable, OnServersHubEnableChanged, true);
|
||||
_configurationManager.OnValueChanged(SunriseCCVars.ServiceAuthEnabled, OnServiceAuthEnableChanged, true);
|
||||
_configurationManager.OnValueChanged(SunriseCCVars.ServerName, OnServerNameChanged, true);
|
||||
_configurationManager.OnValueChanged(SunriseCCVars.InfoLinksReplays, OnReplaysLinkChanged, true);
|
||||
|
||||
Chat.SetChatOpacity();
|
||||
|
||||
|
|
@ -220,11 +218,6 @@ namespace Content.Client.Lobby.UI
|
|||
{
|
||||
UserProfileBox.Visible = enable;
|
||||
}
|
||||
|
||||
private void OnReplaysLinkChanged(string replaysUrl)
|
||||
{
|
||||
ReplaysButton.Visible = !string.IsNullOrEmpty(replaysUrl);
|
||||
}
|
||||
// Sunrise-End
|
||||
|
||||
private void OnLobbyOpacityChanged(float opacity)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue