equal
deleted
inserted
replaced
36 |
36 |
37 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
37 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
38 |
38 |
39 Form->ui.pageNet->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString()); |
39 Form->ui.pageNet->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString()); |
40 Form->ui.pageNet->editIP->setText(value("net/ip", "").toString()); |
40 Form->ui.pageNet->editIP->setText(value("net/ip", "").toString()); |
|
41 |
41 Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool()); |
42 Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool()); |
42 Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt()); |
43 Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt()); |
|
44 |
|
45 Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", true).toBool()); |
43 } |
46 } |
44 |
47 |
45 QStringList GameUIConfig::GetTeamsList() |
48 QStringList GameUIConfig::GetTeamsList() |
46 { |
49 { |
47 QStringList teamslist = cfgdir->entryList(QStringList("*.cfg")); |
50 QStringList teamslist = cfgdir->entryList(QStringList("*.cfg")); |
63 setValue("net/nick", Form->ui.pageNet->editNetNick->text()); |
66 setValue("net/nick", Form->ui.pageNet->editNetNick->text()); |
64 setValue("net/ip", Form->ui.pageNet->editIP->text()); |
67 setValue("net/ip", Form->ui.pageNet->editIP->text()); |
65 |
68 |
66 setValue("fps/show", isShowFPSEnabled()); |
69 setValue("fps/show", isShowFPSEnabled()); |
67 setValue("fps/interval", Form->ui.pageOptions->fpsedit->value()); |
70 setValue("fps/interval", Form->ui.pageOptions->fpsedit->value()); |
|
71 |
|
72 setValue("misc/altdamage", isAltDamageEnabled()); |
68 } |
73 } |
69 |
74 |
70 int GameUIConfig::vid_Resolution() |
75 int GameUIConfig::vid_Resolution() |
71 { |
76 { |
72 return Form->ui.pageOptions->CBResolution->currentIndex(); |
77 return Form->ui.pageOptions->CBResolution->currentIndex(); |
85 bool GameUIConfig::isShowFPSEnabled() |
90 bool GameUIConfig::isShowFPSEnabled() |
86 { |
91 { |
87 return Form->ui.pageOptions->CBShowFPS->isChecked(); |
92 return Form->ui.pageOptions->CBShowFPS->isChecked(); |
88 } |
93 } |
89 |
94 |
|
95 bool GameUIConfig::isAltDamageEnabled() |
|
96 { |
|
97 return Form->ui.pageOptions->CBAltDamage->isChecked();; |
|
98 } |
|
99 |
90 quint8 GameUIConfig::timerInterval() |
100 quint8 GameUIConfig::timerInterval() |
91 { |
101 { |
92 return 35 - Form->ui.pageOptions->fpsedit->value(); |
102 return 35 - Form->ui.pageOptions->fpsedit->value(); |
93 } |
103 } |