mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update client.tscript
Added execution of keybinds script, if generated by UI module
This commit is contained in:
parent
b3b98cd58e
commit
7b81f5de44
|
|
@ -22,8 +22,12 @@ function initClient()
|
|||
|
||||
moduleExec("initClient");
|
||||
|
||||
//keybinds stores user custom keybinds generated by the UI module (if installed), this should be the only place this is executed
|
||||
if(isScriptFile(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension))
|
||||
exec(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension);
|
||||
|
||||
// Copy saved script prefs into C++ code.
|
||||
setDefaultFov( $pref::Player::defaultFov );
|
||||
setZoomSpeed( $pref::Player::zoomSpeed );
|
||||
loadModuleMaterials();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue