Bring HUD closer and isolate floating native menus

This commit is contained in:
ElHombreAlex committed 2026-10-03 19:17:12 +02:00
1 parent 028de594bb
commit 46102cabf7
18 files changed
+84 -22

No files matched your search

+3 -1
View File
@@ -341,7 +341,9 @@ function attachHudPass() {
// Only supplemental draw calls are suppressed; the normal game draw runs.
const symbols={hud_pass:hudPassFlag};
let code='extern unsigned int hud_pass;\n';
const names=['TabbedWindowOnRender','ChoiceBoxOnRender','MouseControlOnRender','CommandGuiRenderPause','StarMapOnRender'];
// Esc and Options are separate render methods from the ship/store tabs.
// They belong only to the normal screen capture used by the world panel.
const names=['TabbedWindowOnRender','ChoiceBoxOnRender','MouseControlOnRender','CommandGuiRenderPause','StarMapOnRender','MenuScreenOnRender','OptionsScreenOnRender'];
for (let i=0;i<names.length;i++) {
if (!config.rvas[names[i]]) throw new Error('Missing native HUD method '+names[i]);
symbols['original_'+i]=Memory.alloc(Process.pointerSize);