mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
* Centering of mission accomplished
* Added 8 px next to the Options bar * TEMP: everything costs $50
This commit is contained in:
@@ -188,7 +188,7 @@ DisplayClass::DisplayClass(void) :
|
||||
ShadowShapes = 0;
|
||||
TransIconset = 0;
|
||||
|
||||
Set_View_Dimensions(0, 0, ScreenWidth, ScreenHeight);
|
||||
Set_View_Dimensions(0, 8 * RESFACTOR, ScreenWidth, ScreenHeight);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -204,6 +204,8 @@ void PowerClass::Draw_It(bool complete)
|
||||
power_height = Bound(power_height, 0, PowerButton.Height - 2);
|
||||
drain_height = Bound(drain_height, 0, PowerButton.Height - 2);
|
||||
|
||||
bottom -= (15 * RESFACTOR);
|
||||
|
||||
/*
|
||||
** Draw the power output graphic on top of the power bar framework.
|
||||
*/
|
||||
@@ -245,6 +247,7 @@ void PowerClass::Draw_It(bool complete)
|
||||
}
|
||||
BEnd(BENCH_POWER);
|
||||
}
|
||||
|
||||
RadarClass::Draw_It(complete);
|
||||
}
|
||||
|
||||
|
||||
@@ -922,11 +922,6 @@ void Do_Win(void)
|
||||
Session.GameName[0] = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
** Determine a cosmetic center point for the text.
|
||||
*/
|
||||
int x = Map.TacPixelX + (Lepton_To_Pixel(Map.TacLeptonWidth)/2);
|
||||
|
||||
/*
|
||||
** Hack section. If it's allied scenario 10, variation A, then skip the
|
||||
** score and map selection, don't increment scenario, and set it to
|
||||
@@ -945,7 +940,7 @@ void Do_Win(void)
|
||||
Map.Flag_To_Redraw (true);
|
||||
Map.Render();
|
||||
#ifdef WIN32
|
||||
Fancy_Text_Print(TXT_SCENARIO_WON, x, 90*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
Fancy_Text_Print(TXT_SCENARIO_WON, (SeenBuff.Get_Width() / 2), 90*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
#else
|
||||
Fancy_Text_Print(TXT_MISSION, x, 90*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
Fancy_Text_Print(TXT_HACKHACK, x, 110*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
|
||||
@@ -1030,7 +1030,7 @@ bool SidebarClass::Activate(int control)
|
||||
** activate it on the left side of the screen.
|
||||
*/
|
||||
if (IsSidebarActive /*&& X*/) {
|
||||
Set_View_Dimensions( 0, 0, SeenBuff.Get_Width() - ( SIDE_WIDTH * RESFACTOR ) );
|
||||
Set_View_Dimensions( 0, 8 * RESFACTOR, SeenBuff.Get_Width() - ( SIDE_WIDTH * RESFACTOR ) );
|
||||
|
||||
IsToRedraw = true;
|
||||
Help_Text(TXT_NONE);
|
||||
|
||||
@@ -6705,7 +6705,7 @@ bool TechnoTypeClass::Read_INI(CCINIClass & ini)
|
||||
SightRange = ini.Get_Int(Name(), "Sight", SightRange);
|
||||
Level = ini.Get_Int(Name(), "TechLevel", Level);
|
||||
MaxSpeed = MPHType(_Scale_To_256(ini.Get_Int(Name(), "Speed", fixed(MaxSpeed, 256) * 100)));
|
||||
Cost = ini.Get_Int(Name(), "Cost", Cost);
|
||||
Cost = 50; // ini.Get_Int(Name(), "Cost", Cost);
|
||||
MaxAmmo = ini.Get_Int(Name(), "Ammo", MaxAmmo);
|
||||
Risk = Reward = Points = ini.Get_Int(Name(), "Points", Points);
|
||||
Ownable = ini.Get_Owners(Name(), "Owner", Ownable);
|
||||
|
||||
@@ -74,6 +74,7 @@ std::map<SDL_KeyCode, KeyNumType> const sdl_keyMapping = {
|
||||
{ SDLK_F12, KN_F12 },
|
||||
|
||||
{ SDLK_BACKSPACE, KN_BACKSPACE },
|
||||
{ SDLK_SPACE, KN_SPACE },
|
||||
{ SDLK_KP_ENTER, KN_RETURN },
|
||||
{ SDLK_RETURN, KN_RETURN },
|
||||
{ SDLK_ESCAPE, KN_ESC },
|
||||
|
||||
Reference in New Issue
Block a user