Skip to content

Commit

Permalink
Revert "Revert "multi page action bar (Goob-Station#469)"" (Goob-Stat…
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeHammad1844 authored Nov 30, 2024
1 parent 3c1fe0e commit 94942d0
Show file tree
Hide file tree
Showing 11 changed files with 323 additions and 73 deletions.
5 changes: 5 additions & 0 deletions Content.Client/Input/ContentContexts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public static void SetupContexts(IInputContextContainer contexts)
{
common.AddFunction(boundKey);
}
// goobstation
foreach (var boundKey in ContentKeyFunctions.GetLoadoutBoundKeys())
{
common.AddFunction(boundKey);
}

var aghost = contexts.New("aghost", "common");
aghost.AddFunction(EngineKeyFunctions.MoveUp);
Expand Down
5 changes: 5 additions & 0 deletions Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ void AddCheckBox(string checkBoxName, bool currentState, Action<BaseButton.Butto
{
AddButton(boundKey);
}
// goobstation
foreach (var boundKey in ContentKeyFunctions.GetLoadoutBoundKeys())
{
AddButton(boundKey);
}

AddHeader("ui-options-header-shuttle");
AddButton(ContentKeyFunctions.ShuttleStrafeUp);
Expand Down
6 changes: 4 additions & 2 deletions Content.Client/UserInterface/Screens/DefaultGameScreen.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
<!-- Buffer so big votes don't skew it -->
<Control/>
</BoxContainer>
<BoxContainer Name="VoteMenu" Access="Public" Margin="0 10 0 10" Orientation="Vertical"/>
<actions:ActionsBar Name="Actions" Access="Protected" />
<BoxContainer Orientation="Horizontal"> <!--goobstation-->
<actions:ActionsBar Name="Actions" Access="Protected" />
<BoxContainer Name="VoteMenu" Access="Public" Margin="0 10 0 10" Orientation="Vertical"/>
</BoxContainer>
</BoxContainer>
<widgets:GhostGui Name="Ghost" Access="Protected" />
<inventory:InventoryGui Name="Inventory" Access="Protected" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<inventory:InventoryGui Name="Inventory" Access="Protected"/>
<hotbar:HotbarGui Name="Hotbar" Access="Protected"/>
<targeting:TargetingControl Name="Targeting" Access="Protected"/> <!-- Shitmed Change -->
<BoxContainer Name="TopLeftContainer" Orientation="Vertical">
<actions:ActionsBar Name="Actions" Access="Protected" />
<BoxContainer Name="TopLeftContainer" Orientation="Horizontal"> <!--goobstation-->
<actions:ActionsBar Name="Actions" Access="Protected" />
<BoxContainer Name="VoteMenu" Access="Public" Orientation="Vertical"/>
</BoxContainer>
<alerts:AlertsUI Name="Alerts" Access="Protected" />
Expand Down
Loading

0 comments on commit 94942d0

Please sign in to comment.