Pull from richard/viewer-experience-fui/
|
|
@ -152,7 +152,7 @@ bool LLCommandManager::load()
|
|||
|
||||
if (!commandsParams.validateBlock())
|
||||
{
|
||||
llerrs << "Unable to validate commands param block from file: " << commands_file << llendl;
|
||||
llerrs << "Invalid commands file: " << commands_file << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -840,9 +840,9 @@ void LLFloater::applyRectControl()
|
|||
if (mRectControl.size() > 1)
|
||||
{
|
||||
const LLRect& rect = getControlGroup()->getRect(mRectControl);
|
||||
if (rect.getWidth() > 0 && rect.getHeight() > 0)
|
||||
if (rect.notEmpty())
|
||||
{
|
||||
translate( rect.mLeft - getRect().mLeft, rect.mBottom - getRect().mBottom);
|
||||
setOrigin(rect.mLeft, rect.mBottom);
|
||||
if (mResizable)
|
||||
{
|
||||
reshape(llmax(mMinWidth, rect.getWidth()), llmax(mMinHeight, rect.getHeight()));
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@
|
|||
tooltip_ref="Command_Build_Tooltip"
|
||||
execute_function="Floater.ToolbarToggle"
|
||||
execute_parameters="build"
|
||||
is_enabled_function="Agent.IsActionAllowed"
|
||||
is_enabled_parameters="build"
|
||||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="build"
|
||||
/>
|
||||
|
|
@ -207,6 +209,8 @@
|
|||
tooltip_ref="Command_Speak_Tooltip"
|
||||
execute_function="Floater.ToolbarToggle"
|
||||
execute_parameters="speak"
|
||||
is_enabled_function="Agent.IsActionAllowed"
|
||||
is_enabled_parameters="speak"
|
||||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="speak"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -4246,7 +4246,7 @@
|
|||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>InventoryDisplayOutbox</key>
|
||||
<map>
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
#include "lltoolpie.h"
|
||||
#include "lltoolmgr.h"
|
||||
#include "lltrans.h"
|
||||
#include "lluictrl.h"
|
||||
#include "llurlentry.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewerdisplay.h"
|
||||
|
|
@ -152,6 +153,34 @@ bool handleSlowMotionAnimation(const LLSD& newvalue)
|
|||
return true;
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAgent::parcelChangedCallback()
|
||||
{
|
||||
bool can_edit = LLToolMgr::getInstance()->canEdit();
|
||||
|
||||
gAgent.mCanEditParcel = can_edit;
|
||||
}
|
||||
|
||||
// static
|
||||
bool LLAgent::isActionAllowed(const LLSD& sdname)
|
||||
{
|
||||
bool retval = false;
|
||||
|
||||
const std::string& param = sdname.asString();
|
||||
|
||||
if (param == "build")
|
||||
{
|
||||
retval = gAgent.canEditParcel();
|
||||
}
|
||||
else if (param == "speak")
|
||||
{
|
||||
retval = true;
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************
|
||||
// Enabled this definition to compile a 'hacked' viewer that
|
||||
// locally believes the end user has godlike powers.
|
||||
|
|
@ -183,6 +212,7 @@ LLAgent::LLAgent() :
|
|||
mbTeleportKeepsLookAt(false),
|
||||
|
||||
mAgentAccess(new LLAgentAccess(gSavedSettings)),
|
||||
mCanEditParcel(false),
|
||||
mTeleportSourceSLURL(new LLSLURL),
|
||||
mTeleportState( TELEPORT_NONE ),
|
||||
mRegionp(NULL),
|
||||
|
|
@ -246,6 +276,10 @@ LLAgent::LLAgent() :
|
|||
mListener.reset(new LLAgentListener(*this));
|
||||
|
||||
mMoveTimer.stop();
|
||||
|
||||
LLViewerParcelMgr::getInstance()->addAgentParcelChangedCallback(boost::bind(&LLAgent::parcelChangedCallback));
|
||||
|
||||
LLUICtrl::EnableCallbackRegistry::currentRegistrar().add("Agent.IsActionAllowed", boost::bind(&LLAgent::isActionAllowed, _2));
|
||||
}
|
||||
|
||||
// Requires gSavedSettings to be initialized.
|
||||
|
|
@ -3361,7 +3395,14 @@ bool LLAgent::teleportCore(bool is_local)
|
|||
LLFloaterReg::hideInstance("region_info");
|
||||
|
||||
// minimize the Search floater (STORM-1474)
|
||||
LLFloaterReg::getInstance("search")->setMinimized(TRUE);
|
||||
{
|
||||
LLFloater* instance = LLFloaterReg::getInstance("search");
|
||||
|
||||
if (instance && instance->getVisible())
|
||||
{
|
||||
instance->setMinimized(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
LLViewerParcelMgr::getInstance()->deselectLand();
|
||||
LLViewerMediaFocus::getInstance()->clearFocus();
|
||||
|
|
|
|||
|
|
@ -575,6 +575,15 @@ private:
|
|||
** **
|
||||
*******************************************************************************/
|
||||
|
||||
// Build
|
||||
public:
|
||||
bool canEditParcel() const { return mCanEditParcel; }
|
||||
private:
|
||||
bool mCanEditParcel;
|
||||
|
||||
static bool isActionAllowed(const LLSD& sdname);
|
||||
static void parcelChangedCallback();
|
||||
|
||||
/********************************************************************************
|
||||
** **
|
||||
** ACCESS
|
||||
|
|
|
|||
|
|
@ -1488,7 +1488,8 @@ void LLViewerMedia::setOpenIDCookie()
|
|||
new LLViewerMediaWebProfileResponder(raw_profile_url.getAuthority()),
|
||||
headers);
|
||||
|
||||
doOnetimeEarlyHTTPRequests();
|
||||
// FUI: No longer perform the user_status query
|
||||
//doOnetimeEarlyHTTPRequests();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -125,29 +125,29 @@ with the same filename but different name
|
|||
<texture name="Checkbox_Press" file_name="widgets/Checkbox_Press.png" preload="true" />
|
||||
<texture name="Check_Mark" file_name="icons/check_mark" preload="true" />
|
||||
|
||||
<texture name="Command_AboutLand_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Appearance_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Avatar_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Build_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Chat_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Compass_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Destinations_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Gestures_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_HowTo_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Inventory_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Map_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Marketplace_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_MiniMap_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Move_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_People_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Places_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Preferences_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Profile_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Search_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Snapshot_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Speak_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_View_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_Voice_Icon" file_name="taskpanel/TabIcon_Home_Off.png" preload="true" />
|
||||
<texture name="Command_AboutLand_Icon" file_name="toolbar_icons/land.png" preload="true" />
|
||||
<texture name="Command_Appearance_Icon" file_name="toolbar_icons/appearance.png" preload="true" />
|
||||
<texture name="Command_Avatar_Icon" file_name="toolbar_icons/avatars.png" preload="true" />
|
||||
<texture name="Command_Build_Icon" file_name="toolbar_icons/build.png" preload="true" />
|
||||
<texture name="Command_Chat_Icon" file_name="toolbar_icons/chat.png" preload="true" />
|
||||
<texture name="Command_Compass_Icon" file_name="toolbar_icons/land.png" preload="true" />
|
||||
<texture name="Command_Destinations_Icon" file_name="toolbar_icons/destinations.png" preload="true" />
|
||||
<texture name="Command_Gestures_Icon" file_name="toolbar_icons/gestures.png" preload="true" />
|
||||
<texture name="Command_HowTo_Icon" file_name="toolbar_icons/howto.png" preload="true" />
|
||||
<texture name="Command_Inventory_Icon" file_name="toolbar_icons/inventory.png" preload="true" />
|
||||
<texture name="Command_Map_Icon" file_name="toolbar_icons/map.png" preload="true" />
|
||||
<texture name="Command_Marketplace_Icon" file_name="toolbar_icons/marketplace.png" preload="true" />
|
||||
<texture name="Command_MiniMap_Icon" file_name="toolbar_icons/mini_map.png" preload="true" />
|
||||
<texture name="Command_Move_Icon" file_name="toolbar_icons/move.png" preload="true" />
|
||||
<texture name="Command_People_Icon" file_name="toolbar_icons/people.png" preload="true" />
|
||||
<texture name="Command_Places_Icon" file_name="toolbar_icons/places.png" preload="true" />
|
||||
<texture name="Command_Preferences_Icon" file_name="toolbar_icons/preferences.png" preload="true" />
|
||||
<texture name="Command_Profile_Icon" file_name="toolbar_icons/profile.png" preload="true" />
|
||||
<texture name="Command_Search_Icon" file_name="toolbar_icons/search.png" preload="true" />
|
||||
<texture name="Command_Snapshot_Icon" file_name="toolbar_icons/snapshot.png" preload="true" />
|
||||
<texture name="Command_Speak_Icon" file_name="toolbar_icons/speak.png" preload="true" />
|
||||
<texture name="Command_View_Icon" file_name="toolbar_icons/view.png" preload="true" />
|
||||
<texture name="Command_Voice_Icon" file_name="toolbar_icons/nearbyvoice.png" preload="true" />
|
||||
|
||||
<texture name="ComboButton_Disabled" file_name="widgets/ComboButton_Disabled.png" preload="true" scale.left="2" scale.top="19" scale.right="18" scale.bottom="2" />
|
||||
<texture name="ComboButton_Selected" file_name="widgets/ComboButton_Selected.png" preload="true" scale.left="2" scale.top="19" scale.right="18" scale.bottom="2" />
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -90,15 +90,6 @@
|
|||
top="0"
|
||||
visible="false"
|
||||
width="1024"/>
|
||||
<panel bottom="500"
|
||||
follows="left|right|bottom"
|
||||
height="25"
|
||||
left="0"
|
||||
mouse_opaque="false"
|
||||
tab_stop="false"
|
||||
name="stand_stop_flying_container"
|
||||
visible="false"
|
||||
width="500"/>
|
||||
</layout_panel>
|
||||
<!--<layout_panel auto_resize="false"
|
||||
min_height="33"
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@
|
|||
<toolbar follows="left|top|bottom"
|
||||
button_panel.bg_opaque_image="Rounded_Rect_Right"
|
||||
name="toolbar_left"
|
||||
height="483"
|
||||
width="30"
|
||||
left="0"
|
||||
top="10"
|
||||
bottom="-10"
|
||||
side="left"
|
||||
button_display_mode="icons_only">
|
||||
</toolbar>
|
||||
|
|
@ -52,7 +52,19 @@
|
|||
<layout_panel name="non_toolbar_panel"
|
||||
auto_resize="true"
|
||||
user_resize="false"
|
||||
mouse_opaque="false"/>
|
||||
mouse_opaque="false"
|
||||
height="100"
|
||||
width="100">
|
||||
<panel bottom="100"
|
||||
follows="left|right|bottom"
|
||||
height="25"
|
||||
left="0"
|
||||
mouse_opaque="false"
|
||||
tab_stop="false"
|
||||
name="stand_stop_flying_container"
|
||||
visible="false"
|
||||
width="100"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="right_toolbar_panel"
|
||||
auto_resize="false"
|
||||
user_resize="false"
|
||||
|
|
@ -63,10 +75,10 @@
|
|||
button_panel.bg_opaque_image="Rounded_Rect_Left"
|
||||
follows="right|top|bottom"
|
||||
name="toolbar_right"
|
||||
height="483"
|
||||
width="30"
|
||||
left="0"
|
||||
top="10"
|
||||
bottom="-10"
|
||||
side="right"
|
||||
button_display_mode="icons_only">
|
||||
</toolbar>
|
||||
|
|
@ -83,8 +95,8 @@
|
|||
button_panel.bg_opaque_image="Rounded_Rect_Top"
|
||||
name="toolbar_bottom"
|
||||
height="30"
|
||||
width="944"
|
||||
left="40"
|
||||
right="-40"
|
||||
top="0"
|
||||
side="bottom"
|
||||
follows="left|right|bottom"
|
||||
|
|
|
|||