Add trainer=1 ResearchCenter
parent
d0e29d4875
commit
02eb4623b9
|
@ -341,43 +341,45 @@ bool CAutoResearch::CreateInterface(bool bSelect)
|
||||||
oy = 3.0f/480.0f;
|
oy = 3.0f/480.0f;
|
||||||
sx = 33.0f/640.0f;
|
sx = 33.0f/640.0f;
|
||||||
sy = 33.0f/480.0f;
|
sy = 33.0f/480.0f;
|
||||||
|
if( !m_object->GetTrainer() )
|
||||||
|
{
|
||||||
|
pos.x = ox+sx*3.0f;
|
||||||
|
pos.y = oy+sy*0.5f;
|
||||||
|
pw->CreateButton(pos, dim, 64+0, EVENT_OBJECT_RTANK);
|
||||||
|
|
||||||
pos.x = ox+sx*3.0f;
|
pos.x = ox+sx*4.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+0, EVENT_OBJECT_RTANK);
|
pw->CreateButton(pos, dim, 64+1, EVENT_OBJECT_RFLY);
|
||||||
|
|
||||||
pos.x = ox+sx*4.0f;
|
pos.x = ox+sx*5.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+1, EVENT_OBJECT_RFLY);
|
pw->CreateButton(pos, dim, 64+3, EVENT_OBJECT_RCANON);
|
||||||
|
|
||||||
pos.x = ox+sx*5.0f;
|
pos.x = ox+sx*6.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+3, EVENT_OBJECT_RCANON);
|
pw->CreateButton(pos, dim, 64+4, EVENT_OBJECT_RTOWER);
|
||||||
|
|
||||||
pos.x = ox+sx*6.0f;
|
pos.x = ox+sx*7.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+4, EVENT_OBJECT_RTOWER);
|
pw->CreateButton(pos, dim, 64+7, EVENT_OBJECT_RATOMIC);
|
||||||
|
|
||||||
pos.x = ox+sx*7.0f;
|
pos.x = ox+sx*8.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+7, EVENT_OBJECT_RATOMIC);
|
pw->CreateButton(pos, dim, 64+2, EVENT_OBJECT_RTHUMP);
|
||||||
|
|
||||||
pos.x = ox+sx*8.0f;
|
pos.x = ox+sx*9.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+2, EVENT_OBJECT_RTHUMP);
|
pw->CreateButton(pos, dim, 64+6, EVENT_OBJECT_RSHIELD);
|
||||||
|
|
||||||
pos.x = ox+sx*9.0f;
|
pos.x = ox+sx*10.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+6, EVENT_OBJECT_RSHIELD);
|
pw->CreateButton(pos, dim, 64+5, EVENT_OBJECT_RPHAZER);
|
||||||
|
|
||||||
pos.x = ox+sx*10.0f;
|
pos.x = ox+sx*11.0f;
|
||||||
pos.y = oy+sy*0.5f;
|
pos.y = oy+sy*0.5f;
|
||||||
pw->CreateButton(pos, dim, 64+5, EVENT_OBJECT_RPHAZER);
|
pw->CreateButton(pos, dim, 192+4, EVENT_OBJECT_RBUILDER);
|
||||||
|
}
|
||||||
|
|
||||||
pos.x = ox+sx*11.0f;
|
|
||||||
pos.y = oy+sy*0.5f;
|
|
||||||
pw->CreateButton(pos, dim, 192+4, EVENT_OBJECT_RBUILDER);
|
|
||||||
|
|
||||||
pos.x = ox+sx*14.5f;
|
pos.x = ox+sx*14.5f;
|
||||||
pos.y = oy+sy*0;
|
pos.y = oy+sy*0;
|
||||||
ddim.x = 14.0f/640.0f;
|
ddim.x = 14.0f/640.0f;
|
||||||
|
|
Loading…
Reference in New Issue