[XP Tools] Initial merge Cherry Pick Also modernize llfloaterauction internally, but leave the ui the same for now. Breaks out script_question_mute() in llviewermessage.cpp to better sync with upstream Adds support for UnknownScriptQuestion notification (translators need to translate this one~) RLVa note: Rewrote RLVa permissions handling block just a bit. Added 13 new capabilities from the XP Tools, I doubt all of them really exist. Minor update to LLComboBox, decided against implementing LLIconsComboBox for now. Modified LLExperienceLog::notify to lookup names and display them along with the slurls since our editors don't do that automatically. Experience tweak: Changed a few notify's to notifytips so that we can click the links to experience profiles from chat instead of via hacked in buttons Migrated LLFloaterCompileQueue to a proper Instance Tracker so we can call getKey Modernized LLSD, gives us reverse iterators and the new debugging impl. We needed the reverse iterators. Experience tweak: Added virtual destructors to responders. Updated llhandle.h to allow calling getDerivedHandle in public. Updated LLScrollContainer and LLScrollBar to be more modern. Added LLFlatListView/flat_list_view from upstream - these don't seem work though? Added some newer login/logout strings to strings.xml Thanks for the default timeout policies, Aleric~ To avoid needing to scroll through tabs, about land tabs now are as big as they need to be to display their labels, same on groups Group Members and Roles has been renamed to just Members because this allows the new Experiences tab enough room to display. Thanks to Henri Beauchamp (Cool VL Viewer) for the setupList augmentation. (without it, I'd still be stuck) Thanks to Shyotl for the helpsies~ Added the LSL constants, events, and functions that LL neglected to put in. Added click callbacks and name lookups for profile linky texts~ Merge is up to 22b4cdc Old TODO: Get the uis looking nice (profiles? Experiences... floater) - done Old TODO: Make sure flatlistviews look okay... - Not using Old TODO: Fix LLFloaterExperiencePicker, right now the panel does not show. - unsure Old TODO: Remove the llfloaterabout.cpp change. - done Merges llexperiencecache with upstream and unstable Introduces LLCoroResponder, TODO: Make everything use this. Updates Reporter floater to the latest, supports the new cap thingy Also adds these commits/changes: [XPTools] Double clicking experiences in namelists should open the profile Add List.CopyNames support for Experiences [XP Tools] Some UI work, I'll do more later [XPTools] More UI Stuff, Later is now! Allow getSLURL for experiences WIP Experience list menu Also make EXPERIENCE > OBJECT, because mainline started OBJECT already [XPTools] Add Experience support to Name UI [XPTools] Fix experience profile UI 9c3067e843265587e91c659200a8d783acf2d9b2 [XPTools] Fix experience location showing "last" and getting set to "last" [XPTools] Move Experiences floater from view menu to world menu [XPTools] Fix up more UI [XPTools] Fix experiences panels [XPTools] Hide pieces of the Experiences menu when they're not usable [XPTools] More UI work, mostly to get the menus working [XPTools] The events list is for events, not experiences, remove menu # Conflicts: # indra/llcommon/llsd.cpp - merge with unstable branch # indra/llmessage/message_prehash.cpp # indra/llmessage/message_prehash.h # indra/llui/llscrollbar.cpp # indra/llui/llscrollcontainer.cpp # indra/llui/llurlentry.cpp # indra/llui/llurlregistry.cpp # indra/newview/app_settings/keywords.ini # indra/newview/app_settings/settings.xml # indra/newview/llappviewer.cpp # indra/newview/llappviewer.h # indra/newview/llassetuploadresponders.cpp # indra/newview/llcompilequeue.* - merge stable # indra/newview/llfloaterabout.cpp # indra/newview/llfloaterland.* - merge unstable # indra/newview/llfloaterproperties.cpp # indra/newview/llfloaterregioninfo.* - merge unstable # indra/newview/llmenucommands.cpp - merge unstable # indra/newview/llpreviewscript.cpp - merge unstable # indra/newview/llviewermessage.cpp - merge unstable # indra/newview/llviewerregion.cpp - merge unstable # indra/newview/skins/default/textures/textures.xml - merge unstable # indra/newview/skins/default/xui/en-us/strings.xml - merge unstable
218 lines
8.0 KiB
C
218 lines
8.0 KiB
C
/**
|
|
* @file llregionflags.h
|
|
* @brief Flags that are sent in the statistics message region_flags field.
|
|
*
|
|
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
|
|
* Second Life Viewer Source Code
|
|
* Copyright (C) 2010, Linden Research, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation;
|
|
* version 2.1 of the License only.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
|
* $/LicenseInfo$
|
|
*/
|
|
|
|
#ifndef LL_LLREGIONFLAGS_H
|
|
#define LL_LLREGIONFLAGS_H
|
|
|
|
// Can you be hurt here? Should health be on?
|
|
const U64 REGION_FLAGS_ALLOW_DAMAGE = (1 << 0);
|
|
|
|
// Can you make landmarks here?
|
|
const U64 REGION_FLAGS_ALLOW_LANDMARK = (1 << 1);
|
|
|
|
// Do we reset the home position when someone teleports away from here?
|
|
const U64 REGION_FLAGS_ALLOW_SET_HOME = (1 << 2);
|
|
|
|
// Do we reset the home position when someone teleports away from here?
|
|
const U64 REGION_FLAGS_RESET_HOME_ON_TELEPORT = (1 << 3);
|
|
|
|
// Does the sun move?
|
|
const U64 REGION_FLAGS_SUN_FIXED = (1 << 4);
|
|
|
|
// Does the estate owner allow private parcels?
|
|
const U64 REGION_FLAGS_ALLOW_ACCESS_OVERRIDE = (1 << 5);
|
|
|
|
// Can't change the terrain heightfield, even on owned parcels,
|
|
// but can plant trees and grass.
|
|
const U64 REGION_FLAGS_BLOCK_TERRAFORM = (1 << 6);
|
|
|
|
// Can't release, sell, or buy land.
|
|
const U64 REGION_FLAGS_BLOCK_LAND_RESELL = (1 << 7);
|
|
|
|
// All content wiped once per night
|
|
const U64 REGION_FLAGS_SANDBOX = (1 << 8);
|
|
|
|
const U64 REGION_FLAGS_ALLOW_ENVIRONMENT_OVERRIDE = (1 << 9);
|
|
|
|
const U64 REGION_FLAGS_GAMING = (1 << 10); // Denotes a gaming region on certain grids
|
|
const U64 REGION_FLAGS_HIDE_FROM_SEARCH = (1 << 11); // Hides region from search on certain grids
|
|
const U64 REGION_FLAGS_SKIP_COLLISIONS = (1 << 12); // Pin all non agent rigid bodies
|
|
const U64 REGION_FLAGS_SKIP_SCRIPTS = (1 << 13);
|
|
const U64 REGION_FLAGS_SKIP_PHYSICS = (1 << 14); // Skip all physics
|
|
const U64 REGION_FLAGS_EXTERNALLY_VISIBLE = (1 << 15);
|
|
const U64 REGION_FLAGS_ALLOW_RETURN_ENCROACHING_OBJECT = (1 << 16);
|
|
const U64 REGION_FLAGS_ALLOW_RETURN_ENCROACHING_ESTATE_OBJECT = (1 << 17);
|
|
const U64 REGION_FLAGS_BLOCK_DWELL = (1 << 18);
|
|
|
|
// Is flight allowed?
|
|
const U64 REGION_FLAGS_BLOCK_FLY = (1 << 19);
|
|
|
|
// Is direct teleport (p2p) allowed?
|
|
const U64 REGION_FLAGS_ALLOW_DIRECT_TELEPORT = (1 << 20);
|
|
|
|
// Is there an administrative override on scripts in the region at the
|
|
// moment. This is the similar skip scripts, except this flag is
|
|
// presisted in the database on an estate level.
|
|
const U64 REGION_FLAGS_ESTATE_SKIP_SCRIPTS = (1 << 21);
|
|
|
|
const U64 REGION_FLAGS_RESTRICT_PUSHOBJECT = (1 << 22);
|
|
|
|
const U64 REGION_FLAGS_DENY_ANONYMOUS = (1 << 23);
|
|
|
|
const U64 REGION_FLAGS_ALLOW_PARCEL_CHANGES = (1 << 26);
|
|
|
|
const U64 REGION_FLAGS_BLOCK_FLYOVER = (1 << 27);
|
|
|
|
const U64 REGION_FLAGS_ALLOW_VOICE = (1 << 28);
|
|
|
|
const U64 REGION_FLAGS_BLOCK_PARCEL_SEARCH = (1 << 29);
|
|
const U64 REGION_FLAGS_DENY_AGEUNVERIFIED = (1 << 30);
|
|
|
|
const U64 REGION_FLAGS_DEFAULT = REGION_FLAGS_ALLOW_LANDMARK |
|
|
REGION_FLAGS_ALLOW_SET_HOME |
|
|
REGION_FLAGS_ALLOW_PARCEL_CHANGES |
|
|
REGION_FLAGS_ALLOW_VOICE;
|
|
|
|
|
|
const U64 REGION_FLAGS_PRELUDE_SET = REGION_FLAGS_RESET_HOME_ON_TELEPORT;
|
|
const U64 REGION_FLAGS_PRELUDE_UNSET = REGION_FLAGS_ALLOW_LANDMARK
|
|
| REGION_FLAGS_ALLOW_SET_HOME;
|
|
|
|
const U64 REGION_FLAGS_ESTATE_MASK = REGION_FLAGS_EXTERNALLY_VISIBLE
|
|
| REGION_FLAGS_SUN_FIXED
|
|
| REGION_FLAGS_DENY_ANONYMOUS
|
|
| REGION_FLAGS_DENY_AGEUNVERIFIED;
|
|
|
|
// 'Gaming' flags
|
|
const U32 REGION_GAMING_PRESENT = (1 << 0);
|
|
const U32 REGION_GAMING_HIDE_PARCEL = (1 << 1);
|
|
const U32 REGION_GAMING_HIDE_FIND_ALL = (1 << 2);
|
|
const U32 REGION_GAMING_HIDE_FIND_CLASSIFIEDS = (1 << 3);
|
|
const U32 REGION_GAMING_HIDE_FIND_EVENTS = (1 << 4);
|
|
const U32 REGION_GAMING_HIDE_FIND_LAND = (1 << 5);
|
|
const U32 REGION_GAMING_HIDE_FIND_SIMS = (1 << 6);
|
|
const U32 REGION_GAMING_HIDE_FIND_GROUPS = (1 << 7);
|
|
const U32 REGION_GAMING_HIDE_FIND_ALL_CLASSIC = (1 << 8);
|
|
const U32 REGION_GAMING_HIDE_GOD_FLOATER = (1 << 9);
|
|
|
|
inline BOOL is_prelude( U64 flags )
|
|
{
|
|
// definition of prelude does not depend on fixed-sun
|
|
return 0 == (flags & REGION_FLAGS_PRELUDE_UNSET)
|
|
&& 0 != (flags & REGION_FLAGS_PRELUDE_SET);
|
|
}
|
|
|
|
inline U64 set_prelude_flags(U64 flags)
|
|
{
|
|
// also set the sun-fixed flag
|
|
return ((flags & ~REGION_FLAGS_PRELUDE_UNSET)
|
|
| (REGION_FLAGS_PRELUDE_SET | REGION_FLAGS_SUN_FIXED));
|
|
}
|
|
|
|
inline U64 unset_prelude_flags(U64 flags)
|
|
{
|
|
// also unset the fixed-sun flag
|
|
return ((flags | REGION_FLAGS_PRELUDE_UNSET)
|
|
& ~(REGION_FLAGS_PRELUDE_SET | REGION_FLAGS_SUN_FIXED));
|
|
}
|
|
|
|
// Region protocols
|
|
const U64 REGION_PROTOCOLS_AGENT_APPEARANCE_SERVICE = (1 << 0);
|
|
|
|
// estate constants. Need to match first few etries in indra.estate table.
|
|
const U32 ESTATE_ALL = 0; // will not match in db, reserved key for logic
|
|
const U32 ESTATE_MAINLAND = 1;
|
|
const U32 ESTATE_ORIENTATION = 2;
|
|
const U32 ESTATE_INTERNAL = 3;
|
|
const U32 ESTATE_SHOWCASE = 4;
|
|
const U32 ESTATE_TEEN = 5;
|
|
const U32 ESTATE_LAST_LINDEN = 5; // last linden owned/managed estate
|
|
|
|
// for EstateOwnerRequest, setaccess message
|
|
const U32 ESTATE_ACCESS_ALLOWED_AGENTS = 1 << 0;
|
|
const U32 ESTATE_ACCESS_ALLOWED_GROUPS = 1 << 1;
|
|
const U32 ESTATE_ACCESS_BANNED_AGENTS = 1 << 2;
|
|
const U32 ESTATE_ACCESS_MANAGERS = 1 << 3;
|
|
|
|
//maximum number of access list entries we can fit in one packet
|
|
const S32 ESTATE_ACCESS_MAX_ENTRIES_PER_PACKET = 63;
|
|
|
|
// for reply to "getinfo", don't need to forward to all sims in estate
|
|
const U32 ESTATE_ACCESS_SEND_TO_AGENT_ONLY = 1 << 4;
|
|
|
|
const U32 ESTATE_ACCESS_ALL = ESTATE_ACCESS_ALLOWED_AGENTS
|
|
| ESTATE_ACCESS_ALLOWED_GROUPS
|
|
| ESTATE_ACCESS_BANNED_AGENTS
|
|
| ESTATE_ACCESS_MANAGERS;
|
|
|
|
// for EstateOwnerRequest, estateaccessdelta, estateexperiencedelta messages
|
|
const U32 ESTATE_ACCESS_APPLY_TO_ALL_ESTATES = 1U << 0;
|
|
const U32 ESTATE_ACCESS_APPLY_TO_MANAGED_ESTATES = 1U << 1;
|
|
|
|
const U32 ESTATE_ACCESS_ALLOWED_AGENT_ADD = 1U << 2;
|
|
const U32 ESTATE_ACCESS_ALLOWED_AGENT_REMOVE = 1U << 3;
|
|
const U32 ESTATE_ACCESS_ALLOWED_GROUP_ADD = 1U << 4;
|
|
const U32 ESTATE_ACCESS_ALLOWED_GROUP_REMOVE = 1U << 5;
|
|
const U32 ESTATE_ACCESS_BANNED_AGENT_ADD = 1U << 6;
|
|
const U32 ESTATE_ACCESS_BANNED_AGENT_REMOVE = 1U << 7;
|
|
const U32 ESTATE_ACCESS_MANAGER_ADD = 1U << 8;
|
|
const U32 ESTATE_ACCESS_MANAGER_REMOVE = 1U << 9;
|
|
const U32 ESTATE_ACCESS_NO_REPLY = 1U << 10;
|
|
const U32 ESTATE_ACCESS_FAILED_BAN_ESTATE_MANAGER = 1U << 11;
|
|
|
|
const S32 ESTATE_MAX_MANAGERS = 15;
|
|
const S32 ESTATE_MAX_ACCESS_IDS = 500; // max for access, banned
|
|
const S32 ESTATE_MAX_GROUP_IDS = (S32) ESTATE_ACCESS_MAX_ENTRIES_PER_PACKET;
|
|
|
|
// 'Sim Wide Delete' flags
|
|
const U32 SWD_OTHERS_LAND_ONLY = (1 << 0);
|
|
const U32 SWD_ALWAYS_RETURN_OBJECTS = (1 << 1);
|
|
const U32 SWD_SCRIPTED_ONLY = (1 << 2);
|
|
|
|
// Controls experience key validity in the estate
|
|
const U32 EXPERIENCE_KEY_TYPE_NONE = 0;
|
|
const U32 EXPERIENCE_KEY_TYPE_BLOCKED = 1;
|
|
const U32 EXPERIENCE_KEY_TYPE_ALLOWED = 2;
|
|
const U32 EXPERIENCE_KEY_TYPE_TRUSTED = 3;
|
|
|
|
const U32 EXPERIENCE_KEY_TYPE_FIRST = EXPERIENCE_KEY_TYPE_BLOCKED;
|
|
const U32 EXPERIENCE_KEY_TYPE_LAST = EXPERIENCE_KEY_TYPE_TRUSTED;
|
|
|
|
//
|
|
const U32 ESTATE_EXPERIENCE_TRUSTED_ADD = 1U << 2;
|
|
const U32 ESTATE_EXPERIENCE_TRUSTED_REMOVE = 1U << 3;
|
|
const U32 ESTATE_EXPERIENCE_ALLOWED_ADD = 1U << 4;
|
|
const U32 ESTATE_EXPERIENCE_ALLOWED_REMOVE = 1U << 5;
|
|
const U32 ESTATE_EXPERIENCE_BLOCKED_ADD = 1U << 6;
|
|
const U32 ESTATE_EXPERIENCE_BLOCKED_REMOVE = 1U << 7;
|
|
|
|
const S32 ESTATE_MAX_EXPERIENCE_IDS = 8;
|
|
|
|
|
|
#endif
|
|
|
|
|