add key shortcut for teleport

This commit is contained in:
in0finite 2019-07-11 19:30:26 +02:00
parent f82245f10f
commit c37482a436
3 changed files with 7 additions and 5 deletions

View file

@ -331,9 +331,9 @@ namespace SanAndreasUnity.UI {
}
// teleport to waypoint key shortcut
// if (Input.GetKeyDown (KeyCode.T)) {
// this.TeleportToWaypoint ();
// }
if (Input.GetKeyDown (KeyCode.T)) {
this.TeleportToWaypoint ();
}
// remember last mouse position
m_lastMousePosition = Input.mousePosition;
@ -532,7 +532,7 @@ namespace SanAndreasUnity.UI {
if (GUILayout.Button ("Focus on player [F]", GUILayout.Height(25))) {
this.FocusOnPlayer ();
}
if (GUILayout.Button ("Teleport to waypoint", GUILayout.Height(25))) {
if (GUILayout.Button ("Teleport to waypoint [T]", GUILayout.Height(25))) {
this.TeleportToWaypoint ();
}
GUILayout.Space (5);

View file

@ -18,6 +18,8 @@
- vehicle states should handle situation when current vehicle is null (on client)
- play horn sound ?
***
- weapon sound should be 3d

View file

@ -24,7 +24,7 @@
- Check how much RAM textures use
- Map window: add shortcut for teleport (key 'T') ; draw vehicles ;
- Map window: draw vehicles ;
- Script execution order: HUD before pause menu and windows ; fps counter after all ;