aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/MUDControlCentre.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/MUDControlCentre.cs')
-rw-r--r--ShiftOS.WinForms/Applications/MUDControlCentre.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.cs
index 90c0021..3fa5984 100644
--- a/ShiftOS.WinForms/Applications/MUDControlCentre.cs
+++ b/ShiftOS.WinForms/Applications/MUDControlCentre.cs
@@ -133,6 +133,20 @@ namespace ShiftOS.WinForms.Applications
{
PopulateJoinLegion(JsonConvert.DeserializeObject<List<Legion>>(msg.Contents));
}
+ else if(msg.Name == "user_shop")
+ {
+ this.Invoke(new Action(() =>
+ {
+ ShowShop(JsonConvert.DeserializeObject<Shop>(msg.Contents));
+ }));
+ }
+ else if(msg.Name == "user_noshop")
+ {
+ this.Invoke(new Action(() =>
+ {
+ Infobox.Show("No shop.", "You do not currently own any shops. You must open one to use this screen.");
+ }));
+ }
else if (msg.Name == "shop_allshops")
{
this.Invoke(new Action(() =>
@@ -720,5 +734,10 @@ Current legions: {legionname}";
}
}
+
+ private void myShopToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ ServerManager.SendMessage("user_get_shop", SaveSystem.CurrentSave.Username);
+ }
}
}