load arrow textures

This commit is contained in:
in0finite 2019-07-23 16:29:16 +02:00
parent cb7c1418d2
commit da20c52e05
3 changed files with 13 additions and 1 deletions

View file

@ -406,6 +406,13 @@ namespace SanAndreasUnity.Behaviours
// fist texture
Weapon.FistTexture = TextureDictionary.Load("hud").GetDiffuse("fist").Texture;
// arrow textures
var pcbtnsTxd = TextureDictionary.Load("pcbtns");
UI.HUD.LeftArrowTexture = pcbtnsTxd.GetDiffuse("left").Texture;
UI.HUD.RightArrowTexture = pcbtnsTxd.GetDiffuse("right").Texture;
UI.HUD.UpArrowTexture = pcbtnsTxd.GetDiffuse("up").Texture;
UI.HUD.DownArrowTexture = pcbtnsTxd.GetDiffuse("down").Texture;
}

View file

@ -21,6 +21,11 @@ namespace SanAndreasUnity.UI {
public bool drawRedDotOnScreenCenter = false;
public static Texture2D LeftArrowTexture { get; set; }
public static Texture2D RightArrowTexture { get; set; }
public static Texture2D UpArrowTexture { get; set; }
public static Texture2D DownArrowTexture { get; set; }
void Awake () {

View file

@ -27,7 +27,7 @@
- Chat
- Android: touch input is required ; HUD must run before other UI scripts ; add perms for read/write access to storage ; forbid screen rotation ; vibrate when ped is damaged ; disable left and right mouse click ;
- Android: HUD must run before other UI scripts ; add perms for read/write access to storage ; forbid screen rotation ; vibrate when ped is damaged ; disable left and right mouse click ; vehicle touch input: forward, backward, handbrake, left & right ; weapon switching buttons ; states to implement hud: fly, ; circular button for movement ; buttons which don't work: aim, sprint, walk ;
- Play sounds: horn ; empty weapon slot ; ped damage ; footsteps in run and sprint states ;