satiates abrahams hunger for microwave fixes

This commit is contained in:
FL-OZ
2020-05-22 17:22:42 -05:00
parent a1ace4b396
commit 613e1619fa
3 changed files with 8 additions and 3 deletions

View File

@@ -137,10 +137,11 @@ namespace Content.Client.GameObjects.Components.Kitchen
{ {
Text = (index <= 0 ? 1 : index).ToString(), Text = (index <= 0 ? 1 : index).ToString(),
TextAlign = Label.AlignMode.Center, TextAlign = Label.AlignMode.Center,
ToggleMode = true,
Group = CookTimeButtonGroup, Group = CookTimeButtonGroup,
}; };
CookTimeButtonVbox.AddChild(newButton); CookTimeButtonVbox.AddChild(newButton);
newButton.OnPressed += args => newButton.OnToggled += args =>
{ {
OnCookTimeSelected?.Invoke(args); OnCookTimeSelected?.Invoke(args);
_cookTimeInfoLabel.Text = $"{Loc.GetString("COOK TIME")}: {VisualCookTime}"; _cookTimeInfoLabel.Text = $"{Loc.GetString("COOK TIME")}: {VisualCookTime}";

View File

@@ -224,6 +224,8 @@ namespace Content.Server.GameObjects.Components.Kitchen
if (!itemEntity.TryGetComponent(typeof(FoodComponent), out var food)) if (!itemEntity.TryGetComponent(typeof(FoodComponent), out var food))
{ {
_notifyManager.PopupMessage(Owner, eventArgs.User, "That won't work!");
return false; return false;
} }

View File

@@ -2,7 +2,11 @@
id: KitchenMicrowave id: KitchenMicrowave
name: Microwave name: Microwave
description: It's magic. description: It's magic.
placement:
mode: SnapgridCenter
components: components:
- type: SnapGrid
offset: Center
- type: Microwave - type: Microwave
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
@@ -17,8 +21,6 @@
interfaces: interfaces:
- key: enum.MicrowaveUiKey.Key - key: enum.MicrowaveUiKey.Key
type: MicrowaveBoundUserInterface type: MicrowaveBoundUserInterface
- type: Collidable - type: Collidable
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb