Retro mode now disables possibility of writing and running programs
parent
5deb68e698
commit
f4e222248f
|
@ -1288,18 +1288,20 @@ bool CBrain::CreateInterface(bool bSelect)
|
||||||
type == OBJECT_BEE ||
|
type == OBJECT_BEE ||
|
||||||
type == OBJECT_WORM ) // vehicle?
|
type == OBJECT_WORM ) // vehicle?
|
||||||
{
|
{
|
||||||
ddim.x = dim.x*5.1f;
|
if (!(CRobotMain::GetInstancePointer()->GetRetroMode())) {
|
||||||
ddim.y = dim.y*2.0f;
|
ddim.x = dim.x*5.1f;
|
||||||
pos.x = ox+sx*0.0f;
|
ddim.y = dim.y*2.0f;
|
||||||
pos.y = oy+sy*0.0f;
|
pos.x = ox+sx*0.0f;
|
||||||
pw->CreateList(pos, ddim, -1, EVENT_OBJECT_PROGLIST, 1.10f);
|
pos.y = oy+sy*0.0f;
|
||||||
UpdateScript(pw);
|
pw->CreateList(pos, ddim, -1, EVENT_OBJECT_PROGLIST, 1.10f);
|
||||||
|
UpdateScript(pw);
|
||||||
|
|
||||||
pos.x = ox+sx*5.2f;
|
pos.x = ox+sx*5.2f;
|
||||||
pos.y = oy+sy*1.0f;
|
pos.y = oy+sy*1.0f;
|
||||||
pw->CreateButton(pos, dim, 8, EVENT_OBJECT_PROGRUN);
|
pw->CreateButton(pos, dim, 8, EVENT_OBJECT_PROGRUN);
|
||||||
pos.y = oy+sy*0.0f;
|
pos.y = oy+sy*0.0f;
|
||||||
pw->CreateButton(pos, dim, 22, EVENT_OBJECT_PROGEDIT);
|
pw->CreateButton(pos, dim, 22, EVENT_OBJECT_PROGEDIT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( type == OBJECT_HUMAN ||
|
if ( type == OBJECT_HUMAN ||
|
||||||
|
|
|
@ -6795,6 +6795,10 @@ const char* CRobotMain::GetFilesDir()
|
||||||
return m_dialog->GetFilesDir().c_str();
|
return m_dialog->GetFilesDir().c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CRobotMain::GetRetroMode()
|
||||||
|
{
|
||||||
|
return m_retroStyle;
|
||||||
|
}
|
||||||
|
|
||||||
//! Change the player's name
|
//! Change the player's name
|
||||||
void CRobotMain::SetGamerName(const char *name)
|
void CRobotMain::SetGamerName(const char *name)
|
||||||
|
|
|
@ -304,6 +304,7 @@ public:
|
||||||
const char* GetSavegameDir();
|
const char* GetSavegameDir();
|
||||||
const char* GetPublicDir();
|
const char* GetPublicDir();
|
||||||
const char* GetFilesDir();
|
const char* GetFilesDir();
|
||||||
|
bool GetRetroMode();
|
||||||
|
|
||||||
void SetGamerName(const char *name);
|
void SetGamerName(const char *name);
|
||||||
char* GetGamerName();
|
char* GetGamerName();
|
||||||
|
@ -447,6 +448,7 @@ protected:
|
||||||
int m_delayWriteMessage;
|
int m_delayWriteMessage;
|
||||||
int m_movieInfoIndex;
|
int m_movieInfoIndex;
|
||||||
|
|
||||||
|
//Level Checker flags
|
||||||
bool m_beginObject;
|
bool m_beginObject;
|
||||||
bool m_terrainGenerate;
|
bool m_terrainGenerate;
|
||||||
bool m_terrainInitTextures;
|
bool m_terrainInitTextures;
|
||||||
|
@ -454,7 +456,7 @@ protected:
|
||||||
bool m_terrainCreate;
|
bool m_terrainCreate;
|
||||||
|
|
||||||
int m_version; // Mission file version
|
int m_version; // Mission file version
|
||||||
bool m_retroStyle; // Retro style
|
bool m_retroStyle; // Retro
|
||||||
bool m_immediatSatCom; // SatCom immediately?
|
bool m_immediatSatCom; // SatCom immediately?
|
||||||
bool m_beginSatCom; // messages SatCom poster?
|
bool m_beginSatCom; // messages SatCom poster?
|
||||||
bool m_movieLock; // movie in progress?
|
bool m_movieLock; // movie in progress?
|
||||||
|
|
Loading…
Reference in New Issue