mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 23:19:06 +00:00
normalized hud initial positions, added missing dep in a func
This commit is contained in:
parent
5ea6ef9a98
commit
86562d3be8
2 changed files with 34 additions and 33 deletions
|
@ -463,7 +463,7 @@ const InputHandler = () => {
|
||||||
// change hud while its hidden
|
// change hud while its hidden
|
||||||
setCurrentHUDElement((blue_orb_huds as BlueOrbHuds)[targetHudId]);
|
setCurrentHUDElement((blue_orb_huds as BlueOrbHuds)[targetHudId]);
|
||||||
setMediumHudText(
|
setMediumHudText(
|
||||||
(site_a as SiteData)[targetBlueOrbId]["green_text"]
|
(site_a as SiteData)[targetBlueOrbId]["green_text"]
|
||||||
);
|
);
|
||||||
// toggle it again to be shown in the new position
|
// toggle it again to be shown in the new position
|
||||||
toggleHud();
|
toggleHud();
|
||||||
|
@ -477,6 +477,7 @@ const InputHandler = () => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
setMediumHudText,
|
||||||
spriteUpdateCooldown,
|
spriteUpdateCooldown,
|
||||||
setIsSiteYChanging,
|
setIsSiteYChanging,
|
||||||
toggleHud,
|
toggleHud,
|
||||||
|
|
|
@ -35,13 +35,13 @@
|
||||||
"position": [0.5, -0.07, -8.6],
|
"position": [0.5, -0.07, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.07, -8.6]
|
"initial_position": [1.5, -0.07, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [0.35, -0.12, -8.6],
|
"position": [0.35, -0.12, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.36, -0.12, -8.6]
|
"initial_position": [1.35, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [-0.35, -0.05, -8.7],
|
"big_text": [-0.35, -0.05, -8.7],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -54,24 +54,24 @@
|
||||||
"position": [0.85, -0.09, -8.6],
|
"position": [0.85, -0.09, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [1.45, -0.09, -8.6]
|
"initial_position": [1.85, -0.09, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [-0.11, -0.07, -8.6],
|
"position": [-0.11, -0.07, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, -0.07, -8.6]
|
"initial_position": [-1.11, -0.07, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [-0.35, -0.12, -8.6],
|
"position": [-0.35, -0.12, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, -0.12, -8.6]
|
"initial_position": [-1.35, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [0.45, -0.05, -8.7],
|
"big_text": [0.45, -0.05, -8.7],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
"position": [-0.65, -0.13, -8.7],
|
"position": [-0.65, -0.13, -8.7],
|
||||||
"initial_position": [-1.18, -0.13, -8.7]
|
"initial_position": [-1.65, -0.13, -8.7]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"05": {
|
"05": {
|
||||||
|
@ -79,24 +79,24 @@
|
||||||
"position": [0.78, -0.32, -8.6],
|
"position": [0.78, -0.32, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [1.45, -0.3, -8.6]
|
"initial_position": [1.78, -0.3, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [-0.11, -0.3, -8.6],
|
"position": [-0.11, -0.3, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, -0.3, -8.6]
|
"initial_position": [-1.11, -0.3, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [-0.25, -0.28, -8.6],
|
"position": [-0.25, -0.28, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, -0.12, -8.6]
|
"initial_position": [-1.25, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [0.45, -0.32, -8.7],
|
"big_text": [0.45, -0.32, -8.7],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
"position": [-0.55, -0.32, -8.7],
|
"position": [-0.55, -0.32, -8.7],
|
||||||
"initial_position": [-1.18, -0.32, -8.7]
|
"initial_position": [-1.55, -0.32, -8.7]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"06": {
|
"06": {
|
||||||
|
@ -104,24 +104,24 @@
|
||||||
"position": [-0.43, -0.32, -8.6],
|
"position": [-0.43, -0.32, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [-1.45, -0.3, -8.6]
|
"initial_position": [-1.43, -0.3, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [0.51, -0.3, -8.6],
|
"position": [0.51, -0.3, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.3, -8.6]
|
"initial_position": [1.51, -0.3, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [0.3, -0.28, -8.6],
|
"position": [0.3, -0.28, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.12, -8.6]
|
"initial_position": [1.3, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [-0.33, -0.32, -8.7],
|
"big_text": [-0.33, -0.32, -8.7],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
"position": [0.12, -0.32, -8.7],
|
"position": [0.12, -0.32, -8.7],
|
||||||
"initial_position": [1.18, -0.32, -8.7]
|
"initial_position": [1.12, -0.32, -8.7]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"15": {
|
"15": {
|
||||||
|
@ -129,19 +129,19 @@
|
||||||
"position": [0.85, -0.09, -8.6],
|
"position": [0.85, -0.09, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [1.45, -0.09, -8.6]
|
"initial_position": [1.85, -0.09, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [-0.11, -0.07, -8.6],
|
"position": [-0.11, -0.07, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, -0.07, -8.6]
|
"initial_position": [-1.11, -0.07, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [-0.35, -0.12, -8.6],
|
"position": [-0.35, -0.12, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, -0.12, -8.6]
|
"initial_position": [-1.35, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -160,13 +160,13 @@
|
||||||
"position": [0.5, -0.07, -8.6],
|
"position": [0.5, -0.07, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.07, -8.6]
|
"initial_position": [1.5, -0.07, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [0.35, -0.12, -8.6],
|
"position": [0.35, -0.12, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.36, -0.12, -8.6]
|
"initial_position": [1.35, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -179,19 +179,19 @@
|
||||||
"position": [-0.43, -0.32, -8.6],
|
"position": [-0.43, -0.32, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [-1.45, -0.3, -8.6]
|
"initial_position": [-1.43, -0.3, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [0.51, -0.3, -8.6],
|
"position": [0.51, -0.3, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.3, -8.6]
|
"initial_position": [1.51, -0.3, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [0.3, -0.28, -8.6],
|
"position": [0.3, -0.28, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.12, -8.6]
|
"initial_position": [1.3, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -204,19 +204,19 @@
|
||||||
"position": [0.85, 0.15, -8.6],
|
"position": [0.85, 0.15, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [1.45, 0.15, -8.6]
|
"initial_position": [1.85, 0.15, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [-0.1, 0.174, -8.6],
|
"position": [-0.1, 0.174, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, 0.174, -8.6]
|
"initial_position": [-1.1, 0.174, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [-0.35, 0.13, -8.6],
|
"position": [-0.35, 0.13, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.36, 0.13, -8.6]
|
"initial_position": [-1.35, 0.13, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -235,13 +235,13 @@
|
||||||
"position": [0.5, -0.07, -8.6],
|
"position": [0.5, -0.07, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.07, -8.6]
|
"initial_position": [1.5, -0.07, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [0.35, -0.12, -8.6],
|
"position": [0.35, -0.12, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.36, -0.12, -8.6]
|
"initial_position": [1.35, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -254,19 +254,19 @@
|
||||||
"position": [0.85, 0.15, -8.6],
|
"position": [0.85, 0.15, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [1.45, 0.15, -8.6]
|
"initial_position": [1.85, 0.15, -8.6]
|
||||||
},
|
},
|
||||||
"boring": {
|
"boring": {
|
||||||
"position": [-0.1, 0.174, -8.6],
|
"position": [-0.1, 0.174, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.48, 0.174, -8.6]
|
"initial_position": [-1.1, 0.174, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [-0.35, 0.13, -8.6],
|
"position": [-0.35, 0.13, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "mirrored",
|
"type": "mirrored",
|
||||||
"initial_position": [-1.36, 0.13, -8.6]
|
"initial_position": [-1.35, 0.13, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
@ -285,13 +285,13 @@
|
||||||
"position": [0.5, -0.07, -8.6],
|
"position": [0.5, -0.07, -8.6],
|
||||||
"scale": [1, 0.03, 1],
|
"scale": [1, 0.03, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.48, -0.07, -8.6]
|
"initial_position": [1.5, -0.07, -8.6]
|
||||||
},
|
},
|
||||||
"big": {
|
"big": {
|
||||||
"position": [0.35, -0.12, -8.6],
|
"position": [0.35, -0.12, -8.6],
|
||||||
"scale": [0.5, 0.06, 1],
|
"scale": [0.5, 0.06, 1],
|
||||||
"type": "normal",
|
"type": "normal",
|
||||||
"initial_position": [1.36, -0.12, -8.6]
|
"initial_position": [1.35, -0.12, -8.6]
|
||||||
},
|
},
|
||||||
"big_text": [],
|
"big_text": [],
|
||||||
"medium_text": {
|
"medium_text": {
|
||||||
|
|
Loading…
Reference in a new issue