Toggles for handheld interactables. (#2049)
* how bout you give em a tog * two more. * boop
This commit is contained in:
@@ -60,7 +60,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
||||
{
|
||||
_checkPlayer = true;
|
||||
_position = null;
|
||||
UserInterface?.Open(session);
|
||||
UserInterface?.Toggle(session);
|
||||
UpdateUserInterface();
|
||||
Resync();
|
||||
}
|
||||
@@ -75,7 +75,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
||||
{
|
||||
_checkPlayer = false;
|
||||
_position = pos;
|
||||
UserInterface?.Open(session);
|
||||
UserInterface?.Toggle(session);
|
||||
UpdateUserInterface();
|
||||
Resync();
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ namespace Content.Server.GameObjects.Components.Instruments
|
||||
|
||||
private void OpenUserInterface(IPlayerSession session)
|
||||
{
|
||||
UserInterface?.Open(session);
|
||||
UserInterface?.Toggle(session);
|
||||
}
|
||||
|
||||
public override void Update(float delta)
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
||||
}
|
||||
|
||||
_uiDirty = true;
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Toggle(actor.playerSession);
|
||||
}
|
||||
|
||||
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace Content.Server.GameObjects.Components
|
||||
return;
|
||||
}
|
||||
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Toggle(actor.playerSession);
|
||||
|
||||
var msg = new MagicMirrorInitialDataMessage(looks.Appearance.HairColor, looks.Appearance.FacialHairColor, looks.Appearance.HairStyleName,
|
||||
looks.Appearance.FacialHairStyleName);
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
||||
return;
|
||||
}
|
||||
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Toggle(actor.playerSession);
|
||||
UpdatePDAAppearance();
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
||||
return false;
|
||||
}
|
||||
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Toggle(actor.playerSession);
|
||||
UpdatePDAAppearance();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Content.Server.GameObjects.Components.Paper
|
||||
|
||||
_mode = PaperAction.Read;
|
||||
UpdateUserInterface();
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Toggle(actor.playerSession);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Content.Server.GameObjects.Components.VendingMachines
|
||||
wires.OpenInterface(actor.playerSession);
|
||||
} else
|
||||
{
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Toggle(actor.playerSession);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user