--- a/QTfrontend/gameuiconfig.cpp Wed May 16 10:11:00 2018 +0200
+++ b/QTfrontend/gameuiconfig.cpp Wed May 16 18:09:13 2018 +0200
@@ -175,6 +175,8 @@
if (m_binds[i].strbind.isEmpty() || m_binds[i].strbind == "default") m_binds[i].strbind = cbinds[i].strbind;
}
}
+
+ Form->ui.pageOptions->sbChatSize->setValue(value("chat/size", 100).toInt());
}
void GameUIConfig::reloadVideosValues(void)
@@ -321,6 +323,8 @@
setValue(QString("colors/color%1").arg(i), model->item(i)->data().value<QColor>().name());
}
+ setValue("chat/size", Form->ui.pageOptions->sbChatSize->value());
+
sync();
}
@@ -592,6 +596,11 @@
}
}
+int GameUIConfig::chatSize()
+{
+ return Form->ui.pageOptions->sbChatSize->value();
+}
+
quint8 GameUIConfig::volume()
{
return Form->ui.pageOptions->SLVolume->value() * 128 / 100;