satiates abrahams hunger for microwave fixes
This commit is contained in:
@@ -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}";
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user