mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
New userdef structure "shadow_pal"
Sets the black palette used for enemy shadows and for black rectangles in the menu. Default value is 4. Patch from Fox. git-svn-id: https://svn.eduke32.com/eduke32@6626 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4bedc0c39d
commit
12f1767de2
7 changed files with 8 additions and 2 deletions
|
@ -256,6 +256,7 @@ void CONFIG_SetDefaults(void)
|
|||
ud.hudontop = 0;
|
||||
ud.default_skill = 1;
|
||||
ud.slidebar_paldisabled = 1;
|
||||
ud.shadow_pal = 4;
|
||||
|
||||
ud.config.CheckForUpdates = 1;
|
||||
|
||||
|
|
|
@ -4241,7 +4241,7 @@ skip:
|
|||
tsprShadow->shade = 127;
|
||||
tsprShadow->cstat |= 2;
|
||||
tsprShadow->z = shadowZ;
|
||||
tsprShadow->pal = 4;
|
||||
tsprShadow->pal = ud.shadow_pal;
|
||||
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
|
|
|
@ -266,6 +266,7 @@ typedef struct {
|
|||
|
||||
uint8_t user_map;
|
||||
uint8_t screenfade, menubackground;
|
||||
uint8_t shadow_pal;
|
||||
} user_defs;
|
||||
|
||||
extern user_defs ud;
|
||||
|
|
|
@ -1299,6 +1299,7 @@ const memberlabel_t UserdefsLabels[]=
|
|||
{ "m_user_map", USERDEFS_M_USER_MAP, 0, 0 },
|
||||
{ "music_episode", USERDEFS_MUSIC_EPISODE, 0, 0 },
|
||||
{ "music_level", USERDEFS_MUSIC_LEVEL, 0, 0 },
|
||||
{ "shadow_pal", USERDEFS_SHADOW_PAL, 0, 0 },
|
||||
{ NULL, -1, 0, 0 } // END OF LIST
|
||||
};
|
||||
|
||||
|
|
|
@ -583,6 +583,7 @@ enum UserdefsLabel_t
|
|||
USERDEFS_M_USER_MAP,
|
||||
USERDEFS_MUSIC_EPISODE,
|
||||
USERDEFS_MUSIC_LEVEL,
|
||||
USERDEFS_SHADOW_PAL,
|
||||
USERDEFS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -214,6 +214,7 @@ int32_t __fastcall VM_GetUserdef(int32_t labelNum)
|
|||
case USERDEFS_SLIDEBAR_PALDISABLED: labelNum = ud.slidebar_paldisabled; break;
|
||||
case USERDEFS_MUSIC_EPISODE: labelNum = ud.music_episode; break;
|
||||
case USERDEFS_MUSIC_LEVEL: labelNum = ud.music_level; break;
|
||||
case USERDEFS_SHADOW_PAL: labelNum = ud.shadow_pal; break;
|
||||
default: labelNum = -1; break;
|
||||
}
|
||||
|
||||
|
@ -386,6 +387,7 @@ void __fastcall VM_SetUserdef(int32_t const labelNum, int32_t const iSet)
|
|||
case USERDEFS_MENUTITLE_PAL: ud.menutitle_pal = iSet; break;
|
||||
case USERDEFS_SLIDEBAR_PALSELECTED: ud.slidebar_palselected = iSet; break;
|
||||
case USERDEFS_SLIDEBAR_PALDISABLED: ud.slidebar_paldisabled = iSet; break;
|
||||
case USERDEFS_SHADOW_PAL: ud.shadow_pal = iSet; break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4180,7 +4180,7 @@ static void Menu_BlackRectangle(int32_t x, int32_t y, int32_t width, int32_t hei
|
|||
{
|
||||
const int32_t xscale = divscale16(width, tilesiz[0].x<<16), yscale = divscale16(height, tilesiz[0].y<<16);
|
||||
|
||||
rotatesprite_(x, y, max(xscale, yscale), 0, 0, 127, 4, (orientation&(1|32))|2|8|16, 0, 0, xdim_from_320_16(x), ydim_from_200_16(y), xdim_from_320_16(x + width), ydim_from_200_16(y + height));
|
||||
rotatesprite_(x, y, max(xscale, yscale), 0, 0, 127, ud.shadow_pal, (orientation&(1|32))|2|8|16, 0, 0, xdim_from_320_16(x), ydim_from_200_16(y), xdim_from_320_16(x + width), ydim_from_200_16(y + height));
|
||||
}
|
||||
|
||||
enum MenuTextFlags_t
|
||||
|
|
Loading…
Reference in a new issue