Merge branch 'master' of https://vcs.firestormviewer.org/phoenix-firestorm
commit
1cf446b945
|
|
@ -85,6 +85,17 @@ bool is_irc_me_prefix(const std::string& text)
|
|||
return (prefix == "/me " || prefix == "/me'");
|
||||
}
|
||||
|
||||
std::string unescape_name(const std::string& name)
|
||||
{
|
||||
// bugfix for SL-46920: preventing filenames that break stuff.
|
||||
char * curl_str = curl_unescape(name.c_str(), name.size());
|
||||
std::string unescaped_name(curl_str);
|
||||
curl_free(curl_str);
|
||||
curl_str = NULL;
|
||||
|
||||
return unescaped_name;
|
||||
}
|
||||
|
||||
std::string FSCommon::applyAutoCloseOoc(std::string message)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AutoCloseOOC"))
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ const F32 AVATAR_UNKNOWN_RANGE = -1.f;
|
|||
void report_to_nearby_chat(const std::string& message);
|
||||
std::string format_string(std::string text, const LLStringUtil::format_map_t& args);
|
||||
bool is_irc_me_prefix(const std::string& text);
|
||||
std::string unescape_name(const std::string& name);
|
||||
|
||||
namespace FSCommon
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
#include "fscommon.h"
|
||||
#include "lggbeammaps.h"
|
||||
#include "lggbeamscolors.h"
|
||||
#include "llagent.h"
|
||||
|
|
@ -27,17 +28,6 @@
|
|||
|
||||
lggBeamMaps gLggBeamMaps;
|
||||
|
||||
std::string unescape_name(const std::string& name)
|
||||
{
|
||||
// bugfix for SL-46920: preventing filenames that break stuff.
|
||||
char * curl_str = curl_unescape(name.c_str(), name.size());
|
||||
std::string unescaped_name(curl_str);
|
||||
curl_free(curl_str);
|
||||
curl_str = NULL;
|
||||
|
||||
return unescaped_name;
|
||||
}
|
||||
|
||||
F32 hueToRgb(F32 val1In, F32 val2In, F32 valHUeIn)
|
||||
{
|
||||
while (valHUeIn < 0.0f)
|
||||
|
|
@ -70,7 +60,7 @@ F32 hueToRgb(F32 val1In, F32 val2In, F32 valHUeIn)
|
|||
|
||||
void hslToRgb(F32 hValIn, F32 sValIn, F32 lValIn, F32& rValOut, F32& gValOut, F32& bValOut)
|
||||
{
|
||||
if (sValIn < 0.00001f)
|
||||
if (sValIn < F_ALMOST_ZERO)
|
||||
{
|
||||
rValOut = lValIn;
|
||||
gValOut = lValIn;
|
||||
|
|
@ -400,4 +390,3 @@ void lggBeamMaps::updateBeamChat(const LLVector3d& currentPos)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,6 @@
|
|||
#include "llviewerprecompiledheaders.h"
|
||||
#include "lggbeamscolors.h"
|
||||
|
||||
#include "llfile.h"
|
||||
#include "llsdserialize.h"
|
||||
|
||||
lggBeamsColors lggBeamsColors::fromLLSD(const LLSD& inputData)
|
||||
{
|
||||
lggBeamsColors toReturn;
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@
|
|||
// [RLVa:KB] - Checked: RLVa-2.4 (@setenv)
|
||||
#include "rlvactions.h"
|
||||
// [/RLVa:KB]
|
||||
#include "fscommon.h"
|
||||
#include "llviewernetwork.h"
|
||||
|
||||
//=========================================================================
|
||||
namespace
|
||||
|
|
@ -828,15 +830,10 @@ LLEnvironment::LLEnvironment():
|
|||
}
|
||||
// <FS:Beq> OpenSim legacy Windlight setting support
|
||||
#ifdef OPENSIM
|
||||
std::string unescape_name(const std::string& name);
|
||||
void LLEnvironment::loadLegacyPresets()
|
||||
{
|
||||
// [EEPMERGE]
|
||||
//LLDayCycleManager::preset_name_list_t user_presets, sys_presets;
|
||||
//LLDayCycleManager::instance().getPresetNames(user_presets, sys_presets);
|
||||
// [/EEPMERGE]
|
||||
std::string path_name;
|
||||
std::vector<decltype(LL_PATH_APP_SETTINGS)> folders={LL_PATH_APP_SETTINGS, LL_PATH_USER_SETTINGS};
|
||||
std::vector<decltype(LL_PATH_APP_SETTINGS)> folders = { LL_PATH_APP_SETTINGS, LL_PATH_USER_SETTINGS };
|
||||
for (auto & settings_path : folders)
|
||||
{
|
||||
path_name = gDirUtilp->getExpandedFilename(settings_path , "windlight", "skies", "");
|
||||
|
|
@ -906,10 +903,14 @@ void LLEnvironment::initSingleton()
|
|||
mCurrentEnvironment->setWater(p_default_water);
|
||||
|
||||
mEnvironments[ENV_DEFAULT] = mCurrentEnvironment;
|
||||
|
||||
// <FS:Beq> OpenSim legacy Windlight setting support
|
||||
#ifdef OPENSIM
|
||||
loadLegacyPresets();
|
||||
loadUserPrefs();
|
||||
if (LLGridManager::instance().isInOpenSim())
|
||||
{
|
||||
loadLegacyPresets();
|
||||
loadUserPrefs();
|
||||
}
|
||||
#endif
|
||||
// </FS:Beq>
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@
|
|||
#include "llvoavatarself.h"
|
||||
#include "rlvhandler.h"
|
||||
|
||||
std::string unescape_name(const std::string& name);
|
||||
class FSSettingsCollector : public LLInventoryCollectFunctor
|
||||
{
|
||||
public:
|
||||
|
|
@ -1160,18 +1159,11 @@ void FloaterQuickPrefs::updateRlvRestrictions(ERlvBehaviour behavior, ERlvParamT
|
|||
{
|
||||
if (behavior == RLV_BHVR_SETENV)
|
||||
{
|
||||
if (type == RLV_TYPE_ADD)
|
||||
{
|
||||
enableWindlightButtons(FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
enableWindlightButtons(TRUE);
|
||||
}
|
||||
enableWindlightButtons(type != RLV_TYPE_ADD);
|
||||
}
|
||||
}
|
||||
|
||||
void FloaterQuickPrefs::enableWindlightButtons(BOOL enable)
|
||||
void FloaterQuickPrefs::enableWindlightButtons(bool enable)
|
||||
{
|
||||
childSetEnabled("WLPresetsCombo", enable);
|
||||
childSetEnabled("WLPrevPreset", enable);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ private:
|
|||
|
||||
boost::signals2::connection mRlvBehaviorCallbackConnection;
|
||||
void updateRlvRestrictions(ERlvBehaviour behavior, ERlvParamType type);
|
||||
void enableWindlightButtons(BOOL enable);
|
||||
void enableWindlightButtons(bool enable);
|
||||
|
||||
public:
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
|
|
|||
|
|
@ -1514,6 +1514,15 @@ http://www.firestormviewer.org/support für Hilfe zum Lösen des Problems.
|
|||
<string name="none">
|
||||
keine
|
||||
</string>
|
||||
<string name="sky">
|
||||
Himmler
|
||||
</string>
|
||||
<string name="water">
|
||||
Wasser
|
||||
</string>
|
||||
<string name="day">
|
||||
Tageszyklus
|
||||
</string>
|
||||
<string name="shirt_not_worn">
|
||||
Hemd nicht getragen
|
||||
</string>
|
||||
|
|
@ -5214,6 +5223,9 @@ Missbrauchsbericht
|
|||
<string name="New Sky">
|
||||
Neuer Himmel
|
||||
</string>
|
||||
<string name="New Settings">
|
||||
Neue Einstellungen
|
||||
</string>
|
||||
<string name="/bow">
|
||||
/verbeugen
|
||||
</string>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
left="0"
|
||||
top="16"
|
||||
width="260"
|
||||
height="152"
|
||||
height="155"
|
||||
follows="all"
|
||||
layout="topleft">
|
||||
<layout_stack
|
||||
|
|
|
|||
|
|
@ -670,6 +670,9 @@ http://www.firestormviewer.org/support for help fixing this problem.
|
|||
<string name="physics">Physics</string>
|
||||
<string name="invalid">invalid</string>
|
||||
<string name="none">none</string>
|
||||
<string name="sky">Sky</string>
|
||||
<string name="water">Water</string>
|
||||
<string name="day">Daycycle</string>
|
||||
|
||||
<!-- Not Worn Wearable Types -->
|
||||
<string name="shirt_not_worn">Shirt not worn</string>
|
||||
|
|
@ -2371,6 +2374,7 @@ Abuse Report</string>
|
|||
<string name="New Day">New Daycycle</string>
|
||||
<string name="New Water">New Water</string>
|
||||
<string name="New Sky">New Sky</string>
|
||||
<string name="New Settings">New Settings</string>
|
||||
|
||||
|
||||
<string name="/bow">/bow</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue