Merge viewer-bear
commit
b2fcb3fdc5
|
|
@ -2284,7 +2284,11 @@ std::string LLDAELoader::getElementLabel(daeElement *element)
|
|||
// retrieve index to distinguish items inside same parent
|
||||
size_t ind = 0;
|
||||
parent->getChildren().find(element, ind);
|
||||
index_string = "_" + boost::lexical_cast<std::string>(ind);
|
||||
|
||||
if (ind > 0)
|
||||
{
|
||||
index_string = "_" + boost::lexical_cast<std::string>(ind);
|
||||
}
|
||||
|
||||
// if parent has a name or ID, use it
|
||||
std::string name = parent->getAttribute("name");
|
||||
|
|
|
|||
|
|
@ -710,6 +710,7 @@ Function un.ProgramFiles
|
|||
%%DELETE_FILES%%
|
||||
|
||||
# Optional/obsolete files. Delete won't fail if they don't exist.
|
||||
Delete "$INSTDIR\autorun.bat"
|
||||
Delete "$INSTDIR\dronesettings.ini"
|
||||
Delete "$INSTDIR\message_template.msg"
|
||||
Delete "$INSTDIR\newview.pdb"
|
||||
|
|
@ -741,6 +742,16 @@ FOLDERFOUND:
|
|||
|
||||
NOFOLDER:
|
||||
|
||||
MessageBox MB_YESNO $(DeleteRegistryKeysMB) IDYES DeleteKeys IDNO NoDelete
|
||||
|
||||
DeleteKeys:
|
||||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\x-grid-location-info"
|
||||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\secondlife"
|
||||
DeleteRegKey HKEY_CLASSES_ROOT "x-grid-location-info"
|
||||
DeleteRegKey HKEY_CLASSES_ROOT "secondlife"
|
||||
|
||||
NoDelete:
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -430,6 +430,11 @@ void LLFloaterRegionInfo::processRegionInfo(LLMessageSystem* msg)
|
|||
panel->getChild<LLUICtrl>("object_bonus_spin")->setValue(LLSD(object_bonus_factor) );
|
||||
panel->getChild<LLUICtrl>("access_combo")->setValue(LLSD(sim_access) );
|
||||
|
||||
LLPanelRegionGeneralInfo* panel_general = LLFloaterRegionInfo::getPanelGeneral();
|
||||
if (panel)
|
||||
{
|
||||
panel_general->setObjBonusFactor(object_bonus_factor);
|
||||
}
|
||||
|
||||
// detect teen grid for maturity
|
||||
|
||||
|
|
@ -499,6 +504,16 @@ LLPanelEstateCovenant* LLFloaterRegionInfo::getPanelCovenant()
|
|||
return panel;
|
||||
}
|
||||
|
||||
// static
|
||||
LLPanelRegionGeneralInfo* LLFloaterRegionInfo::getPanelGeneral()
|
||||
{
|
||||
LLFloaterRegionInfo* floater = LLFloaterReg::getTypedInstance<LLFloaterRegionInfo>("region_info");
|
||||
if (!floater) return NULL;
|
||||
LLTabContainer* tab = floater->getChild<LLTabContainer>("region_panels");
|
||||
LLPanelRegionGeneralInfo* panel = (LLPanelRegionGeneralInfo*)tab->getChild<LLPanel>("General");
|
||||
return panel;
|
||||
}
|
||||
|
||||
// static
|
||||
LLPanelRegionTerrainInfo* LLFloaterRegionInfo::getPanelRegionTerrain()
|
||||
{
|
||||
|
|
@ -764,7 +779,42 @@ BOOL LLPanelRegionGeneralInfo::postBuild()
|
|||
childSetAction("im_btn", onClickMessage, this);
|
||||
// childSetAction("manage_telehub_btn", onClickManageTelehub, this);
|
||||
|
||||
return LLPanelRegionInfo::postBuild();
|
||||
LLUICtrl* apply_btn = findChild<LLUICtrl>("apply_btn");
|
||||
if (apply_btn)
|
||||
{
|
||||
apply_btn->setCommitCallback(boost::bind(&LLPanelRegionGeneralInfo::onBtnSet, this));
|
||||
}
|
||||
|
||||
refresh();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLPanelRegionGeneralInfo::onBtnSet()
|
||||
{
|
||||
if(mObjBonusFactor == getChild<LLUICtrl>("object_bonus_spin")->getValue().asReal())
|
||||
{
|
||||
if (sendUpdate())
|
||||
{
|
||||
disableButton("apply_btn");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LLNotificationsUtil::add("ChangeObjectBonusFactor", LLSD(), LLSD(), boost::bind(&LLPanelRegionGeneralInfo::onChangeObjectBonus, this, _1, _2));
|
||||
}
|
||||
}
|
||||
|
||||
bool LLPanelRegionGeneralInfo::onChangeObjectBonus(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if (option == 0)
|
||||
{
|
||||
if (sendUpdate())
|
||||
{
|
||||
disableButton("apply_btn");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void LLPanelRegionGeneralInfo::onClickKick()
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ public:
|
|||
static LLPanelEstateCovenant* getPanelCovenant();
|
||||
static LLPanelRegionTerrainInfo* getPanelRegionTerrain();
|
||||
static LLPanelRegionExperiences* getPanelExperiences();
|
||||
static LLPanelRegionGeneralInfo* getPanelGeneral();
|
||||
// <FS:CR> Aurora Sim - Region Settings Panel
|
||||
static LLPanelRegionOpenSettingsInfo* getPanelOpenSettings();
|
||||
// </FS:CR> Aurora Sim - Region Settings Panel
|
||||
|
|
@ -209,6 +210,9 @@ public:
|
|||
// LLPanel
|
||||
virtual BOOL postBuild();
|
||||
|
||||
void onBtnSet();
|
||||
void setObjBonusFactor(F32 object_bonus_factor) {mObjBonusFactor = object_bonus_factor;}
|
||||
|
||||
protected:
|
||||
virtual BOOL sendUpdate();
|
||||
void onClickKick();
|
||||
|
|
@ -217,6 +221,9 @@ protected:
|
|||
bool onKickAllCommit(const LLSD& notification, const LLSD& response);
|
||||
static void onClickMessage(void* userdata);
|
||||
bool onMessageCommit(const LLSD& notification, const LLSD& response);
|
||||
bool onChangeObjectBonus(const LLSD& notification, const LLSD& response);
|
||||
|
||||
F32 mObjBonusFactor;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -441,10 +441,20 @@ LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::unpackPSS(LLViewer
|
|||
return NULL;
|
||||
}
|
||||
|
||||
F32 prev_max_age = pssp->mPartSysData.mMaxAge;
|
||||
F32 prev_start_age = pssp->mPartSysData.mStartAge;
|
||||
if (!pssp->mPartSysData.unpackBlock(block_num))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
else if (pssp->mPartSysData.mMaxAge
|
||||
&& (prev_max_age != pssp->mPartSysData.mMaxAge || prev_start_age != pssp->mPartSysData.mStartAge))
|
||||
{
|
||||
// reusing existing pss, so reset time to allow particles to start again
|
||||
pssp->mLastUpdateTime = 0.f;
|
||||
pssp->mLastPartTime = 0.f;
|
||||
}
|
||||
|
||||
if (pssp->mPartSysData.mTargetUUID.notNull())
|
||||
{
|
||||
LLViewerObject *target_objp = gObjectList.findObject(pssp->mPartSysData.mTargetUUID);
|
||||
|
|
|
|||
|
|
@ -3658,6 +3658,19 @@ Teleport all residents in this region home?
|
|||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="ChangeObjectBonusFactor"
|
||||
type="alertmodal">
|
||||
Lowering the object bonus after builds have been established in a region may cause objects to be returned or deleted. Are you sure you want to change object bonus?
|
||||
<tag>confirm</tag>
|
||||
<usetemplate
|
||||
ignoretext="Confirm changing object bonus factor"
|
||||
name="okcancelignore"
|
||||
notext="Cancel"
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="EstateObjectReturn"
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
follows="left|top"
|
||||
height="32"
|
||||
left_pad="-11"
|
||||
max_length_bytes="16"
|
||||
max_length_bytes="64"
|
||||
text_pad_left="8"
|
||||
name="password_edit"
|
||||
label="Password"
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
width="200"
|
||||
height="32"
|
||||
left="220"
|
||||
max_length_bytes="16"
|
||||
max_length_bytes="64"
|
||||
name="password_edit"
|
||||
label="Password"
|
||||
text_pad_left="8"
|
||||
|
|
|
|||
Loading…
Reference in New Issue