69 |
// load widgets if this is our first time through |
// load widgets if this is our first time through |
70 |
if ( widgetsloaded == 0 ) { InitWidgets(); widgetsloaded = 1;} |
if ( widgetsloaded == 0 ) { InitWidgets(); widgetsloaded = 1;} |
71 |
|
|
|
char b[4]; // char buffer for converting int to char |
|
|
|
|
72 |
// set defaults |
// set defaults |
73 |
avoid_out->SetText( gcvt(pod->GetAvoid(), 3, b) ); |
avoid_out->SetText( rm->IntToChar( pod->GetAvoid() ).c_str() ); |
74 |
avoid->SetPosition(pod->GetAvoid()); |
avoid->SetPosition(pod->GetAvoid()); |
75 |
switch (pod->GetEngage()) { |
switch (pod->GetEngage()) { |
76 |
case 0: engage->SetText("Attack All"); break; |
case 0: engage->SetText("Attack All"); break; |
87 |
|
|
88 |
|
|
89 |
PARAGUI_CALLBACK(PG_Panel_PodGenSet::handle_avoid_scroll) { |
PARAGUI_CALLBACK(PG_Panel_PodGenSet::handle_avoid_scroll) { |
90 |
char b[4]; |
avoid_out->SetText( rm->IntToChar( avoid->GetPosition() ).c_str() ); |
|
avoid_out->SetText( gcvt(avoid->GetPosition(), 3, b) ); |
|
91 |
pod->SetAvoid(avoid->GetPosition()); |
pod->SetAvoid(avoid->GetPosition()); |
92 |
return true; |
return true; |
93 |
} |
} |