mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 03:53:04 +00:00
load arrow textures
This commit is contained in:
parent
cb7c1418d2
commit
da20c52e05
3 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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 ;
|
||||
|
||||
|
|
Loading…
Reference in a new issue