Add trainer=1 SpaceShip
parent
146581e44c
commit
5b2f3111b6
|
@ -1187,25 +1187,27 @@ bool CAutoBase::CreateInterface(bool bSelect)
|
|||
oy = 3.0f/480.0f;
|
||||
sx = 33.0f/640.0f;
|
||||
sy = 33.0f/480.0f;
|
||||
|
||||
ddim.x = dim.x*1.5f;
|
||||
ddim.y = dim.y*1.5f;
|
||||
|
||||
//? pos.x = ox+sx*7.25f;
|
||||
//? pos.y = oy+sy*0.25f;
|
||||
//? pw->CreateButton(pos, ddim, 63, EVENT_OBJECT_BHELP);
|
||||
|
||||
pos.x = ox+sx*8.00f;
|
||||
pos.y = oy+sy*0.25f;
|
||||
pw->CreateButton(pos, ddim, 28, EVENT_OBJECT_BTAKEOFF);
|
||||
|
||||
if ( m_lightning->GetStatus(sleep, delay, magnetic, progress) )
|
||||
if( !m_object->GetTrainer() )
|
||||
{
|
||||
pos.x = ox+sx*10.2f;
|
||||
pos.y = oy+sy*0.5f;
|
||||
ddim.x = dim.x*1.0f;
|
||||
ddim.y = dim.y*1.0f;
|
||||
pw->CreateButton(pos, ddim, 41, EVENT_OBJECT_LIMIT);
|
||||
ddim.x = dim.x*1.5f;
|
||||
ddim.y = dim.y*1.5f;
|
||||
|
||||
//? pos.x = ox+sx*7.25f;
|
||||
//? pos.y = oy+sy*0.25f;
|
||||
//? pw->CreateButton(pos, ddim, 63, EVENT_OBJECT_BHELP);
|
||||
|
||||
pos.x = ox+sx*8.00f;
|
||||
pos.y = oy+sy*0.25f;
|
||||
pw->CreateButton(pos, ddim, 28, EVENT_OBJECT_BTAKEOFF);
|
||||
|
||||
if ( m_lightning->GetStatus(sleep, delay, magnetic, progress) )
|
||||
{
|
||||
pos.x = ox+sx*10.2f;
|
||||
pos.y = oy+sy*0.5f;
|
||||
ddim.x = dim.x*1.0f;
|
||||
ddim.y = dim.y*1.0f;
|
||||
pw->CreateButton(pos, ddim, 41, EVENT_OBJECT_LIMIT);
|
||||
}
|
||||
}
|
||||
|
||||
pos.x = ox+sx*0.0f;
|
||||
|
|
Loading…
Reference in New Issue