| Line 127... |
Line 127... |
| 127 |
|
127 |
|
| 128 |
LoadShip ^ls = gcnew LoadShip();
|
128 |
LoadShip ^ls = gcnew LoadShip();
|
| 129 |
for(Utils::SStringList *str = ships->first(); str; str = ships->next()) {
|
129 |
for(Utils::SStringList *str = ships->first(); str; str = ships->next()) {
|
| 130 |
int tId = str->str.token(";", 7).toLong();
|
130 |
int tId = str->str.token(";", 7).toLong();
|
| 131 |
String ^name = _US(pVfs->findText(0, 17, tId));
|
131 |
String ^name = _US(pVfs->findText(0, 17, tId));
|
| 132 |
String ^race = _US(pVfs->findText(0, 1266, str->str.token(";", 46).toLong()));
|
132 |
String ^race = (str->str.token(";", 46).toLong() == 0) ? "" : _US(pVfs->findText(0, 1266, str->str.token(";", 46).toLong()));
|
| 133 |
String ^text = race + " " + name;
|
133 |
String ^text = race + " " + name;
|
| 134 |
int variation = str->str.token(";", 51).toLong();
|
134 |
int variation = str->str.token(";", 51).toLong();
|
| 135 |
if ( variation )
|
135 |
if ( variation && variation != 20 )
|
| 136 |
text = text + " " + _US(pVfs->findText(0, 17, 10000 + variation));
|
136 |
text = text + " " + _US(pVfs->findText(0, 17, 10000 + variation));
|
| 137 |
ls->AddShip(_US(str->data), text);
|
137 |
ls->AddShip(_US(str->data), text);
|
| 138 |
}
|
138 |
}
|
| 139 |
|
139 |
|
| 140 |
if ( ls->ShowDialog(this) == System::Windows::Forms::DialogResult::OK ) {
|
140 |
if ( ls->ShowDialog(this) == System::Windows::Forms::DialogResult::OK ) {
|