stone of agony folly the interface too.

This commit is contained in:
Baoulettes 2022-05-02 02:22:29 +02:00 committed by GitHub
parent 6457571b47
commit 10a6568e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10283,8 +10283,16 @@ void func_80848EF8(Player* this, GlobalContext* globalCtx) {
int rectTop = 60; //Top Y Pos int rectTop = 60; //Top Y Pos
int rectWidth = 24; //Texture Width int rectWidth = 24; //Texture Width
int rectHeight = 24; //Texture Heigh int rectHeight = 24; //Texture Heigh
int DefaultIconA= 50; //Default icon alphe (55 on 255) int DefaultIconA= 50; //Default icon alpha (55 on 255)
if (CVar_GetS32("gHUDMargins", 0) != 0) {
rectLeft = OTRGetRectDimensionFromLeftEdge(26+(CVar_GetS32("gHUDMargin_L", 0)*-1));
rectTop = 60+(CVar_GetS32("gHUDMargin_T", 0)*-1);
} else {
rectTop = 60;
rectLeft = OTRGetRectDimensionFromLeftEdge(26);
}
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player.c", 2824); OPEN_DISPS(globalCtx->state.gfxCtx, "../z_player.c", 2824);
gDPPipeSync(OVERLAY_DISP++); gDPPipeSync(OVERLAY_DISP++);
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 255, 255, 255, DefaultIconA); gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 255, 255, 255, DefaultIconA);