Skip to content

Commit

Permalink
Added support for WoW mainline (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kittoes0124 authored Jan 2, 2024
1 parent 6fab519 commit 0b58a01
Show file tree
Hide file tree
Showing 10 changed files with 403 additions and 525 deletions.
27 changes: 6 additions & 21 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"Lua.diagnostics.globals": [
"ActionBarDownButton",
"ActionBarUpButton",
"ActionButton5",
"ActionButton9",
"ActionButton11",
"CameraZoomIn",
"CameraZoomOut",
"CastingBarFrame",
"CharacterMicroButton",
"ClearOverrideBindings",
"CreateColorFromBytes",
Expand All @@ -14,46 +16,29 @@
"C_Timer",
"C_Widget",
"ExecuteFrameScript",
"FramerateText",
"GetScreenHeight",
"GetScreenWidth",
"HelpMicroButton",
"IsChatAFK",
"InCombatLockdown",
"MainMenuBar",
"MainMenuBarBackpackButton",
"MainMenuBarLeftEndCap",
"MainMenuBarPageNumber",
"MainMenuBarPerformanceBarFrame",
"MainMenuBarRightEndCap",
"MainMenuBarTexture0",
"MainMenuBarTexture1",
"MainMenuBarTexture2",
"MainMenuBarTexture3",
"MainMenuExpBar",
"MainMenuMicroButton",
"MainMenuXPBarTexture0",
"MainMenuXPBarTexture1",
"MainMenuXPBarTexture2",
"MainMenuXPBarTexture3",
"PetActionBarFrame",
"PetActionButton1",
"QuestLogMicroButton",
"RegisterAttributeDriver",
"ReputationWatchBar",
"ResetView",
"SaveView",
"SetOverrideBinding",
"SetOverrideBindingClick",
"SetView",
"SlidingActionBarTexture0",
"SlidingActionBarTexture1",
"SocialsMicroButton",
"SpellbookMicroButton",
"StanceBarFrame",
"TalentMicroButton",
"UIPanelWindows",
"UIParent",
"WorldMapMicroButton"
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
]
}
841 changes: 355 additions & 486 deletions ByteTerrace_GamePadActionBars.lua

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ByteTerrace_GamePadActionBars_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## Interface: 100200
## Notes: Pardon all the dust!
## OptionalDeps: ConsolePad_Cursor, Immersion
## SavedVariables: ByteTerrace_GamePadActionBars
## Title: GamePadActionBars
## Version: 0.0.0-alpha

Expand Down
1 change: 1 addition & 0 deletions ByteTerrace_GamePadActionBars_Vanilla.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## Interface: 11500
## Notes: Pardon all the dust!
## OptionalDeps: ConsolePad_Cursor, Immersion
## SavedVariables: ByteTerrace_GamePadActionBars
## Title: GamePadActionBars
## Version: 0.0.0-alpha

Expand Down
Binary file added Documentation/Images/State1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/Images/State2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/Images/State3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/Images/State4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/Images/State5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 40 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## GamePadActionBars
A lightweight mod that grants efficient access to up to 53 of your existing action buttons by intuitively reorganizing the main action bar and mapping gamepad shoulder inputs to action bar swaps.
A lightweight mod that grants efficient access to 65 different bindings by mapping gamepad shoulder inputs to action bar swaps and intuitively reorganizing the main action bar.

### _How does it work?_
The mod sets up temporary bindings using a hidden secure button frame that captures the shoulder trigger (`PADLTRIGGER`/`PADRTRIGGER`) inputs. The driver can be in one of 5 states:
The mod sets up temporary bindings using a secure button frame that captures the shoulder trigger (`PADLTRIGGER`/`PADRTRIGGER`) inputs. The driver can be in one of 5 states:

1. **no** trigger held
2. **only** `PADLTRIGGER` held
Expand All @@ -12,19 +12,41 @@ The mod sets up temporary bindings using a hidden secure button frame that captu

These states map to their corresponding action bar page in the World of Warcraft UI, along with a set of predefined bindings that are outlined in the table below.

| GamePad Button Name | State 1 Binding Name | State 2 Binding Name | State 3 Binding Name | State 4-5 Binding Name |
| ------------------- | ----------------------- | ----------------------- | -------------------- | ---------------------- |
| `PADSELECT` | **TOGGLEWORLDMAP** | **TOGGLESOCIAL** | **TOGGLECHARACTER0** | **TOGGLEWORLDMAP** |
| `PADSTART` | TOGGLEGAMEMENU | TOGGLEGAMEMENU | TOGGLEGAMEMENU | TOGGLEGAMEMENU |
| `PADDUP` | ACTIONBUTTON1 | ACTIONBUTTON1 | ACTIONBUTTON1 | ACTIONBUTTON1 |
| `PADDRIGHT` | ACTIONBUTTON2 | ACTIONBUTTON2 | ACTIONBUTTON2 | ACTIONBUTTON2 |
| `PADDDOWN` | ACTIONBUTTON3 | ACTIONBUTTON3 | ACTIONBUTTON3 | ACTIONBUTTON3 |
| `PADDLEFT` | ACTIONBUTTON4 | ACTIONBUTTON4 | ACTIONBUTTON4 | ACTIONBUTTON4 |
| `PADLSHOULDER` | **TARGETNEARESTENEMY** | **TARGETNEARESTFRIEND** | **TOGGLESHEATH** | ACTIONBUTTON5 |
| `PADLSTICK` | ACTIONBUTTON6 | ACTIONBUTTON6 | ACTIONBUTTON6 | ACTIONBUTTON6 |
| `PAD4` | ACTIONBUTTON7 | ACTIONBUTTON7 | ACTIONBUTTON7 | ACTIONBUTTON7 |
| `PAD3` | ACTIONBUTTON8 | ACTIONBUTTON8 | ACTIONBUTTON8 | ACTIONBUTTON8 |
| `PAD1` | **JUMP** | ACTIONBUTTON9 | ACTIONBUTTON9 | ACTIONBUTTON9 |
| `PAD2` | ACTIONBUTTON10 | ACTIONBUTTON10 | ACTIONBUTTON10 | ACTIONBUTTON10 |
| `PADRSHOULDER` | **INTERACTMOUSEOVER** | **TOGGLEAUTORUN** | **FLIPCAMERAYAW** | ACTIONBUTTON11 |
| `PADRSTICK` | ACTIONBUTTON12 | ACTIONBUTTON12 | ACTIONBUTTON12 | ACTIONBUTTON12 |
| GamePad Button Name | State 1 Binding | State 2 Binding | State 3 Binding | State 4 Binding | State 5 Binding |
| ------------------- | ---------------------- | ------------------------ | ------------------------- | ------------------ | ------------------- |
| `PADSELECT` | **TOGGLEWORLDMAP** | **OPENALLBAGS** | **TOGGLECHARACTER0** | **TOGGLESOCIAL** | **TOGGLESPELLBOOK** |
| `PADSTART` | TOGGLEGAMEMENU | TOGGLEGAMEMENU | TOGGLEGAMEMENU | TOGGLEGAMEMENU | TOGGLEGAMEMENU |
| `PADDUP` | ACTIONBUTTON1 | BOTTOMLEFTACTIONBUTTON1 | BOTTOMRIGHTACTIONBUTTON1 | LEFTACTIONBUTTON1 | RIGHTACTIONBUTTON1 |
| `PADDRIGHT` | ACTIONBUTTON2 | BOTTOMLEFTACTIONBUTTON2 | BOTTOMRIGHTACTIONBUTTON2 | LEFTACTIONBUTTON2 | RIGHTACTIONBUTTON2 |
| `PADDDOWN` | ACTIONBUTTON3 | BOTTOMLEFTACTIONBUTTON3 | BOTTOMRIGHTACTIONBUTTON3 | LEFTACTIONBUTTON3 | RIGHTACTIONBUTTON3 |
| `PADDLEFT` | ACTIONBUTTON4 | BOTTOMLEFTACTIONBUTTON4 | BOTTOMRIGHTACTIONBUTTON4 | LEFTACTIONBUTTON4 | RIGHTACTIONBUTTON4 |
| `PADLSHOULDER` | **TARGETNEARESTENEMY** | **TARGETNEARESTFRIEND** | **UNBOUND** | LEFTACTIONBUTTON5 | RIGHTACTIONBUTTON5 |
| `PADLSTICK` | ACTIONBUTTON6 | BOTTOMLEFTACTIONBUTTON6 | BOTTOMRIGHTACTIONBUTTON6 | LEFTACTIONBUTTON6 | RIGHTACTIONBUTTON6 |
| `PAD4` | ACTIONBUTTON7 | BOTTOMLEFTACTIONBUTTON7 | BOTTOMRIGHTACTIONBUTTON7 | LEFTACTIONBUTTON7 | RIGHTACTIONBUTTON7 |
| `PAD3` | ACTIONBUTTON8 | BOTTOMLEFTACTIONBUTTON8 | BOTTOMRIGHTACTIONBUTTON8 | LEFTACTIONBUTTON8 | RIGHTACTIONBUTTON8 |
| `PAD1` | **JUMP** | BOTTOMLEFTACTIONBUTTON9 | BOTTOMRIGHTACTIONBUTTON9 | LEFTACTIONBUTTON9 | RIGHTACTIONBUTTON9 |
| `PAD2` | ACTIONBUTTON10 | BOTTOMLEFTACTIONBUTTON10 | BOTTOMRIGHTACTIONBUTTON10 | LEFTACTIONBUTTON10 | RIGHTACTIONBUTTON10 |
| `PADRSHOULDER` | **INTERACTMOUSEOVER** | **TOGGLEAUTORUN** | **FLIPCAMERAYAW** | LEFTACTIONBUTTON11 | RIGHTACTIONBUTTON11 |
| `PADRSTICK` | ACTIONBUTTON12 | BOTTOMLEFTACTIONBUTTON12 | BOTTOMRIGHTACTIONBUTTON12 | LEFTACTIONBUTTON12 | RIGHTACTIONBUTTON12 |

### _Screenshots_

**State 1 Example:**

![](/Documentation/Images/State1.png)

**State 2 Example:**

![](/Documentation/Images/State2.png)

**State 3 Example:**

![](/Documentation/Images/State3.png)

**State 4 Example:**

![](/Documentation/Images/State4.png)

**State 5 Example:**

![](/Documentation/Images/State5.png)

0 comments on commit 0b58a01

Please sign in to comment.