mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Key rebinding script fixes
Fixes two issues:
-Bindings after the first page were not pointing to the correct remapping entries when actually remapping. Were populating the name and button image correctly, but first item on every page pointed to first item on first page.
-Keybinds were never being saved to file if your action maps all had long-form ("human readable") names defined.
This commit is contained in:
parent
bae7166cc0
commit
732d76d17c
2 changed files with 6 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ function fillRemapList()
|
|||
|
||||
%buttonImageAsset = getButtonBitmap(%device, getField(%keyMap, 1));
|
||||
|
||||
OptionsMenuSettingsList.addKeybindRow(getField(%keyMap, 0), %buttonImageAsset, "doKeyRemap", true, %description);
|
||||
OptionsMenuSettingsList.addKeybindRow(getField(%keyMap, 0), %buttonImageAsset, "doKeyRemap", true, %description, %i);
|
||||
}
|
||||
|
||||
//OptionsMenuSettingsList.refresh();
|
||||
|
|
@ -207,8 +207,7 @@ function controlSetChanged()
|
|||
|
||||
function doKeyRemap( %row )
|
||||
{
|
||||
%rowIndex = %row.getParent().getObjectIndex(%row);
|
||||
%rowIndex--; //Offset the rowIndex to account for controlset option
|
||||
%rowIndex = %row.remapIndex;
|
||||
%name = $RemapName[%rowIndex];
|
||||
|
||||
RemapDlg-->OptRemapText.text = "Re-bind \"" @ %name @ "\" to..." ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue