tools/MissionsEditor/editor.cpp
changeset 2584 cc049fbb65ef
parent 2583 f8da275981e5
child 2594 0047e16dbacb
equal deleted inserted replaced
2583:f8da275981e5 2584:cc049fbb65ef
    53     {
    53     {
    54         QString line = stream.readLine();
    54         QString line = stream.readLine();
    55         if (line.startsWith("seed"))
    55         if (line.startsWith("seed"))
    56             ui->leSeed->setText(line.mid(5));
    56             ui->leSeed->setText(line.mid(5));
    57         else
    57         else
       
    58         if (line.startsWith("map"))
       
    59             ui->leMap->setText(line.mid(4));
       
    60         else
       
    61         if (line.startsWith("theme"))
       
    62             ui->leTheme->setText(line.mid(6));
       
    63         else
    58         if (line.startsWith("$turntime"))
    64         if (line.startsWith("$turntime"))
    59             ui->sbTurnTime->setValue(line.mid(10).toInt());
    65             ui->sbTurnTime->setValue(line.mid(10).toInt());
    60         else
    66         else
    61         if (line.startsWith("$casefreq"))
    67         if (line.startsWith("$casefreq"))
    62             ui->sbCrateDrops->setValue(line.mid(10).toInt());
    68             ui->sbCrateDrops->setValue(line.mid(10).toInt());