Fix a ton of run-time warnings about UI.
Cleans up some related code, probably looks nicer with space changes off.. though this is a pretty straightforward change. Comments out code that still exists in xmls or might likely be added in future. Each piece tested quite a bit.
This commit is contained in:
@@ -73,8 +73,6 @@ private:
|
||||
BOOL mScriptErrorAsChat;
|
||||
F32 mConsoleOpacity;
|
||||
F32 mBubbleOpacity;
|
||||
std::string mTranslateLanguage;
|
||||
BOOL mTranslateChat;
|
||||
};
|
||||
|
||||
|
||||
@@ -109,8 +107,6 @@ LLPrefsChatImpl::LLPrefsChatImpl()
|
||||
childSetValue("play_typing_animation", gSavedSettings.getBOOL("PlayTypingAnim"));
|
||||
childSetValue("console_opacity", gSavedSettings.getF32("ConsoleBackgroundOpacity"));
|
||||
childSetValue("bubble_chat_opacity", gSavedSettings.getF32("ChatBubbleOpacity"));
|
||||
childSetValue("translate_language_combobox", gSavedSettings.getString("TranslateLanguage"));
|
||||
childSetValue("translate_chat", gSavedSettings.getBOOL("TranslateChat"));
|
||||
}
|
||||
|
||||
void LLPrefsChatImpl::refreshValues()
|
||||
@@ -137,8 +133,6 @@ void LLPrefsChatImpl::refreshValues()
|
||||
mPlayTypingAnim = gSavedSettings.getBOOL("PlayTypingAnim");
|
||||
mConsoleOpacity = gSavedSettings.getF32("ConsoleBackgroundOpacity");
|
||||
mBubbleOpacity = gSavedSettings.getF32("ChatBubbleOpacity");
|
||||
mTranslateLanguage = gSavedSettings.getString("TranslateLanguage");
|
||||
mTranslateChat = gSavedSettings.getBOOL("TranslateChat");
|
||||
}
|
||||
|
||||
void LLPrefsChatImpl::cancel()
|
||||
@@ -164,8 +158,6 @@ void LLPrefsChatImpl::cancel()
|
||||
gSavedSettings.setBOOL("PlayTypingAnim", mPlayTypingAnim);
|
||||
gSavedSettings.setF32("ConsoleBackgroundOpacity", mConsoleOpacity);
|
||||
gSavedSettings.setF32("ChatBubbleOpacity", mBubbleOpacity);
|
||||
gSavedSettings.setString("TranslateLanguage", mTranslateLanguage);
|
||||
gSavedSettings.setBOOL("TranslateChat", mTranslateChat);
|
||||
}
|
||||
|
||||
void LLPrefsChatImpl::apply()
|
||||
@@ -197,9 +189,6 @@ void LLPrefsChatImpl::apply()
|
||||
gSavedSettings.setF32("ConsoleBackgroundOpacity", childGetValue("console_opacity").asReal());
|
||||
gSavedSettings.setF32("ChatBubbleOpacity", childGetValue("bubble_chat_opacity").asReal());
|
||||
|
||||
gSavedSettings.setString("TranslateLanguage", childGetValue("translate_language_combobox"));
|
||||
gSavedSettings.setBOOL("TranslateChat", childGetValue("translate_chat"));
|
||||
|
||||
refreshValues(); // member values become the official values and cancel becomes a no-op.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user