QTfrontend/gameuiconfig.cpp
changeset 111 30ca06092a64
parent 97 e7c1df9cce2c
child 127 ca70467bd0a8
equal deleted inserted replaced
110:330a2dbacd67 111:30ca06092a64
    66 			{
    66 			{
    67 				Form->ui.pageOptions->CBEnableSound->setChecked(str.mid(6).toLong());
    67 				Form->ui.pageOptions->CBEnableSound->setChecked(str.mid(6).toLong());
    68 			} else
    68 			} else
    69 			if (str.startsWith("nick "))
    69 			if (str.startsWith("nick "))
    70 			{
    70 			{
    71 				Form->ui.pageOptions->editNetNick->setText(str.mid(5));
    71 				Form->ui.pageNet->editNetNick->setText(str.mid(5));
       
    72 			} else
       
    73 			if (str.startsWith("ip "))
       
    74 			{
       
    75 				Form->ui.pageNet->editIP->setText(str.mid(3));
    72 			}
    76 			}
    73 		}
    77 		}
    74 		settings.close();
    78 		settings.close();
    75 	}
    79 	}
    76 }
    80 }
    95 	stream.setCodec("UTF-8");
    99 	stream.setCodec("UTF-8");
    96 	stream << "; Generated by Hedgewars, do not modify" << endl;
   100 	stream << "; Generated by Hedgewars, do not modify" << endl;
    97 	stream << "resolution " << Form->ui.pageOptions->CBResolution->currentIndex() << endl;
   101 	stream << "resolution " << Form->ui.pageOptions->CBResolution->currentIndex() << endl;
    98 	stream << "fullscreen " << Form->ui.pageOptions->CBFullscreen->isChecked() << endl;
   102 	stream << "fullscreen " << Form->ui.pageOptions->CBFullscreen->isChecked() << endl;
    99 	stream << "sound " << Form->ui.pageOptions->CBEnableSound->isChecked() << endl;
   103 	stream << "sound " << Form->ui.pageOptions->CBEnableSound->isChecked() << endl;
   100 	stream << "nick " << Form->ui.pageOptions->editNetNick->text() << endl;
   104 	stream << "nick " << Form->ui.pageNet->editNetNick->text() << endl;
       
   105 	stream << "ip " << Form->ui.pageNet->editIP->text() << endl;
   101 	settings.close();
   106 	settings.close();
   102 }
   107 }
   103 
   108 
   104 int GameUIConfig::vid_Resolution()
   109 int GameUIConfig::vid_Resolution()
   105 {
   110 {