118 |
mout[i]->SetText(s); |
mout[i]->SetText(s); |
119 |
} |
} |
120 |
|
|
121 |
if (IsHidden()==1) { this->Show(); } |
//if (IsHidden()==1) { this->Show(); } |
122 |
|
this->Show(); |
123 |
|
|
124 |
} |
} |
125 |
|
|
136 |
|
|
137 |
|
|
138 |
void PG_Panel_MisnSel::AnnotateMission(Mission* m, char s[]) { |
void PG_Panel_MisnSel::AnnotateMission(Mission* m, char s[]) { |
|
char b[4]; // value buffer |
|
|
|
|
139 |
switch(m->GetType()) { |
switch(m->GetType()) { |
140 |
case MISSION_IDLE: |
case MISSION_IDLE: |
141 |
strcat( s, "Idled!" ); |
strcat( s, "Idled!" ); |
142 |
break; |
break; |
143 |
case MISSION_PATROL: |
case MISSION_PATROL: |
144 |
strcat( s, "Patrol @ x" ); |
strcat( s, "Patrol @ x" ); |
145 |
strcat( s, gcvt(m->GetLocX(), 3, b) ); |
strcat( s, rm->IntToChar( m->GetLocX() ).c_str() ); |
146 |
strcat( s, ", y" ); |
strcat( s, ", y" ); |
147 |
strcat( s, gcvt(m->GetLocY(), 3, b) ); |
strcat( s, rm->IntToChar( m->GetLocY() ).c_str() ); |
148 |
strcat( s, ", radius " ); |
strcat( s, ", radius " ); |
149 |
strcat( s, gcvt(m->GetRad(), 3, b) ); |
strcat( s, rm->IntToChar( m->GetRad() ).c_str() ); |
150 |
break; |
break; |
151 |
case MISSION_MOVE: |
case MISSION_MOVE: |
152 |
strcat( s, "Moving to x" ); |
strcat( s, "Moving to x" ); |
153 |
strcat( s, gcvt(m->GetLocX(), 3, b) ); |
strcat( s, rm->IntToChar( m->GetLocX() ).c_str() ); |
154 |
strcat( s, ", y" ); |
strcat( s, ", y" ); |
155 |
strcat( s, gcvt(m->GetLocY(), 3, b) ); |
strcat( s, rm->IntToChar( m->GetLocY() ).c_str() ); |
156 |
break; |
break; |
157 |
case MISSION_HALT: |
case MISSION_HALT: |
158 |
strcat( s, "Halt" ); |
strcat( s, "Halt" ); |