mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Update ControlPanel to use the new IServerInterface
This commit is contained in:
@@ -19,7 +19,7 @@ namespace TGS.ControlPanel
|
||||
void LoadChatPage()
|
||||
{
|
||||
updatingChat = true;
|
||||
var Chat = Interface.GetComponent<ITGChat>();
|
||||
var Chat = Instance.Chat;
|
||||
var PI = Chat.ProviderInfos()[(int)ModifyingProvider];
|
||||
ChatAdminsTextBox.Visible = true;
|
||||
IRCModesComboBox.Visible = false;
|
||||
@@ -112,7 +112,7 @@ namespace TGS.ControlPanel
|
||||
|
||||
private void ChatReconnectButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
Interface.GetComponent<ITGChat>().Reconnect(ModifyingProvider);
|
||||
Instance.Chat.Reconnect(ModifyingProvider);
|
||||
LoadChatPage();
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace TGS.ControlPanel
|
||||
}
|
||||
void SetAdminsAreSpecial(bool value)
|
||||
{
|
||||
var Chat = Interface.GetComponent<ITGChat>();
|
||||
var Chat = Instance.Chat;
|
||||
var PI = Chat.ProviderInfos()[(int)ModifyingProvider];
|
||||
PI.AdminsAreSpecial = value;
|
||||
var res = Chat.SetProviderInfo(PI);
|
||||
@@ -208,7 +208,7 @@ namespace TGS.ControlPanel
|
||||
wip.Enabled = ChatEnabledCheckbox.Checked;
|
||||
wip.AdminsAreSpecial = AdminModeSpecial.Checked;
|
||||
|
||||
res = Interface.GetComponent<ITGChat>().SetProviderInfo(wip);
|
||||
res = Instance.Chat.SetProviderInfo(wip);
|
||||
}
|
||||
if (res != null)
|
||||
MessageBox.Show(res);
|
||||
|
||||
Reference in New Issue
Block a user