Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
Fixed label issue in exosuit
  • Loading branch information
celvro committed Aug 17, 2023
1 parent 61f59cd commit 9bc3b12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file modified .vs/QuickSlotsPlus/v17/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion StandardConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class StandardConfig : ConfigFile
[Keybind("Slot 20"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey20;

[Button("Reset Keybinds", Tooltip = "Reset Keybinds to their default values. Close options menu to take effect.")]
/*[Button("Reset Keybinds", Tooltip = "Reset Keybinds to their default values. Close options menu to take effect.")]*/
public void ResetKeybinds(ButtonClickedEventArgs eventArgs)
{
Mod.Options.HotKey6 = KeyCode.Alpha6;
Expand Down
10 changes: 8 additions & 2 deletions Utility/LabelUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ public static void DrawLabels(uGUI_QuickSlots quickSlots)
{
uGUI_ItemIcon itemIcon = icons[i];
var index = i;
// Fix for Slot Extender since first 2 Prawn slots are right and left click
if (Player.main.inExosuit && !Player.main.pda.isInUse)
// Fix for slot labels since first 2 Prawn slots are right and left click
if (Player.main.inExosuit && PDAClosed())
{
/*
* LeftHand = -4,
Expand All @@ -209,6 +209,12 @@ public static void DrawLabels(uGUI_QuickSlots quickSlots)
}
}

private static bool PDAClosed()
{
PDA.State state = Player.main.pda.state;
return state == PDA.State.Closed || state == PDA.State.Closing;
}

private static TextMeshProUGUI GetTextPrefab()
{
return Object.FindObjectOfType<HandReticle>()?.compTextHand;
Expand Down

0 comments on commit 9bc3b12

Please sign in to comment.