mirror of
https://github.com/open-goal/jak-project
synced 2026-08-18 13:53:01 -04:00
Fixed mirror world hud alignment. (#4373)
This PR fixes the hud icon positions in mirror world, resolving #4362. Now the orb and skull-gem icons are correctly positioned on the left whether or not mirror world is active. Normal: <img width="1918" height="1042" alt="Screenshot from 2026-08-03 13-01-26" src="https://github.com/user-attachments/assets/a33ef81f-43e7-4e8d-900d-2e7331588402" /> <img width="1922" height="1079" alt="Screenshot from 2026-08-03 13-05-17" src="https://github.com/user-attachments/assets/06ce1b16-7e40-44e8-a144-25d654a089c8" /> Mirror world: <img width="1924" height="1041" alt="Screenshot from 2026-08-03 12-59-31" src="https://github.com/user-attachments/assets/68ed1d70-8314-4ef0-bdac-3a7de81a2d57" /> <img width="1924" height="1078" alt="Screenshot from 2026-08-03 13-05-35" src="https://github.com/user-attachments/assets/b3b0a02c-fe11-4ed8-abe1-cbcad214379f" /> Closes #4362
This commit is contained in:
@@ -726,11 +726,10 @@
|
||||
(-> this icons s5-1 scale-y)
|
||||
(* (-> this icons s5-1 scale-x) (-> *video-params* relative-x-scale))
|
||||
1.0
|
||||
)
|
||||
(if (get-horizontal-flip-flag *blit-displays-work*)
|
||||
(set! (-> this icons s5-1 icon 0 root trans x) (the float (- 256 (-> this icons s5-1 pos x))))
|
||||
(set! (-> this icons s5-1 icon 0 root trans x) (the float (+ (-> this icons s5-1 pos x) -256)))
|
||||
)
|
||||
)
|
||||
;; og:preserve-this Corrected mirror world hud alignment
|
||||
(set! (-> this icons s5-1 icon 0 root trans x) (the float (- 256 (-> this icons s5-1 pos x))))
|
||||
(set! (-> this icons s5-1 icon 0 root trans x) (the float (+ (-> this icons s5-1 pos x) -256)))
|
||||
(set! (-> this icons s5-1 icon 0 root trans y) (the float (* (+ (-> this icons s5-1 pos y) -208) 2)))
|
||||
(set! (-> this icons s5-1 icon 0 root trans z) (the float (-> this icons s5-1 pos z)))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user