mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 20:51:35 +00:00
fixed hud_style 1 - uses correct sprite names
This commit is contained in:
parent
2fee37842d
commit
8623211c9f
1 changed files with 14 additions and 4 deletions
|
@ -4397,9 +4397,17 @@ void AvHHud::VidInit(void)
|
||||||
}
|
}
|
||||||
else if (CVAR_GET_FLOAT("hud_style") == 1.0f)
|
else if (CVAR_GET_FLOAT("hud_style") == 1.0f)
|
||||||
{
|
{
|
||||||
this->mAlienUIUpgrades = SPR_Load(kAlienUpgradeSprite);
|
char theBaseName[128];
|
||||||
this->mAlienUIEnergySprite = SPR_Load(kAlienEnergySprite);
|
sprintf(theBaseName, "%s", kAlienUpgradeSprite);
|
||||||
this->mAlienUICloakSprite = SPR_Load(kAlienCloakSprite);
|
theSpriteName = UINameToSprite(theBaseName, theScreenWidth);
|
||||||
|
this->mAlienUIUpgrades = SPR_Load(theSpriteName.c_str());
|
||||||
|
|
||||||
|
// Load alien energy sprite
|
||||||
|
theSpriteName = UINameToSprite(kAlienEnergySprite, theScreenWidth);
|
||||||
|
this->mAlienUIEnergySprite = SPR_Load(theSpriteName.c_str());
|
||||||
|
theSpriteName = UINameToSprite(kAlienCloakSprite, theScreenWidth);
|
||||||
|
|
||||||
|
this->mAlienUICloakSprite = SPR_Load(theSpriteName.c_str());
|
||||||
this->mBackgroundSprite = SPR_Load(kTopDownBGSprite);
|
this->mBackgroundSprite = SPR_Load(kTopDownBGSprite);
|
||||||
this->mTopDownTopSprite = SPR_Load(kTopDownTopHUDSpriteMin);
|
this->mTopDownTopSprite = SPR_Load(kTopDownTopHUDSpriteMin);
|
||||||
this->mTopDownBottomSprite = SPR_Load(kTopDownBottomHUDSpriteMin);
|
this->mTopDownBottomSprite = SPR_Load(kTopDownBottomHUDSpriteMin);
|
||||||
|
@ -4408,7 +4416,9 @@ void AvHHud::VidInit(void)
|
||||||
this->mCommandButtonSprite = SPR_Load(kCommandButtonSprite);
|
this->mCommandButtonSprite = SPR_Load(kCommandButtonSprite);
|
||||||
this->mCommandStatusSprite = SPR_Load(kCommandStatusSpriteMin);
|
this->mCommandStatusSprite = SPR_Load(kCommandStatusSpriteMin);
|
||||||
this->mSelectAllSprite = SPR_Load(kSelectAllSpriteMin);
|
this->mSelectAllSprite = SPR_Load(kSelectAllSpriteMin);
|
||||||
this->mOrderSprite = SPR_Load(kOrdersSprite);
|
// Load order sprite
|
||||||
|
theSpriteName = UINameToSprite(kOrdersSprite, theScreenWidth);
|
||||||
|
this->mOrderSprite = SPR_Load(theSpriteName.c_str());
|
||||||
this->mHiveInfoSprite = SPR_Load(kHiveInfoSprite);
|
this->mHiveInfoSprite = SPR_Load(kHiveInfoSprite);
|
||||||
this->mHiveHealthSprite = SPR_Load(kHiveHealthSprite);
|
this->mHiveHealthSprite = SPR_Load(kHiveHealthSprite);
|
||||||
this->mMarineOrderIndicator = SPR_Load(kMarineOrderSprite);
|
this->mMarineOrderIndicator = SPR_Load(kMarineOrderSprite);
|
||||||
|
|
Loading…
Reference in a new issue