mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
* Added arrow keys
* Fixed position of radar button
This commit is contained in:
+9
-21
@@ -148,35 +148,23 @@ RadarClass::RadarClass(void) :
|
||||
void RadarClass::One_Time(void)
|
||||
{
|
||||
RadWidth = 80 * RESFACTOR;
|
||||
RadHeight = 70 * RESFACTOR;
|
||||
RadHeight = 70 * RESFACTOR;
|
||||
RadX = SeenBuff.Get_Width() - RadWidth;
|
||||
RadY = 7 * RESFACTOR;
|
||||
RadPWidth = 64 * RESFACTOR;
|
||||
RadPHeight = 64 * RESFACTOR;
|
||||
#ifdef WIN32
|
||||
RadOffX = 6;
|
||||
RadOffY = 7;
|
||||
RadIWidth = 128+18;//************
|
||||
RadIHeight = 128+2;//************
|
||||
#else
|
||||
RadOffX = 4;
|
||||
RadOffY = 1;
|
||||
RadIWidth = 72;
|
||||
RadIHeight = 69;
|
||||
#endif
|
||||
RadPWidth = 64 * RESFACTOR;
|
||||
RadPHeight = 64 * RESFACTOR;
|
||||
|
||||
RadOffX = 6;
|
||||
RadOffY = 7;
|
||||
RadIWidth = 128+18;//************
|
||||
RadIHeight = 128+2;//************
|
||||
|
||||
DisplayClass::One_Time();
|
||||
#ifdef OBSOLETE
|
||||
RadarButton.X = RadX+RadOffX;
|
||||
RadarButton.Y = RadY+RadOffY;
|
||||
RadarButton.Width = RadIWidth;
|
||||
RadarButton.Height = RadIHeight;
|
||||
#else
|
||||
|
||||
RadarButton.X = RadX;
|
||||
RadarButton.Y = RadY;
|
||||
RadarButton.Width = RadWidth;
|
||||
RadarButton.Height = RadHeight;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ void SidebarClass::Init_IO(void)
|
||||
|
||||
Zoom.IsSticky = true;
|
||||
Zoom.ID = BUTTON_ZOOM;
|
||||
Zoom.X = 1024 - (640 - ((0x24c/2)*RESFACTOR));
|
||||
Zoom.X = ScreenWidth - (640 - ((0x24c/2)*RESFACTOR));
|
||||
Zoom.Y = (0x96/2)*RESFACTOR;
|
||||
Zoom.IsPressed = false;
|
||||
Zoom.Set_Shape(MFCD::Retrieve("MAP.SHP"));
|
||||
|
||||
@@ -78,6 +78,11 @@ std::map<SDL_KeyCode, KeyNumType> const sdl_keyMapping = {
|
||||
{ SDLK_KP_ENTER, KN_RETURN },
|
||||
{ SDLK_RETURN, KN_RETURN },
|
||||
{ SDLK_ESCAPE, KN_ESC },
|
||||
|
||||
{ SDLK_UP, KN_UP },
|
||||
{ SDLK_DOWN, KN_DOWN },
|
||||
{ SDLK_LEFT, KN_LEFT },
|
||||
{ SDLK_RIGHT, KN_RIGHT },
|
||||
};
|
||||
|
||||
class UserInputClass
|
||||
|
||||
Reference in New Issue
Block a user