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;
|
_checkPlayer = true;
|
||||||
_position = null;
|
_position = null;
|
||||||
UserInterface?.Open(session);
|
UserInterface?.Toggle(session);
|
||||||
UpdateUserInterface();
|
UpdateUserInterface();
|
||||||
Resync();
|
Resync();
|
||||||
}
|
}
|
||||||
@@ -75,7 +75,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
|||||||
{
|
{
|
||||||
_checkPlayer = false;
|
_checkPlayer = false;
|
||||||
_position = pos;
|
_position = pos;
|
||||||
UserInterface?.Open(session);
|
UserInterface?.Toggle(session);
|
||||||
UpdateUserInterface();
|
UpdateUserInterface();
|
||||||
Resync();
|
Resync();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ namespace Content.Server.GameObjects.Components.Instruments
|
|||||||
|
|
||||||
private void OpenUserInterface(IPlayerSession session)
|
private void OpenUserInterface(IPlayerSession session)
|
||||||
{
|
{
|
||||||
UserInterface?.Open(session);
|
UserInterface?.Toggle(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Update(float delta)
|
public override void Update(float delta)
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
|||||||
}
|
}
|
||||||
|
|
||||||
_uiDirty = true;
|
_uiDirty = true;
|
||||||
UserInterface?.Open(actor.playerSession);
|
UserInterface?.Toggle(actor.playerSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
|
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ namespace Content.Server.GameObjects.Components
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
UserInterface?.Open(actor.playerSession);
|
UserInterface?.Toggle(actor.playerSession);
|
||||||
|
|
||||||
var msg = new MagicMirrorInitialDataMessage(looks.Appearance.HairColor, looks.Appearance.FacialHairColor, looks.Appearance.HairStyleName,
|
var msg = new MagicMirrorInitialDataMessage(looks.Appearance.HairColor, looks.Appearance.FacialHairColor, looks.Appearance.HairStyleName,
|
||||||
looks.Appearance.FacialHairStyleName);
|
looks.Appearance.FacialHairStyleName);
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
UserInterface?.Open(actor.playerSession);
|
UserInterface?.Toggle(actor.playerSession);
|
||||||
UpdatePDAAppearance();
|
UpdatePDAAppearance();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
UserInterface?.Open(actor.playerSession);
|
UserInterface?.Toggle(actor.playerSession);
|
||||||
UpdatePDAAppearance();
|
UpdatePDAAppearance();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace Content.Server.GameObjects.Components.Paper
|
|||||||
|
|
||||||
_mode = PaperAction.Read;
|
_mode = PaperAction.Read;
|
||||||
UpdateUserInterface();
|
UpdateUserInterface();
|
||||||
UserInterface?.Open(actor.playerSession);
|
UserInterface?.Toggle(actor.playerSession);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ namespace Content.Server.GameObjects.Components.VendingMachines
|
|||||||
wires.OpenInterface(actor.playerSession);
|
wires.OpenInterface(actor.playerSession);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
UserInterface?.Open(actor.playerSession);
|
UserInterface?.Toggle(actor.playerSession);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user