Microwave UI + solids implemented.

This commit is contained in:
FL-OZ
2020-05-03 01:34:00 -05:00
parent dba0949c5b
commit 0f61c2fadf
8 changed files with 186 additions and 129 deletions

View File

@@ -1,8 +1,4 @@
using Robust.Client.GameObjects.Components.UserInterface;
using System;
using System.Collections.Generic;
using System.Text;
using Content.Client.GameObjects.Components.Mobs;
using Content.Shared.Kitchen;
using Robust.Shared.GameObjects.Components.UserInterface;
@@ -28,9 +24,9 @@ namespace Content.Client.GameObjects.Components.Kitchen
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
if (!(state is MicrowaveUserInterfaceState cstate))
if (!(state is MicrowaveUpdateUserInterfaceState cstate))
return;
_menu.RefreshContents(cstate.ReagentsReagents, cstate.ContainedSolids);
_menu.RefreshContentsDisplay(cstate.ReagentsReagents, cstate.ContainedSolids);
}
@@ -43,5 +39,10 @@ namespace Content.Client.GameObjects.Components.Kitchen
{
SendMessage(new SharedMicrowaveComponent.MicrowaveEjectMessage());
}
public void EjectSolidWithIndex(int index)
{
SendMessage(new SharedMicrowaveComponent.MicrowaveEjectSolidIndexedMessage(index));
}
}
}