Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Offer Bind #2422

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions Content.Client/Input/ContentContexts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static void SetupContexts(IInputContextContainer contexts)
human.AddFunction(EngineKeyFunctions.Walk);
human.AddFunction(ContentKeyFunctions.SwapHands);
human.AddFunction(ContentKeyFunctions.Drop);
human.AddFunction(ContentKeyFunctions.ItemOffer); // SS220 ItemOffer bind
human.AddFunction(ContentKeyFunctions.UseItemInHand);
human.AddFunction(ContentKeyFunctions.AltUseItemInHand);
human.AddFunction(ContentKeyFunctions.OpenCharacterMenu);
Expand Down
15 changes: 3 additions & 12 deletions Content.Client/Inventory/ClientInventorySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,24 +163,18 @@ public void SetSlotHighlight(EntityUid owner, InventorySlotsComponent component,
}

public void UpdateSlot(EntityUid owner, InventorySlotsComponent component, string slotName,
bool? blocked = null, bool? highlight = null, bool? stuckOnEquip = null)//ss220 StuckOnEquip
bool? blocked = null, bool? highlight = null)
{
var oldData = component.SlotData[slotName];
var newHighlight = oldData.Highlighted;
var newBlocked = oldData.Blocked;
var newStuckOnEquip = oldData.StuckOnEquip;//ss220 StuckOnEquip

if (blocked != null)
newBlocked = blocked.Value;

if (highlight != null)
newHighlight = highlight.Value;

//ss220 StuckOnEquip begin
if (stuckOnEquip != null)
newStuckOnEquip = stuckOnEquip.Value;
//ss220 StuckOnEquip end

var newData = component.SlotData[slotName] =
new SlotData(component.SlotData[slotName], newHighlight, newBlocked);
if (owner == _playerManager.LocalEntity)
Expand Down Expand Up @@ -261,7 +255,6 @@ public sealed class SlotData
public EntityUid? HeldEntity => Container?.ContainedEntity;
public bool Blocked;
public bool Highlighted;
public bool StuckOnEquip; //ss220 StuckOnEquip

[ViewVariables]
public ContainerSlot? Container;
Expand All @@ -275,22 +268,20 @@ public sealed class SlotData
public string FullTextureName => SlotDef.FullTextureName;

public SlotData(SlotDefinition slotDef, ContainerSlot? container = null, bool highlighted = false,
bool blocked = false, bool stuckOnEquip = false)//ss220 StuckOnEquip
bool blocked = false)
{
SlotDef = slotDef;
Highlighted = highlighted;
Blocked = blocked;
Container = container;
StuckOnEquip = stuckOnEquip; //ss220 StuckOnEquip
}

public SlotData(SlotData oldData, bool highlighted = false, bool blocked = false, bool stuckOnEquip = false)//ss220 StuckOnEquip
public SlotData(SlotData oldData, bool highlighted = false, bool blocked = false)
{
SlotDef = oldData.SlotDef;
Highlighted = highlighted;
Container = oldData.Container;
Blocked = blocked;
StuckOnEquip = stuckOnEquip; //ss220 StuckOnEquip
}

public static implicit operator SlotData(SlotDefinition s)
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ void AddCheckBox(string checkBoxName, bool currentState, Action<BaseButton.Butto
AddButton(ContentKeyFunctions.ActivateItemInWorld);
AddButton(ContentKeyFunctions.AltActivateItemInWorld);
AddButton(ContentKeyFunctions.Drop);
AddButton(ContentKeyFunctions.ItemOffer); // SS220 ItemOffer bind
AddButton(ContentKeyFunctions.ExamineEntity);
AddButton(ContentKeyFunctions.SwapHands);
AddButton(ContentKeyFunctions.MoveStoredItem);
Expand Down
38 changes: 0 additions & 38 deletions Content.Client/SS220/Bible/ExorcismPerformerSystem.cs

This file was deleted.

51 changes: 0 additions & 51 deletions Content.Client/SS220/Bible/UI/ExorcismBoundUserInterface.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Content.Client/SS220/Bible/UI/ExorcismMenu.xaml

This file was deleted.

76 changes: 0 additions & 76 deletions Content.Client/SS220/Bible/UI/ExorcismMenu.xaml.cs

This file was deleted.

15 changes: 0 additions & 15 deletions Content.Client/SS220/CultYogg/Altar/CultYoggAltarSystem.cs

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading