summaryrefslogtreecommitdiff
path: root/src/gui/setup_chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-03 17:23:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-03 17:23:05 +0300
commitd5eb424dcd214b4646a960e04b9271e70b096856 (patch)
treef36891e6406861ab0d4a82d233545e3f33a46ab4 /src/gui/setup_chat.cpp
parent634149ac7d248d2e078ee9707379a5056d31077e (diff)
downloadplus-d5eb424dcd214b4646a960e04b9271e70b096856.tar.gz
plus-d5eb424dcd214b4646a960e04b9271e70b096856.tar.bz2
plus-d5eb424dcd214b4646a960e04b9271e70b096856.tar.xz
plus-d5eb424dcd214b4646a960e04b9271e70b096856.zip
Add separator field to setup settings tabs.
Diffstat (limited to 'src/gui/setup_chat.cpp')
-rw-r--r--src/gui/setup_chat.cpp44
1 files changed, 32 insertions, 12 deletions
diff --git a/src/gui/setup_chat.cpp b/src/gui/setup_chat.cpp
index 87425b46c..7db61542a 100644
--- a/src/gui/setup_chat.cpp
+++ b/src/gui/setup_chat.cpp
@@ -52,38 +52,55 @@ Setup_Chat::Setup_Chat()
ContainerPlacer place = h.getPlacer(0, 0);
place(0, 0, mScroll, 10, 10);
+ new SetupItemLabel(_("Colors"), "", this);
+
new SetupItemCheckBox(_("Remove colors from received chat messages"), "",
"removeColors", this, "removeColorsEvent");
- new SetupItemCheckBox(_("Log magic messages in debug tab"), "",
- "showMagicInDebug", this, "showMagicInDebugEvent");
+ new SetupItemCheckBox(_("Show chat colors list"), "",
+ "showChatColorsList", this, "showChatColorsListEvent");
+
+
+ new SetupItemLabel(_("Commands"), "", this);
new SetupItemCheckBox(_("Allow magic and GM commands in all chat tabs"),
"", "allowCommandsInChatTabs", this, "allowCommandsInChatTabsEvent");
- new SetupItemCheckBox(_("Show server messages in debug tab"), "",
- "serverMsgInDebug", this, "serverMsgInDebugEvent");
- new SetupItemCheckBox(_("Show chat colors list"), "",
- "showChatColorsList", this, "showChatColorsListEvent");
+ new SetupItemLabel(_("Limits"), "", this);
new SetupItemIntTextField(_("Limit max chars in chat line"), "",
"chatMaxCharLimit", this, "chatMaxCharLimitEvent", 0, 500);
+ new SetupItemIntTextField(_("Limit max lines in chat"), "",
+ "chatMaxLinesLimit", this, "chatMaxLinesLimitEvent", 0, 500);
+
+
+ new SetupItemLabel(_("Logs"), "", this);
+
new SetupItemCheckBox(_("Enable chat Log"), "",
"enableChatLog", this, "enableChatLogEvent");
- new SetupItemIntTextField(_("Limit max lines in chat"), "",
- "chatMaxLinesLimit", this, "chatMaxLinesLimitEvent", 0, 500);
+ new SetupItemCheckBox(_("Show chat history"), "",
+ "showChatHistory", this, "showChatHistoryEvent");
- new SetupItemCheckBox(_("Enable trade tab"), "",
- "enableTradeTab", this, "enableTradeTabEvent");
+
+ new SetupItemLabel(_("Messages"), "", this);
new SetupItemCheckBox(_("Hide shop messages"), "",
"hideShopMessages", this, "hideShopMessagesEvent");
- new SetupItemCheckBox(_("Show chat history"), "",
- "showChatHistory", this, "showChatHistoryEvent");
+
+ new SetupItemLabel(_("Tabs"), "", this);
+
+ new SetupItemCheckBox(_("Log magic messages in debug tab"), "",
+ "showMagicInDebug", this, "showMagicInDebugEvent");
+
+ new SetupItemCheckBox(_("Show server messages in debug tab"), "",
+ "serverMsgInDebug", this, "serverMsgInDebugEvent");
+
+ new SetupItemCheckBox(_("Enable trade tab"), "",
+ "enableTradeTab", this, "enableTradeTabEvent");
new SetupItemCheckBox(_("Enable battle tab"), "",
"enableBattleTab", this, "enableBattleTabEvent");
@@ -94,6 +111,9 @@ Setup_Chat::Setup_Chat()
new SetupItemCheckBox(_("Resize chat tabs if need"), "",
"hideChatInput", this, "hideChatInputEvent");
+
+ new SetupItemLabel(_("Time"), "", this);
+
new SetupItemCheckBox(_("Use local time"), "",
"useLocalTime", this, "useLocalTimeEvent");