Merge from default branch
--HG-- branch : product-engine
commit
8c83a6ca62
|
|
@ -139,7 +139,7 @@ namespace LLInitParam
|
|||
|
||||
bool BaseBlock::validateBlock(bool emit_errors) const
|
||||
{
|
||||
const BlockDescriptor& block_data = getBlockDescriptor();
|
||||
const BlockDescriptor& block_data = mostDerivedBlockDescriptor();
|
||||
for (BlockDescriptor::param_validation_list_t::const_iterator it = block_data.mValidationList.begin(); it != block_data.mValidationList.end(); ++it)
|
||||
{
|
||||
const Param* param = getParamFromHandle(it->first);
|
||||
|
|
@ -159,7 +159,7 @@ namespace LLInitParam
|
|||
{
|
||||
// named param is one like LLView::Params::follows
|
||||
// unnamed param is like LLView::Params::rect - implicit
|
||||
const BlockDescriptor& block_data = getBlockDescriptor();
|
||||
const BlockDescriptor& block_data = mostDerivedBlockDescriptor();
|
||||
|
||||
for (BlockDescriptor::param_list_t::const_iterator it = block_data.mUnnamedParams.begin();
|
||||
it != block_data.mUnnamedParams.end();
|
||||
|
|
@ -230,7 +230,7 @@ namespace LLInitParam
|
|||
{
|
||||
// named param is one like LLView::Params::follows
|
||||
// unnamed param is like LLView::Params::rect - implicit
|
||||
const BlockDescriptor& block_data = getBlockDescriptor();
|
||||
const BlockDescriptor& block_data = mostDerivedBlockDescriptor();
|
||||
|
||||
for (BlockDescriptor::param_list_t::const_iterator it = block_data.mUnnamedParams.begin();
|
||||
it != block_data.mUnnamedParams.end();
|
||||
|
|
@ -301,7 +301,7 @@ namespace LLInitParam
|
|||
|
||||
bool BaseBlock::deserializeBlock(Parser& p, Parser::name_stack_range_t name_stack)
|
||||
{
|
||||
BlockDescriptor& block_data = getBlockDescriptor();
|
||||
BlockDescriptor& block_data = mostDerivedBlockDescriptor();
|
||||
bool names_left = name_stack.first != name_stack.second;
|
||||
|
||||
if (names_left)
|
||||
|
|
@ -386,7 +386,7 @@ namespace LLInitParam
|
|||
|
||||
void BaseBlock::addSynonym(Param& param, const std::string& synonym)
|
||||
{
|
||||
BlockDescriptor& block_data = getBlockDescriptor();
|
||||
BlockDescriptor& block_data = mostDerivedBlockDescriptor();
|
||||
if (block_data.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
{
|
||||
param_handle_t handle = getHandleFromParam(¶m);
|
||||
|
|
@ -417,8 +417,8 @@ namespace LLInitParam
|
|||
{
|
||||
if (user_provided)
|
||||
{
|
||||
mChangeVersion++;
|
||||
}
|
||||
mChangeVersion++;
|
||||
}
|
||||
}
|
||||
|
||||
const std::string& BaseBlock::getParamName(const BlockDescriptor& block_data, const Param* paramp) const
|
||||
|
|
@ -445,7 +445,7 @@ namespace LLInitParam
|
|||
|
||||
ParamDescriptor* BaseBlock::findParamDescriptor(param_handle_t handle)
|
||||
{
|
||||
BlockDescriptor& descriptor = getBlockDescriptor();
|
||||
BlockDescriptor& descriptor = mostDerivedBlockDescriptor();
|
||||
BlockDescriptor::all_params_list_t::iterator end_it = descriptor.mAllParams.end();
|
||||
for (BlockDescriptor::all_params_list_t::iterator it = descriptor.mAllParams.begin();
|
||||
it != end_it;
|
||||
|
|
@ -460,7 +460,7 @@ namespace LLInitParam
|
|||
// NOTE: this requires that "other" is of the same derived type as this
|
||||
bool BaseBlock::merge(BlockDescriptor& block_data, const BaseBlock& other, bool overwrite)
|
||||
{
|
||||
bool param_changed = false;
|
||||
bool some_param_changed = false;
|
||||
BlockDescriptor::all_params_list_t::const_iterator end_it = block_data.mAllParams.end();
|
||||
for (BlockDescriptor::all_params_list_t::const_iterator it = block_data.mAllParams.begin();
|
||||
it != end_it;
|
||||
|
|
@ -471,10 +471,10 @@ namespace LLInitParam
|
|||
if (merge_func)
|
||||
{
|
||||
Param* paramp = getParamFromHandle(it->mParamHandle);
|
||||
param_changed |= merge_func(*paramp, *other_paramp, overwrite);
|
||||
some_param_changed |= merge_func(*paramp, *other_paramp, overwrite);
|
||||
}
|
||||
}
|
||||
return param_changed;
|
||||
return some_param_changed;
|
||||
}
|
||||
|
||||
bool ParamCompare<LLSD, false>::equals(const LLSD &a, const LLSD &b)
|
||||
|
|
|
|||
|
|
@ -477,10 +477,10 @@ namespace LLInitParam
|
|||
|
||||
bool deserializeBlock(Parser& p, Parser::name_stack_range_t name_stack);
|
||||
bool serializeBlock(Parser& p, Parser::name_stack_t name_stack = Parser::name_stack_t(), const BaseBlock* diff_block = NULL) const;
|
||||
virtual bool inspectBlock(Parser& p, Parser::name_stack_t name_stack = Parser::name_stack_t()) const;
|
||||
bool inspectBlock(Parser& p, Parser::name_stack_t name_stack = Parser::name_stack_t()) const;
|
||||
|
||||
const BlockDescriptor& getBlockDescriptor() const { return *mBlockDescriptor; }
|
||||
BlockDescriptor& getBlockDescriptor() { return *mBlockDescriptor; }
|
||||
const BlockDescriptor& mostDerivedBlockDescriptor() const { return *mBlockDescriptor; }
|
||||
BlockDescriptor& mostDerivedBlockDescriptor() { return *mBlockDescriptor; }
|
||||
|
||||
// take all provided params from other and apply to self
|
||||
bool overwriteFrom(const BaseBlock& other)
|
||||
|
|
@ -507,7 +507,7 @@ namespace LLInitParam
|
|||
|
||||
BlockDescriptor* mBlockDescriptor; // most derived block descriptor
|
||||
|
||||
static BlockDescriptor& blockDescriptor()
|
||||
static BlockDescriptor& selfBlockDescriptor()
|
||||
{
|
||||
static BlockDescriptor sBlockDescriptor;
|
||||
return sBlockDescriptor;
|
||||
|
|
@ -559,7 +559,7 @@ namespace LLInitParam
|
|||
TypedParam(BlockDescriptor& block_descriptor, const char* name, value_assignment_t value, ParamDescriptor::validation_func_t validate_func, S32 min_count, S32 max_count)
|
||||
: Param(block_descriptor.mCurrentBlockPtr)
|
||||
{
|
||||
if (block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
if (LL_UNLIKELY(block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING))
|
||||
{
|
||||
ParamDescriptor param_descriptor(block_descriptor.mCurrentBlockPtr->getHandleFromParam(this),
|
||||
&mergeWith,
|
||||
|
|
@ -584,6 +584,7 @@ namespace LLInitParam
|
|||
{
|
||||
if (parser.readValue<T>(typed_param.mData.mValue))
|
||||
{
|
||||
typed_param.mData.clearKey();
|
||||
typed_param.setProvided(true);
|
||||
typed_param.enclosingBlock().setLastChangedParam(param, true);
|
||||
return true;
|
||||
|
|
@ -690,7 +691,7 @@ namespace LLInitParam
|
|||
&& (overwrite || !dst_typed_param.isProvided()))
|
||||
{
|
||||
dst_typed_param.mData.clearKey();
|
||||
dst_typed_param = src_typed_param;
|
||||
dst_typed_param.set(src_typed_param.get());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -722,7 +723,7 @@ namespace LLInitParam
|
|||
: Param(block_descriptor.mCurrentBlockPtr),
|
||||
T(value)
|
||||
{
|
||||
if (block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
if (LL_UNLIKELY(block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING))
|
||||
{
|
||||
ParamDescriptor param_descriptor(block_descriptor.mCurrentBlockPtr->getHandleFromParam(this),
|
||||
&mergeWith,
|
||||
|
|
@ -741,6 +742,7 @@ namespace LLInitParam
|
|||
// attempt to parse block...
|
||||
if(typed_param.deserializeBlock(parser, name_stack))
|
||||
{
|
||||
typed_param.mData.clearKey();
|
||||
typed_param.enclosingBlock().setLastChangedParam(param, true);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -856,21 +858,10 @@ namespace LLInitParam
|
|||
{
|
||||
const self_t& src_typed_param = static_cast<const self_t&>(src);
|
||||
self_t& dst_typed_param = static_cast<self_t&>(dst);
|
||||
if (overwrite)
|
||||
if (dst_typed_param.T::merge(BaseBlock::selfBlockDescriptor(), src_typed_param, overwrite || !dst_typed_param.isProvided()))
|
||||
{
|
||||
if (dst_typed_param.T::overwriteFrom(src_typed_param))
|
||||
{
|
||||
dst_typed_param.mData.clearKey();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dst_typed_param.T::fillFrom(src_typed_param))
|
||||
{
|
||||
dst_typed_param.mData.clearKey();
|
||||
return true;
|
||||
}
|
||||
dst_typed_param.mData.clearKey();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -911,7 +902,7 @@ namespace LLInitParam
|
|||
mValues(value)
|
||||
{
|
||||
mCachedKeys.resize(mValues.size());
|
||||
if (block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
if (LL_UNLIKELY(block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING))
|
||||
{
|
||||
ParamDescriptor param_descriptor(block_descriptor.mCurrentBlockPtr->getHandleFromParam(this),
|
||||
&mergeWith,
|
||||
|
|
@ -1060,9 +1051,9 @@ namespace LLInitParam
|
|||
self_t& dst_typed_param = static_cast<self_t&>(dst);
|
||||
|
||||
if (src_typed_param.isProvided()
|
||||
&& (overwrite || !isProvided()))
|
||||
&& (overwrite || !dst_typed_param.isProvided()))
|
||||
{
|
||||
dst_typed_param = src_typed_param;
|
||||
dst_typed_param.set(src_typed_param.get());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -1094,7 +1085,7 @@ namespace LLInitParam
|
|||
mLastParamGeneration(0)
|
||||
{
|
||||
mCachedKeys.resize(mValues.size());
|
||||
if (block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
if (LL_UNLIKELY(block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING))
|
||||
{
|
||||
ParamDescriptor param_descriptor(block_descriptor.mCurrentBlockPtr->getHandleFromParam(this),
|
||||
&mergeWith,
|
||||
|
|
@ -1252,7 +1243,7 @@ namespace LLInitParam
|
|||
if (src_typed_param.isProvided()
|
||||
&& (overwrite || !dst_typed_param.isProvided()))
|
||||
{
|
||||
dst_typed_param = src_typed_param;
|
||||
dst_typed_param.set(src_typed_param.get());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -1282,13 +1273,24 @@ namespace LLInitParam
|
|||
// take all provided params from other and apply to self
|
||||
bool overwriteFrom(const self_t& other)
|
||||
{
|
||||
mCurChoice = other.mCurChoice;
|
||||
return BaseBlock::merge(blockDescriptor(), other, true);
|
||||
return merge(selfBlockDescriptor(), other, true);
|
||||
}
|
||||
|
||||
// take all provided params that are not already provided, and apply to self
|
||||
bool fillFrom(const self_t& other)
|
||||
{
|
||||
return merge(selfBlockDescriptor(), other, false);
|
||||
}
|
||||
|
||||
// merge with other block
|
||||
bool merge(BlockDescriptor& block_data, const self_t& other, bool overwrite)
|
||||
{
|
||||
// only merge a choice if we are overwriting with other's contents
|
||||
if (overwrite)
|
||||
{
|
||||
mCurChoice = other.mCurChoice;
|
||||
return BaseBlock::merge(selfBlockDescriptor(), other, overwrite);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1314,7 +1316,7 @@ namespace LLInitParam
|
|||
Choice()
|
||||
: mCurChoice(0)
|
||||
{
|
||||
BaseBlock::init(blockDescriptor(), BaseBlock::blockDescriptor(), sizeof(DERIVED_BLOCK));
|
||||
BaseBlock::init(selfBlockDescriptor(), BaseBlock::selfBlockDescriptor(), sizeof(DERIVED_BLOCK));
|
||||
}
|
||||
|
||||
// Alternatives are mutually exclusive wrt other Alternatives in the same block.
|
||||
|
|
@ -1331,13 +1333,14 @@ namespace LLInitParam
|
|||
typedef typename super_t::value_assignment_t value_assignment_t;
|
||||
|
||||
explicit Alternative(const char* name, value_assignment_t val = DefaultInitializer<T>::get())
|
||||
: super_t(DERIVED_BLOCK::blockDescriptor(), name, val, NULL, 0, 1),
|
||||
: super_t(DERIVED_BLOCK::selfBlockDescriptor(), name, val, NULL, 0, 1),
|
||||
mOriginalValue(val)
|
||||
{
|
||||
// assign initial choice to first declared option
|
||||
DERIVED_BLOCK* blockp = ((DERIVED_BLOCK*)DERIVED_BLOCK::blockDescriptor().mCurrentBlockPtr);
|
||||
if (DERIVED_BLOCK::blockDescriptor().mInitializationState == BlockDescriptor::INITIALIZING
|
||||
&& blockp->mCurChoice == 0)
|
||||
DERIVED_BLOCK* blockp = ((DERIVED_BLOCK*)DERIVED_BLOCK::selfBlockDescriptor().mCurrentBlockPtr);
|
||||
if (LL_UNLIKELY(
|
||||
DERIVED_BLOCK::selfBlockDescriptor().mInitializationState == BlockDescriptor::INITIALIZING
|
||||
&& blockp->mCurChoice == 0))
|
||||
{
|
||||
blockp->mCurChoice = Param::enclosingBlock().getHandleFromParam(this);
|
||||
}
|
||||
|
|
@ -1382,7 +1385,7 @@ namespace LLInitParam
|
|||
};
|
||||
|
||||
protected:
|
||||
static BlockDescriptor& blockDescriptor()
|
||||
static BlockDescriptor& selfBlockDescriptor()
|
||||
{
|
||||
static BlockDescriptor sBlockDescriptor;
|
||||
return sBlockDescriptor;
|
||||
|
|
@ -1410,19 +1413,19 @@ namespace LLInitParam
|
|||
// take all provided params from other and apply to self
|
||||
bool overwriteFrom(const self_t& other)
|
||||
{
|
||||
return BaseBlock::merge(blockDescriptor(), other, true);
|
||||
return BaseBlock::merge(selfBlockDescriptor(), other, true);
|
||||
}
|
||||
|
||||
// take all provided params that are not already provided, and apply to self
|
||||
bool fillFrom(const self_t& other)
|
||||
{
|
||||
return BaseBlock::merge(blockDescriptor(), other, false);
|
||||
return BaseBlock::merge(selfBlockDescriptor(), other, false);
|
||||
}
|
||||
protected:
|
||||
Block()
|
||||
{
|
||||
//#pragma message("Parsing LLInitParam::Block")
|
||||
BaseBlock::init(blockDescriptor(), BASE_BLOCK::blockDescriptor(), sizeof(DERIVED_BLOCK));
|
||||
BaseBlock::init(selfBlockDescriptor(), BASE_BLOCK::selfBlockDescriptor(), sizeof(DERIVED_BLOCK));
|
||||
}
|
||||
|
||||
//
|
||||
|
|
@ -1436,7 +1439,7 @@ namespace LLInitParam
|
|||
typedef typename super_t::value_assignment_t value_assignment_t;
|
||||
|
||||
explicit Optional(const char* name = "", value_assignment_t val = DefaultInitializer<T>::get())
|
||||
: super_t(DERIVED_BLOCK::blockDescriptor(), name, val, NULL, 0, 1)
|
||||
: super_t(DERIVED_BLOCK::selfBlockDescriptor(), name, val, NULL, 0, 1)
|
||||
{
|
||||
//#pragma message("Parsing LLInitParam::Block::Optional")
|
||||
}
|
||||
|
|
@ -1465,7 +1468,7 @@ namespace LLInitParam
|
|||
|
||||
// mandatory parameters require a name to be parseable
|
||||
explicit Mandatory(const char* name = "", value_assignment_t val = DefaultInitializer<T>::get())
|
||||
: super_t(DERIVED_BLOCK::blockDescriptor(), name, val, &validate, 1, 1)
|
||||
: super_t(DERIVED_BLOCK::selfBlockDescriptor(), name, val, &validate, 1, 1)
|
||||
{}
|
||||
|
||||
Mandatory& operator=(value_assignment_t val)
|
||||
|
|
@ -1501,7 +1504,7 @@ namespace LLInitParam
|
|||
typedef typename container_t::const_iterator const_iterator;
|
||||
|
||||
explicit Multiple(const char* name = "", value_assignment_t val = DefaultInitializer<container_t>::get())
|
||||
: super_t(DERIVED_BLOCK::blockDescriptor(), name, val, &validate, RANGE::minCount(), RANGE::maxCount())
|
||||
: super_t(DERIVED_BLOCK::selfBlockDescriptor(), name, val, &validate, RANGE::minCount(), RANGE::maxCount())
|
||||
{}
|
||||
|
||||
using super_t::operator();
|
||||
|
|
@ -1529,10 +1532,10 @@ namespace LLInitParam
|
|||
{
|
||||
public:
|
||||
explicit Deprecated(const char* name)
|
||||
: Param(DERIVED_BLOCK::blockDescriptor().mCurrentBlockPtr)
|
||||
: Param(DERIVED_BLOCK::selfBlockDescriptor().mCurrentBlockPtr)
|
||||
{
|
||||
BlockDescriptor& block_descriptor = DERIVED_BLOCK::blockDescriptor();
|
||||
if (block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
BlockDescriptor& block_descriptor = DERIVED_BLOCK::selfBlockDescriptor();
|
||||
if (LL_UNLIKELY(block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING))
|
||||
{
|
||||
ParamDescriptor param_descriptor(block_descriptor.mCurrentBlockPtr->getHandleFromParam(this),
|
||||
NULL,
|
||||
|
|
@ -1561,7 +1564,7 @@ namespace LLInitParam
|
|||
typedef Deprecated Ignored;
|
||||
|
||||
protected:
|
||||
static BlockDescriptor& blockDescriptor()
|
||||
static BlockDescriptor& selfBlockDescriptor()
|
||||
{
|
||||
static BlockDescriptor sBlockDescriptor;
|
||||
return sBlockDescriptor;
|
||||
|
|
@ -1574,6 +1577,13 @@ namespace LLInitParam
|
|||
public Param
|
||||
{
|
||||
public:
|
||||
typedef enum e_value_age
|
||||
{
|
||||
OLDER_THAN_BLOCK, // mData.mValue needs to be refreshed from the block parameters
|
||||
NEWER_THAN_BLOCK, // mData.mValue holds the authoritative value (which has been replicated to the block parameters via setBlockFromValue)
|
||||
SAME_AS_BLOCK // mData.mValue is derived from the block parameters, which are authoritative
|
||||
} EValueAge;
|
||||
|
||||
typedef BlockValue<T> self_t;
|
||||
typedef Block<TypedParam<T, TypeValues<T>, false> > block_t;
|
||||
typedef const T& value_const_ref_t;
|
||||
|
|
@ -1582,9 +1592,9 @@ namespace LLInitParam
|
|||
|
||||
BlockValue(BlockDescriptor& block_descriptor, const char* name, value_assignment_t value, ParamDescriptor::validation_func_t validate_func, S32 min_count, S32 max_count)
|
||||
: Param(block_descriptor.mCurrentBlockPtr),
|
||||
mData(value)
|
||||
mData(value, NEWER_THAN_BLOCK)
|
||||
{
|
||||
if (block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING)
|
||||
if (LL_UNLIKELY(block_descriptor.mInitializationState == BlockDescriptor::INITIALIZING))
|
||||
{
|
||||
ParamDescriptor param_descriptor(block_descriptor.mCurrentBlockPtr->getHandleFromParam(this),
|
||||
&mergeWith,
|
||||
|
|
@ -1604,7 +1614,7 @@ namespace LLInitParam
|
|||
|
||||
static bool deserializeParam(Param& param, Parser& parser, const Parser::name_stack_range_t& name_stack, S32 generation)
|
||||
{
|
||||
self_t& typed_param = static_cast<self_t&>(param);
|
||||
DERIVED& typed_param = static_cast<DERIVED&>(param);
|
||||
// type to apply parse direct value T
|
||||
if (name_stack.first == name_stack.second)
|
||||
{
|
||||
|
|
@ -1612,7 +1622,10 @@ namespace LLInitParam
|
|||
{
|
||||
typed_param.enclosingBlock().setLastChangedParam(param, true);
|
||||
typed_param.setProvided(true);
|
||||
typed_param.mData.mLastParamVersion = typed_param.BaseBlock::getLastChangeVersion();
|
||||
typed_param.mData.clearKey();
|
||||
typed_param.mData.mValueAge = NEWER_THAN_BLOCK;
|
||||
typed_param.setBlockFromValue();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -1628,7 +1641,9 @@ namespace LLInitParam
|
|||
typed_param.mData.setKey(name);
|
||||
typed_param.enclosingBlock().setLastChangedParam(param, true);
|
||||
typed_param.setProvided(true);
|
||||
typed_param.mData.mLastParamVersion = typed_param.BaseBlock::getLastChangeVersion();
|
||||
typed_param.mData.mValueAge = NEWER_THAN_BLOCK;
|
||||
typed_param.setBlockFromValue();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -1703,16 +1718,18 @@ namespace LLInitParam
|
|||
|
||||
bool isProvided() const
|
||||
{
|
||||
// either param value provided directly or block is sufficiently filled in
|
||||
if (!Param::getProvided()) return false;
|
||||
|
||||
// block has an updated parameter
|
||||
// if cached value is stale, regenerate from params
|
||||
if (Param::getProvided() && mData.mLastParamVersion < BaseBlock::getLastChangeVersion())
|
||||
if (mData.mValueAge == OLDER_THAN_BLOCK)
|
||||
{
|
||||
if (block_t::validateBlock(false))
|
||||
{
|
||||
static_cast<const DERIVED*>(this)->setValueFromBlock();
|
||||
// clear stale keyword associated with old value
|
||||
mData.clearKey();
|
||||
mData.mLastParamVersion = BaseBlock::getLastChangeVersion();
|
||||
mData.mValueAge = SAME_AS_BLOCK;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
|
@ -1722,8 +1739,11 @@ namespace LLInitParam
|
|||
return false;
|
||||
}
|
||||
}
|
||||
// either no data provided, or we have a valid value in hand
|
||||
return Param::getProvided();
|
||||
else
|
||||
{
|
||||
// we have a valid value in hand
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void set(value_assignment_t val, bool flag_as_provided = true)
|
||||
|
|
@ -1731,7 +1751,7 @@ namespace LLInitParam
|
|||
Param::enclosingBlock().setLastChangedParam(*this, flag_as_provided);
|
||||
|
||||
// set param version number to be up to date, so we ignore block contents
|
||||
mData.mLastParamVersion = BaseBlock::getLastChangeVersion();
|
||||
mData.mValueAge = NEWER_THAN_BLOCK;
|
||||
|
||||
mData.mValue = val;
|
||||
mData.clearKey();
|
||||
|
|
@ -1756,6 +1776,8 @@ namespace LLInitParam
|
|||
if (user_provided)
|
||||
{
|
||||
setProvided(true); // some component provided
|
||||
// a parameter changed, so our value is out of date
|
||||
mData.mValueAge = OLDER_THAN_BLOCK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1763,54 +1785,54 @@ namespace LLInitParam
|
|||
value_assignment_t get() const
|
||||
{
|
||||
// if some parameters were provided, issue warnings on invalid blocks
|
||||
if (Param::getProvided() && (mData.mLastParamVersion < BaseBlock::getLastChangeVersion()))
|
||||
if (Param::getProvided() && (mData.mValueAge == OLDER_THAN_BLOCK))
|
||||
{
|
||||
// go ahead and issue warnings at this point if any param is invalid
|
||||
if(block_t::validateBlock(true))
|
||||
{
|
||||
static_cast<const DERIVED*>(this)->setValueFromBlock();
|
||||
mData.clearKey();
|
||||
mData.mLastParamVersion = BaseBlock::getLastChangeVersion();
|
||||
mData.mValueAge = SAME_AS_BLOCK;
|
||||
}
|
||||
}
|
||||
|
||||
return mData.mValue;
|
||||
}
|
||||
|
||||
// mutable to allow lazy updates on get
|
||||
|
||||
struct Data : public key_cache_t
|
||||
{
|
||||
Data(const T& value)
|
||||
Data(const T& value, EValueAge age)
|
||||
: mValue(value),
|
||||
mLastParamVersion(0)
|
||||
mValueAge(age)
|
||||
{}
|
||||
|
||||
T mValue;
|
||||
S32 mLastParamVersion;
|
||||
T mValue;
|
||||
EValueAge mValueAge;
|
||||
};
|
||||
|
||||
// mutable to allow lazy updates on get
|
||||
mutable Data mData;
|
||||
|
||||
private:
|
||||
static bool mergeWith(Param& dst, const Param& src, bool overwrite)
|
||||
{
|
||||
const self_t& src_typed_param = static_cast<const self_t&>(src);
|
||||
self_t& dst_typed_param = static_cast<self_t&>(dst);
|
||||
const DERIVED& src_typed_param = static_cast<const DERIVED&>(src);
|
||||
DERIVED& dst_typed_param = static_cast<DERIVED&>(dst);
|
||||
|
||||
if (src_typed_param.isProvided()
|
||||
&& (overwrite || !dst_typed_param.isProvided()))
|
||||
{
|
||||
// assign individual parameters
|
||||
dst_typed_param.BaseBlock::merge(block_t::blockDescriptor(), src_typed_param, overwrite);
|
||||
|
||||
// then copy actual value
|
||||
dst_typed_param.mData.mValue = src_typed_param.get();
|
||||
dst_typed_param.mData.clearKey();
|
||||
dst_typed_param.setProvided(true);
|
||||
|
||||
// Propagate value back to block params since the value was updated during this merge.
|
||||
// This will result in mData.mValue and the block params being in sync.
|
||||
static_cast<DERIVED&>(dst_typed_param).setBlockFromValue();
|
||||
if (src_typed_param.mData.mValueAge == NEWER_THAN_BLOCK)
|
||||
{
|
||||
// copy value over
|
||||
dst_typed_param.set(src_typed_param.get());
|
||||
}
|
||||
else
|
||||
{
|
||||
// merge individual parameters into destination
|
||||
dst_typed_param.merge(block_t::selfBlockDescriptor(), src_typed_param, overwrite);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -297,11 +297,17 @@ private:
|
|||
// append details to agent string
|
||||
LLQtWebKit::getInstance()->setBrowserAgentId( mUserAgent );
|
||||
|
||||
// TODO: Remove this ifdef when the Linux version of llqtwebkit gets updated with the new WOB constant.
|
||||
#if !LL_LINUX
|
||||
// Set up window open behavior
|
||||
LLQtWebKit::getInstance()->setWindowOpenBehavior(mBrowserWindowId, LLQtWebKit::WOB_SIMULATE_BLANK_HREF_CLICK);
|
||||
#endif
|
||||
|
||||
#if !LL_QTWEBKIT_USES_PIXMAPS
|
||||
// don't flip bitmap
|
||||
LLQtWebKit::getInstance()->flipWindow( mBrowserWindowId, true );
|
||||
#endif // !LL_QTWEBKIT_USES_PIXMAPS
|
||||
|
||||
|
||||
// set background color
|
||||
// convert background color channels from [0.0, 1.0] to [0, 255];
|
||||
LLQtWebKit::getInstance()->setBackgroundColor( mBrowserWindowId, int(mBackgroundR * 255.0f), int(mBackgroundG * 255.0f), int(mBackgroundB * 255.0f) );
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ set(viewer_SOURCE_FILES
|
|||
llbottomtray.cpp
|
||||
llbox.cpp
|
||||
llbreadcrumbview.cpp
|
||||
llbuycurrencyhtml.cpp
|
||||
llcallbacklist.cpp
|
||||
llcallfloater.cpp
|
||||
llcallingcard.cpp
|
||||
|
|
@ -159,6 +160,7 @@ set(viewer_SOURCE_FILES
|
|||
llfloaterbuy.cpp
|
||||
llfloaterbuycontents.cpp
|
||||
llfloaterbuycurrency.cpp
|
||||
llfloaterbuycurrencyhtml.cpp
|
||||
llfloaterbuyland.cpp
|
||||
llfloatercamera.cpp
|
||||
llfloatercolorpicker.cpp
|
||||
|
|
@ -605,6 +607,7 @@ set(viewer_HEADER_FILES
|
|||
llbottomtray.h
|
||||
llbox.h
|
||||
llbreadcrumbview.h
|
||||
llbuycurrencyhtml.h
|
||||
llcallbacklist.h
|
||||
llcallfloater.h
|
||||
llcallingcard.h
|
||||
|
|
@ -675,6 +678,7 @@ set(viewer_HEADER_FILES
|
|||
llfloaterbuy.h
|
||||
llfloaterbuycontents.h
|
||||
llfloaterbuycurrency.h
|
||||
llfloaterbuycurrencyhtml.h
|
||||
llfloaterbuyland.h
|
||||
llfloatercamera.h
|
||||
llfloatercolorpicker.h
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
<RenderAvatarCloth value="FALSE"/>
|
||||
<!--Default for now-->
|
||||
<RenderAvatarLODFactor value="0.5"/>
|
||||
<!--Default for now-->
|
||||
<RenderAvatarMaxVisible value="3"/>
|
||||
<!--NO SHADERS-->
|
||||
<RenderAvatarVP value="FALSE"/>
|
||||
<!--Short Range-->
|
||||
|
|
|
|||
|
|
@ -6028,6 +6028,17 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>QuickBuyCurrency</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Toggle between HTML based currency purchase floater and legacy XUI version</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>RegionTextureSize</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ list Low
|
|||
RenderAnisotropic 1 0
|
||||
RenderAvatarCloth 1 0
|
||||
RenderAvatarLODFactor 1 0.5
|
||||
RenderAvatarMaxVisible 1 3
|
||||
RenderAvatarVP 1 0
|
||||
RenderFarClip 1 64
|
||||
RenderFlexTimeFactor 1 0.5
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ list Low
|
|||
RenderAnisotropic 1 0
|
||||
RenderAvatarCloth 1 0
|
||||
RenderAvatarLODFactor 1 0.5
|
||||
RenderAvatarMaxVisible 1 3
|
||||
RenderAvatarVP 1 0
|
||||
RenderFarClip 1 64
|
||||
RenderFlexTimeFactor 1 0.5
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ list Low
|
|||
RenderAnisotropic 1 0
|
||||
RenderAvatarCloth 1 0
|
||||
RenderAvatarLODFactor 1 0.5
|
||||
RenderAvatarMaxVisible 1 3
|
||||
RenderAvatarVP 1 0
|
||||
RenderFarClip 1 64
|
||||
RenderFlexTimeFactor 1 0.5
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ UseOcclusion 0 0
|
|||
list low
|
||||
RenderVBO 1 0
|
||||
RenderAniso 1 0
|
||||
RenderAvatarMaxVisible 1 3
|
||||
RenderLighting 1 0
|
||||
|
||||
list medium
|
||||
|
|
|
|||
|
|
@ -3088,21 +3088,30 @@ void LLAgent::processAgentCachedTextureResponse(LLMessageSystem *mesgsys, void *
|
|||
mesgsys->getUUIDFast(_PREHASH_WearableData, _PREHASH_TextureID, texture_id, texture_block);
|
||||
mesgsys->getU8Fast(_PREHASH_WearableData, _PREHASH_TextureIndex, texture_index, texture_block);
|
||||
|
||||
if ((S32)texture_index < BAKED_NUM_INDICES
|
||||
&& gAgentQueryManager.mActiveCacheQueries[texture_index] == query_id)
|
||||
{
|
||||
if (texture_id.notNull())
|
||||
|
||||
if ((S32)texture_index < TEX_NUM_INDICES )
|
||||
{
|
||||
const LLVOAvatarDictionary::TextureEntry *texture_entry = LLVOAvatarDictionary::instance().getTexture((ETextureIndex)texture_index);
|
||||
if (texture_entry)
|
||||
{
|
||||
//llinfos << "Received cached texture " << (U32)texture_index << ": " << texture_id << llendl;
|
||||
gAgentAvatarp->setCachedBakedTexture(LLVOAvatarDictionary::bakedToLocalTextureIndex((EBakedTextureIndex)texture_index), texture_id);
|
||||
//gAgentAvatarp->setTETexture( LLVOAvatar::sBakedTextureIndices[texture_index], texture_id );
|
||||
gAgentQueryManager.mActiveCacheQueries[texture_index] = 0;
|
||||
num_results++;
|
||||
}
|
||||
else
|
||||
{
|
||||
// no cache of this bake. request upload.
|
||||
gAgentAvatarp->requestLayerSetUpload((EBakedTextureIndex)texture_index);
|
||||
EBakedTextureIndex baked_index = texture_entry->mBakedTextureIndex;
|
||||
|
||||
if (gAgentQueryManager.mActiveCacheQueries[baked_index] == query_id)
|
||||
{
|
||||
if (texture_id.notNull())
|
||||
{
|
||||
//llinfos << "Received cached texture " << (U32)texture_index << ": " << texture_id << llendl;
|
||||
gAgentAvatarp->setCachedBakedTexture((ETextureIndex)texture_index, texture_id);
|
||||
//gAgentAvatarp->setTETexture( LLVOAvatar::sBakedTextureIndices[texture_index], texture_id );
|
||||
gAgentQueryManager.mActiveCacheQueries[baked_index] = 0;
|
||||
num_results++;
|
||||
}
|
||||
else
|
||||
{
|
||||
// no cache of this bake. request upload.
|
||||
gAgentAvatarp->requestLayerSetUpload(baked_index);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3526,7 +3535,6 @@ void LLAgent::sendAgentSetAppearance()
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
llinfos << "TAT: Sent AgentSetAppearance: " << gAgentAvatarp->getBakedStatusForPrintout() << llendl;
|
||||
//dumpAvatarTEs( "sendAgentSetAppearance()" );
|
||||
|
||||
|
|
@ -3577,32 +3585,15 @@ void LLAgent::sendAgentSetAppearance()
|
|||
llinfos << "TAT: Sending cached texture data" << llendl;
|
||||
for (U8 baked_index = 0; baked_index < BAKED_NUM_INDICES; baked_index++)
|
||||
{
|
||||
const LLVOAvatarDictionary::BakedEntry *baked_dict = LLVOAvatarDictionary::getInstance()->getBakedTexture((EBakedTextureIndex)baked_index);
|
||||
LLUUID hash;
|
||||
for (U8 i=0; i < baked_dict->mWearables.size(); i++)
|
||||
{
|
||||
// LLWearableType::EType wearable_type = gBakedWearableMap[baked_index][wearable_num];
|
||||
const LLWearableType::EType wearable_type = baked_dict->mWearables[i];
|
||||
for (U8 wearable_index =0; wearable_index < gAgentWearables.getWearableCount(wearable_type); ++wearable_index)
|
||||
{
|
||||
const LLWearable* wearable = gAgentWearables.getWearable(wearable_type,wearable_index);
|
||||
if (wearable)
|
||||
{
|
||||
// MULTI-WEARABLE: make order-dependent (use MD5 hash)
|
||||
hash ^= wearable->getAssetID();
|
||||
}
|
||||
}
|
||||
}
|
||||
LLUUID hash = gAgentWearables.computeBakedTextureHash((EBakedTextureIndex) baked_index);
|
||||
|
||||
if (hash.notNull())
|
||||
{
|
||||
hash ^= baked_dict->mWearablesHashID;
|
||||
ETextureIndex texture_index = LLVOAvatarDictionary::bakedToLocalTextureIndex((EBakedTextureIndex) baked_index);
|
||||
msg->nextBlockFast(_PREHASH_WearableData);
|
||||
msg->addUUIDFast(_PREHASH_CacheID, hash);
|
||||
msg->addU8Fast(_PREHASH_TextureIndex, (U8)texture_index);
|
||||
}
|
||||
|
||||
const ETextureIndex texture_index = LLVOAvatarDictionary::bakedToLocalTextureIndex((EBakedTextureIndex)baked_index);
|
||||
|
||||
msg->nextBlockFast(_PREHASH_WearableData);
|
||||
msg->addUUIDFast(_PREHASH_CacheID, hash);
|
||||
msg->addU8Fast(_PREHASH_TextureIndex, (U8)texture_index);
|
||||
}
|
||||
msg->nextBlockFast(_PREHASH_ObjectData);
|
||||
gAgentAvatarp->sendAppearanceMessage( gMessageSystem );
|
||||
|
|
|
|||
|
|
@ -1565,37 +1565,18 @@ void LLAgentWearables::queryWearableCache()
|
|||
S32 num_queries = 0;
|
||||
for (U8 baked_index = 0; baked_index < BAKED_NUM_INDICES; baked_index++)
|
||||
{
|
||||
const LLVOAvatarDictionary::BakedEntry *baked_dict = LLVOAvatarDictionary::getInstance()->getBakedTexture((EBakedTextureIndex)baked_index);
|
||||
LLMD5 hash;
|
||||
bool hash_computed = false;
|
||||
for (U8 i=0; i < baked_dict->mWearables.size(); i++)
|
||||
LLUUID hash_id = computeBakedTextureHash((EBakedTextureIndex) baked_index);
|
||||
if (hash_id.notNull())
|
||||
{
|
||||
const LLWearableType::EType baked_type = baked_dict->mWearables[i];
|
||||
const U32 num_wearables = getWearableCount(baked_type);
|
||||
for (U32 index = 0; index < num_wearables; ++index)
|
||||
{
|
||||
const LLWearable* wearable = getWearable(baked_type,index);
|
||||
if (wearable)
|
||||
{
|
||||
LLUUID asset_id = wearable->getAssetID();
|
||||
hash.update((const unsigned char*)asset_id.mData, UUID_BYTES);
|
||||
hash_computed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
hash.finalize();
|
||||
if (hash_computed)
|
||||
{
|
||||
LLUUID hash_id;
|
||||
hash.raw_digest(hash_id.mData);
|
||||
hash_id ^= baked_dict->mWearablesHashID;
|
||||
num_queries++;
|
||||
// *NOTE: make sure at least one request gets packed
|
||||
|
||||
ETextureIndex te_index = LLVOAvatarDictionary::bakedToLocalTextureIndex((EBakedTextureIndex)baked_index);
|
||||
|
||||
//llinfos << "Requesting texture for hash " << hash << " in baked texture slot " << baked_index << llendl;
|
||||
gMessageSystem->nextBlockFast(_PREHASH_WearableData);
|
||||
gMessageSystem->addUUIDFast(_PREHASH_ID, hash_id);
|
||||
gMessageSystem->addU8Fast(_PREHASH_TextureIndex, (U8)baked_index);
|
||||
gMessageSystem->addU8Fast(_PREHASH_TextureIndex, (U8)te_index);
|
||||
}
|
||||
|
||||
gAgentQueryManager.mActiveCacheQueries[baked_index] = gAgentQueryManager.mWearablesCacheQueryID;
|
||||
|
|
@ -1607,6 +1588,39 @@ void LLAgentWearables::queryWearableCache()
|
|||
gAgentQueryManager.mWearablesCacheQueryID++;
|
||||
}
|
||||
|
||||
LLUUID LLAgentWearables::computeBakedTextureHash(LLVOAvatarDefines::EBakedTextureIndex index)
|
||||
{
|
||||
LLUUID hash_id;
|
||||
bool hash_computed = false;
|
||||
LLMD5 hash;
|
||||
|
||||
const LLVOAvatarDictionary::BakedEntry *baked_dict = LLVOAvatarDictionary::getInstance()->getBakedTexture(index);
|
||||
|
||||
for (U8 i=0; i < baked_dict->mWearables.size(); i++)
|
||||
{
|
||||
const LLWearableType::EType baked_type = baked_dict->mWearables[i];
|
||||
const U32 num_wearables = getWearableCount(baked_type);
|
||||
for (U32 index = 0; index < num_wearables; ++index)
|
||||
{
|
||||
const LLWearable* wearable = getWearable(baked_type,index);
|
||||
if (wearable)
|
||||
{
|
||||
LLUUID asset_id = wearable->getAssetID();
|
||||
hash.update((const unsigned char*)asset_id.mData, UUID_BYTES);
|
||||
hash_computed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hash_computed)
|
||||
{
|
||||
hash.update((const unsigned char*)baked_dict->mWearablesHashID.mData, UUID_BYTES);
|
||||
hash.finalize();
|
||||
hash.raw_digest(hash_id.mData);
|
||||
}
|
||||
|
||||
return hash_id;
|
||||
}
|
||||
|
||||
// User has picked "remove from avatar" from a menu.
|
||||
// static
|
||||
void LLAgentWearables::userRemoveWearable(const LLWearableType::EType &type, const U32 &index)
|
||||
|
|
|
|||
|
|
@ -150,6 +150,8 @@ protected:
|
|||
public:
|
||||
// Processes the initial wearables update message (if necessary, since the outfit folder makes it redundant)
|
||||
static void processAgentInitialWearablesUpdate(LLMessageSystem* mesgsys, void** user_data);
|
||||
LLUUID computeBakedTextureHash(LLVOAvatarDefines::EBakedTextureIndex index);
|
||||
|
||||
protected:
|
||||
void sendAgentWearablesUpdate();
|
||||
void sendAgentWearablesRequest();
|
||||
|
|
|
|||
|
|
@ -190,7 +190,9 @@ LLUpdateAppearanceOnDestroy::~LLUpdateAppearanceOnDestroy()
|
|||
|
||||
void LLUpdateAppearanceOnDestroy::fire(const LLUUID& inv_item)
|
||||
{
|
||||
llinfos << "callback fired" << llendl;
|
||||
LLViewerInventoryItem* item = (LLViewerInventoryItem*)gInventory.getItem(inv_item);
|
||||
const std::string item_name = item ? item->getName() : "ITEM NOT FOUND";
|
||||
llinfos << "callback fired [ name:" << item_name << " UUID:" << inv_item << " count:" << mFireCount << " ] " << llendl;
|
||||
mFireCount++;
|
||||
}
|
||||
|
||||
|
|
@ -890,7 +892,7 @@ void LLAppearanceMgr::filterWearableItems(
|
|||
}
|
||||
|
||||
// Create links to all listed items.
|
||||
void LLAppearanceMgr::linkAll(const LLUUID& category,
|
||||
void LLAppearanceMgr::linkAll(const LLUUID& cat_uuid,
|
||||
LLInventoryModel::item_array_t& items,
|
||||
LLPointer<LLInventoryCallback> cb)
|
||||
{
|
||||
|
|
@ -899,11 +901,16 @@ void LLAppearanceMgr::linkAll(const LLUUID& category,
|
|||
const LLInventoryItem* item = items.get(i).get();
|
||||
link_inventory_item(gAgent.getID(),
|
||||
item->getLinkedUUID(),
|
||||
category,
|
||||
cat_uuid,
|
||||
item->getName(),
|
||||
item->LLInventoryItem::getDescription(),
|
||||
LLAssetType::AT_LINK,
|
||||
cb);
|
||||
|
||||
const LLViewerInventoryCategory *cat = gInventory.getCategory(cat_uuid);
|
||||
const std::string cat_name = cat ? cat->getName() : "CAT NOT FOUND";
|
||||
|
||||
llinfos << "Linking Item [ name:" << item->getName() << " UUID:" << item->getUUID() << " ] to Category [ name:" << cat_name << " UUID:" << cat_uuid << " ] " << llendl; // Seraph remove for 2.1
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -972,9 +979,13 @@ void LLAppearanceMgr::updateCOF(const LLUUID& category, bool append)
|
|||
llinfos << "creating LLUpdateAppearanceOnDestroy" << llendl;
|
||||
LLPointer<LLInventoryCallback> link_waiter = new LLUpdateAppearanceOnDestroy;
|
||||
|
||||
llinfos << "Linking body items" << llendl; // Seraph remove for 2.1
|
||||
linkAll(cof, body_items, link_waiter);
|
||||
llinfos << "Linking wear items" << llendl; // Seraph remove for 2.1
|
||||
linkAll(cof, wear_items, link_waiter);
|
||||
llinfos << "Linking obj items" << llendl; // Seraph remove for 2.1
|
||||
linkAll(cof, obj_items, link_waiter);
|
||||
llinfos << "Linking gesture items" << llendl; // Seraph remove for 2.1
|
||||
linkAll(cof, gest_items, link_waiter);
|
||||
|
||||
// Add link to outfit if category is an outfit.
|
||||
|
|
@ -1030,8 +1041,7 @@ void LLAppearanceMgr::updateAgentWearables(LLWearableHoldingPattern* holder, boo
|
|||
LLWearable* wearable = data.mWearable;
|
||||
if( wearable && ((S32)wearable->getType() == i) )
|
||||
{
|
||||
LLViewerInventoryItem* item;
|
||||
item = (LLViewerInventoryItem*)gInventory.getItem(data.mItemID);
|
||||
LLViewerInventoryItem* item = (LLViewerInventoryItem*)gInventory.getItem(data.mItemID);
|
||||
if( item && (item->getAssetUUID() == wearable->getAssetID()) )
|
||||
{
|
||||
items.put(item);
|
||||
|
|
@ -1483,9 +1493,9 @@ void LLAppearanceMgr::addCOFItemLink(const LLInventoryItem *item, bool do_update
|
|||
// Are these links to different items of the same body part
|
||||
// type? If so, new item will replace old.
|
||||
// TODO: MULTI-WEARABLE: check for wearable limit for clothing types
|
||||
else if (is_body_part)
|
||||
else if (is_body_part && (vitem->isWearableType()) && (vitem->getWearableType() == wearable_type))
|
||||
{
|
||||
if (inv_item->getIsLinkType())
|
||||
if (inv_item->getIsLinkType() && (vitem->getWearableType() == wearable_type))
|
||||
{
|
||||
gInventory.purgeObject(inv_item->getUUID());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
// viewer includes
|
||||
#include "llagent.h"
|
||||
#include "llcompilequeue.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfilepicker.h"
|
||||
#include "llinventorydefines.h"
|
||||
#include "llinventoryobserver.h"
|
||||
|
|
@ -186,7 +186,7 @@ void LLAssetUploadResponder::uploadFailure(const LLSD& content)
|
|||
S32 price = LLGlobalEconomy::Singleton::getInstance()->getPriceUpload();
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", price);
|
||||
LLFloaterBuyCurrency::buyCurrency(LLTrans::getString("uploading_costs", args), price);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("uploading_costs", args), price );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,165 @@
|
|||
/**
|
||||
* @file llbuycurrencyhtml.cpp
|
||||
* @brief Manages Buy Currency HTML floater
|
||||
*
|
||||
* $LicenseInfo:firstyear=2010&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2006-2010, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
* to you under the terms of the GNU General Public License, version 2.0
|
||||
* ("GPL"), unless you have obtained a separate licensing agreement
|
||||
* ("Other License"), formally executed by you and Linden Lab. Terms of
|
||||
* the GPL can be found in doc/GPL-license.txt in this distribution, or
|
||||
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
*
|
||||
* There are special exceptions to the terms and conditions of the GPL as
|
||||
* it is applied to this Source Code. View the full text of the exception
|
||||
* in the file doc/FLOSS-exception.txt in this software distribution, or
|
||||
* online at
|
||||
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
*
|
||||
* By copying, modifying or distributing this software, you acknowledge
|
||||
* that you have read and understood your obligations described above,
|
||||
* and agree to abide by those obligations.
|
||||
*
|
||||
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfloaterbuycurrencyhtml.h"
|
||||
|
||||
#include "llfloaterreg.h"
|
||||
#include "llcommandhandler.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
// support for secondlife:///app/buycurrencyhtml/{ACTION}/{NEXT_ACTION}/{RETURN_CODE} SLapps
|
||||
class LLBuyCurrencyHTMLHandler :
|
||||
public LLCommandHandler
|
||||
{
|
||||
public:
|
||||
// requests will be throttled from a non-trusted browser
|
||||
LLBuyCurrencyHTMLHandler() : LLCommandHandler( "buycurrencyhtml", UNTRUSTED_ALLOW ) {}
|
||||
|
||||
bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web)
|
||||
{
|
||||
std::string action( "" );
|
||||
if ( params.size() >= 1 )
|
||||
{
|
||||
action = params[ 0 ].asString();
|
||||
};
|
||||
|
||||
std::string next_action( "" );
|
||||
if ( params.size() >= 2 )
|
||||
{
|
||||
next_action = params[ 1 ].asString();
|
||||
};
|
||||
|
||||
int result_code = 0;
|
||||
if ( params.size() >= 3 )
|
||||
{
|
||||
result_code = params[ 2 ].asInteger();
|
||||
};
|
||||
|
||||
// open the legacy XUI based currency floater
|
||||
if ( "open_legacy" == next_action )
|
||||
{
|
||||
LLFloaterBuyCurrency::buyCurrency();
|
||||
};
|
||||
|
||||
// ask the Buy Currency floater to close
|
||||
// note: this is the last thing we can do so make
|
||||
// sure any other actions are processed before this.
|
||||
if ( "close" == action )
|
||||
{
|
||||
LLBuyCurrencyHTML::closeDialog();
|
||||
};
|
||||
|
||||
return true;
|
||||
};
|
||||
};
|
||||
LLBuyCurrencyHTMLHandler gBuyCurrencyHTMLHandler;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
// Opens the legacy XUI based floater or new HTML based one based on
|
||||
// the QuickBuyCurrency value in settings.xml - this overload is for
|
||||
// the case where the amount is not requested.
|
||||
void LLBuyCurrencyHTML::openCurrencyFloater()
|
||||
{
|
||||
if ( gSavedSettings.getBOOL( "QuickBuyCurrency" ) )
|
||||
{
|
||||
// HTML version
|
||||
LLBuyCurrencyHTML::showDialog( false, "", 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
// legacy version
|
||||
LLFloaterBuyCurrency::buyCurrency();
|
||||
};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
// Opens the legacy XUI based floater or new HTML based one based on
|
||||
// the QuickBuyCurrency value in settings.xml - this overload is for
|
||||
// the case where the amount and a string to display are requested.
|
||||
void LLBuyCurrencyHTML::openCurrencyFloater( const std::string& message, S32 sum )
|
||||
{
|
||||
if ( gSavedSettings.getBOOL( "QuickBuyCurrency" ) )
|
||||
{
|
||||
// HTML version
|
||||
LLBuyCurrencyHTML::showDialog( true, message, sum );
|
||||
}
|
||||
else
|
||||
{
|
||||
// legacy version
|
||||
LLFloaterBuyCurrency::buyCurrency( message, sum );
|
||||
};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
void LLBuyCurrencyHTML::showDialog( bool specific_sum_requested, const std::string& message, S32 sum )
|
||||
{
|
||||
LLFloaterBuyCurrencyHTML* buy_currency_floater = dynamic_cast< LLFloaterBuyCurrencyHTML* >( LLFloaterReg::getInstance( "buy_currency_html" ) );
|
||||
if ( buy_currency_floater )
|
||||
{
|
||||
// pass on flag indicating if we want to buy specific amount and if so, how much
|
||||
buy_currency_floater->setParams( specific_sum_requested, message, sum );
|
||||
|
||||
// force navigate to new URL
|
||||
buy_currency_floater->navigateToFinalURL();
|
||||
|
||||
// make it visible and raise to front
|
||||
BOOL visible = TRUE;
|
||||
buy_currency_floater->setVisible( visible );
|
||||
BOOL take_focus = TRUE;
|
||||
buy_currency_floater->setFrontmost( take_focus );
|
||||
|
||||
// spec calls for floater to be centered on client window
|
||||
buy_currency_floater->center();
|
||||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Buy Currency (HTML) Floater not found" << llendl;
|
||||
};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLBuyCurrencyHTML::closeDialog()
|
||||
{
|
||||
LLFloaterBuyCurrencyHTML* buy_currency_floater = dynamic_cast< LLFloaterBuyCurrencyHTML* >(LLFloaterReg::getInstance( "buy_currency_html" ) );
|
||||
if ( buy_currency_floater )
|
||||
{
|
||||
buy_currency_floater->closeFloater();
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
/**
|
||||
* @file llbuycurrencyhtml.h
|
||||
* @brief Manages Buy Currency HTML floater
|
||||
*
|
||||
* $LicenseInfo:firstyear=2010&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2006-2010, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
* to you under the terms of the GNU General Public License, version 2.0
|
||||
* ("GPL"), unless you have obtained a separate licensing agreement
|
||||
* ("Other License"), formally executed by you and Linden Lab. Terms of
|
||||
* the GPL can be found in doc/GPL-license.txt in this distribution, or
|
||||
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
*
|
||||
* There are special exceptions to the terms and conditions of the GPL as
|
||||
* it is applied to this Source Code. View the full text of the exception
|
||||
* in the file doc/FLOSS-exception.txt in this software distribution, or
|
||||
* online at
|
||||
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
*
|
||||
* By copying, modifying or distributing this software, you acknowledge
|
||||
* that you have read and understood your obligations described above,
|
||||
* and agree to abide by those obligations.
|
||||
*
|
||||
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLBUYCURRENCYHTML_H
|
||||
#define LL_LLBUYCURRENCYHTML_H
|
||||
|
||||
#include "llsingleton.h"
|
||||
|
||||
class LLFloaterBuyCurrencyHTML;
|
||||
|
||||
class LLBuyCurrencyHTML
|
||||
{
|
||||
public:
|
||||
// choke point for opening a legacy or new currency floater - this overload is when the L$ sum is not required
|
||||
static void openCurrencyFloater();
|
||||
|
||||
// choke point for opening a legacy or new currency floater - this overload is when the L$ sum is required
|
||||
static void openCurrencyFloater( const std::string& message, S32 sum );
|
||||
|
||||
// show and give focus to actual currency floater - this is used for both cases
|
||||
// where the sum is required and where it is not
|
||||
static void showDialog( bool specific_sum_requested, const std::string& message, S32 sum );
|
||||
|
||||
// close (and destroy) the currency floater
|
||||
static void closeDialog();
|
||||
};
|
||||
|
||||
#endif // LL_LLBUYCURRENCYHTML_H
|
||||
|
|
@ -113,9 +113,12 @@ void LLDrawPoolTree::render(S32 pass)
|
|||
iter != mDrawFace.end(); iter++)
|
||||
{
|
||||
LLFace *face = *iter;
|
||||
face->mVertexBuffer->setBuffer(LLDrawPoolTree::VERTEX_DATA_MASK);
|
||||
face->mVertexBuffer->drawRange(LLRender::TRIANGLES, 0, face->mVertexBuffer->getRequestedVerts()-1, face->mVertexBuffer->getRequestedIndices(), 0);
|
||||
gPipeline.addTrianglesDrawn(face->mVertexBuffer->getRequestedIndices());
|
||||
if(face->mVertexBuffer.notNull())
|
||||
{
|
||||
face->mVertexBuffer->setBuffer(LLDrawPoolTree::VERTEX_DATA_MASK);
|
||||
face->mVertexBuffer->drawRange(LLRender::TRIANGLES, 0, face->mVertexBuffer->getRequestedVerts()-1, face->mVertexBuffer->getRequestedIndices(), 0);
|
||||
gPipeline.addTrianglesDrawn(face->mVertexBuffer->getRequestedIndices());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -333,7 +336,7 @@ void LLDrawPoolTree::renderTree(BOOL selecting)
|
|||
S32 stop_depth = 0;
|
||||
F32 app_angle = treep->getAppAngle()*LLVOTree::sTreeFactor;
|
||||
F32 alpha = 1.0;
|
||||
S32 trunk_LOD = 0;
|
||||
S32 trunk_LOD = LLVOTree::sMAX_NUM_TREE_LOD_LEVELS;
|
||||
|
||||
for (S32 j = 0; j < 4; j++)
|
||||
{
|
||||
|
|
@ -344,6 +347,10 @@ void LLDrawPoolTree::renderTree(BOOL selecting)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(trunk_LOD >= LLVOTree::sMAX_NUM_TREE_LOD_LEVELS)
|
||||
{
|
||||
continue ; //do not render.
|
||||
}
|
||||
|
||||
if (app_angle < (THRESH_ANGLE_FOR_BILLBOARD - BLEND_RANGE_FOR_BILLBOARD))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,119 @@
|
|||
/**
|
||||
* @file llfloaterbuycurrencyhtml.cpp
|
||||
* @brief buy currency implemented in HTML floater - uses embedded media browser control
|
||||
*
|
||||
* $LicenseInfo:firstyear=2010&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2006-2010, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
* to you under the terms of the GNU General Public License, version 2.0
|
||||
* ("GPL"), unless you have obtained a separate licensing agreement
|
||||
* ("Other License"), formally executed by you and Linden Lab. Terms of
|
||||
* the GPL can be found in doc/GPL-license.txt in this distribution, or
|
||||
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
*
|
||||
* There are special exceptions to the terms and conditions of the GPL as
|
||||
* it is applied to this Source Code. View the full text of the exception
|
||||
* in the file doc/FLOSS-exception.txt in this software distribution, or
|
||||
* online at
|
||||
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
*
|
||||
* By copying, modifying or distributing this software, you acknowledge
|
||||
* that you have read and understood your obligations described above,
|
||||
* and agree to abide by those obligations.
|
||||
*
|
||||
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llfloaterbuycurrencyhtml.h"
|
||||
#include "llstatusbar.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
LLFloaterBuyCurrencyHTML::LLFloaterBuyCurrencyHTML( const LLSD& key ):
|
||||
LLFloater( key ),
|
||||
mSpecificSumRequested( false ),
|
||||
mMessage( "" ),
|
||||
mSum( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
BOOL LLFloaterBuyCurrencyHTML::postBuild()
|
||||
{
|
||||
// observer media events
|
||||
mBrowser = getChild<LLMediaCtrl>( "browser" );
|
||||
mBrowser->addObserver( this );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLFloaterBuyCurrencyHTML::navigateToFinalURL()
|
||||
{
|
||||
// URL for actual currency buy contents is in XUI file
|
||||
std::string buy_currency_url = getString( "buy_currency_url" );
|
||||
|
||||
// replace [LANGUAGE] meta-tag with view language
|
||||
LLStringUtil::format_map_t replace;
|
||||
|
||||
// viewer language
|
||||
replace[ "[LANGUAGE]" ] = LLUI::getLanguage();
|
||||
|
||||
// flag that specific amount requested
|
||||
replace[ "[SPECIFIC_AMOUNT]" ] = ( mSpecificSumRequested ? "y":"n" );
|
||||
|
||||
// amount requested
|
||||
std::ostringstream codec( "" );
|
||||
codec << mSum;
|
||||
replace[ "[SUM]" ] = codec.str();
|
||||
|
||||
// users' current balance
|
||||
codec.clear();
|
||||
codec.str( "" );
|
||||
codec << gStatusBar->getBalance();
|
||||
replace[ "[BAL]" ] = codec.str();
|
||||
|
||||
// message - "This cost L$x,xxx for example
|
||||
replace[ "[MSG]" ] = LLURI::escape( mMessage );
|
||||
LLStringUtil::format( buy_currency_url, replace );
|
||||
|
||||
// kick off the navigation
|
||||
mBrowser->navigateTo( buy_currency_url );
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLFloaterBuyCurrencyHTML::handleMediaEvent( LLPluginClassMedia* self, EMediaEvent event )
|
||||
{
|
||||
// placeholder for now - just in case we want to catch media events
|
||||
if ( LLPluginClassMediaOwner::MEDIA_EVENT_NAVIGATE_COMPLETE == event )
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLFloaterBuyCurrencyHTML::onClose( bool app_quitting )
|
||||
{
|
||||
destroy();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLFloaterBuyCurrencyHTML::setParams( bool specific_sum_requested, const std::string& message, S32 sum )
|
||||
{
|
||||
// save these away - used to construct URL later
|
||||
mSpecificSumRequested = specific_sum_requested;
|
||||
mMessage = message;
|
||||
mSum = sum;
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
/**
|
||||
* @file llfloaterbuycurrencyhtml.h
|
||||
* @brief buy currency implemented in HTML floater - uses embedded media browser control
|
||||
*
|
||||
* $LicenseInfo:firstyear=2010&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2006-2010, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
* to you under the terms of the GNU General Public License, version 2.0
|
||||
* ("GPL"), unless you have obtained a separate licensing agreement
|
||||
* ("Other License"), formally executed by you and Linden Lab. Terms of
|
||||
* the GPL can be found in doc/GPL-license.txt in this distribution, or
|
||||
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
*
|
||||
* There are special exceptions to the terms and conditions of the GPL as
|
||||
* it is applied to this Source Code. View the full text of the exception
|
||||
* in the file doc/FLOSS-exception.txt in this software distribution, or
|
||||
* online at
|
||||
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
*
|
||||
* By copying, modifying or distributing this software, you acknowledge
|
||||
* that you have read and understood your obligations described above,
|
||||
* and agree to abide by those obligations.
|
||||
*
|
||||
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLFLOATERBUYCURRENCYHTML_H
|
||||
#define LL_LLFLOATERBUYCURRENCYHTML_H
|
||||
|
||||
#include "llfloater.h"
|
||||
#include "llmediactrl.h"
|
||||
|
||||
class LLFloaterBuyCurrencyHTML :
|
||||
public LLFloater,
|
||||
public LLViewerMediaObserver
|
||||
{
|
||||
public:
|
||||
LLFloaterBuyCurrencyHTML( const LLSD& key );
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
/*virtual*/ void onClose( bool app_quitting );
|
||||
|
||||
// inherited from LLViewerMediaObserver
|
||||
/*virtual*/ void handleMediaEvent( LLPluginClassMedia* self, EMediaEvent event );
|
||||
|
||||
// allow our controlling parent to tell us paramters
|
||||
void setParams( bool specific_sum_requested, const std::string& message, S32 sum );
|
||||
|
||||
// parse and construct URL and set browser to navigate there.
|
||||
void navigateToFinalURL();
|
||||
|
||||
private:
|
||||
LLMediaCtrl* mBrowser;
|
||||
bool mSpecificSumRequested;
|
||||
std::string mMessage;
|
||||
S32 mSum;
|
||||
};
|
||||
|
||||
#endif // LL_LLFLOATERBUYCURRENCYHTML_H
|
||||
|
|
@ -79,9 +79,6 @@ BOOL LLFloaterHUD::postBuild()
|
|||
mWebBrowser = getChild<LLMediaCtrl>("floater_hud_browser" );
|
||||
if (mWebBrowser)
|
||||
{
|
||||
// Open links in internal browser
|
||||
mWebBrowser->setOpenInExternalBrowser(false);
|
||||
|
||||
// This is a "chrome" floater, so we don't want anything to
|
||||
// take focus (as the user needs to be able to walk with
|
||||
// arrow keys during tutorial).
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ BOOL LLFloaterNotificationConsole::postBuild()
|
|||
addChannel("Ignore");
|
||||
addChannel("Visible", true);
|
||||
// all the ones below attach to the Visible channel
|
||||
addChannel("History");
|
||||
addChannel("Persistent");
|
||||
addChannel("Alerts");
|
||||
addChannel("AlertModal");
|
||||
addChannel("Group Notifications");
|
||||
|
|
|
|||
|
|
@ -1244,7 +1244,9 @@ void LLInventoryModel::addCategory(LLViewerInventoryCategory* category)
|
|||
|
||||
void LLInventoryModel::addItem(LLViewerInventoryItem* item)
|
||||
{
|
||||
//llinfos << "LLInventoryModel::addItem()" << llendl;
|
||||
const LLViewerInventoryCategory* cat = gInventory.getCategory(item->getParentUUID()); // Seraph remove for 2.1
|
||||
const std::string cat_name = cat ? cat->getName() : "CAT NOT FOUND"; // Seraph remove for 2.1
|
||||
llinfos << "Added item [ name:" << item->getName() << " UUID:" << item->getUUID() << " type:" << item->getActualType() << " ] to folder [ name:" << cat_name << " uuid:" << item->getParentUUID() << " ]" << llendl; // Seraph remove for 2.1
|
||||
|
||||
llassert(item);
|
||||
if(item)
|
||||
|
|
|
|||
|
|
@ -78,8 +78,6 @@ LLMediaCtrl::LLMediaCtrl( const Params& p) :
|
|||
mBorder(NULL),
|
||||
mFrequentUpdates( true ),
|
||||
mForceUpdate( false ),
|
||||
mOpenLinksInExternalBrowser( false ),
|
||||
mOpenLinksInInternalBrowser( false ),
|
||||
mHomePageUrl( "" ),
|
||||
mTrusted(false),
|
||||
mIgnoreUIScale( true ),
|
||||
|
|
@ -166,20 +164,6 @@ void LLMediaCtrl::setTakeFocusOnClick( bool take_focus )
|
|||
mTakeFocusOnClick = take_focus;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// set flag that forces the embedded browser to open links in the external system browser
|
||||
void LLMediaCtrl::setOpenInExternalBrowser( bool valIn )
|
||||
{
|
||||
mOpenLinksInExternalBrowser = valIn;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// set flag that forces the embedded browser to open links in the internal browser floater
|
||||
void LLMediaCtrl::setOpenInInternalBrowser( bool valIn )
|
||||
{
|
||||
mOpenLinksInInternalBrowser = valIn;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void LLMediaCtrl::setTrusted( bool valIn )
|
||||
{
|
||||
|
|
@ -944,7 +928,6 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event)
|
|||
case MEDIA_EVENT_CLICK_LINK_HREF:
|
||||
{
|
||||
LL_DEBUGS("Media") << "Media event: MEDIA_EVENT_CLICK_LINK_HREF, target is \"" << self->getClickTarget() << "\", uri is " << self->getClickURL() << LL_ENDL;
|
||||
onClickLinkHref(self);
|
||||
};
|
||||
break;
|
||||
|
||||
|
|
@ -977,95 +960,6 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event)
|
|||
emitEvent(self, event);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLMediaCtrl::onClickLinkHref( LLPluginClassMedia* self )
|
||||
{
|
||||
// retrieve the event parameters
|
||||
std::string url = self->getClickURL();
|
||||
U32 target_type = self->getClickTargetType();
|
||||
|
||||
// is there is a target specified for the link?
|
||||
if (target_type == LLPluginClassMedia::TARGET_EXTERNAL ||
|
||||
target_type == LLPluginClassMedia::TARGET_BLANK )
|
||||
{
|
||||
if (gSavedSettings.getBOOL("UseExternalBrowser"))
|
||||
{
|
||||
LLSD payload;
|
||||
payload["url"] = url;
|
||||
payload["target_type"] = LLSD::Integer(target_type);
|
||||
LLNotificationsUtil::add( "WebLaunchExternalTarget", LLSD(), payload, onClickLinkExternalTarget);
|
||||
}
|
||||
else
|
||||
{
|
||||
clickLinkWithTarget(url, target_type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
const std::string protocol1( "http://" );
|
||||
const std::string protocol2( "https://" );
|
||||
if( mOpenLinksInExternalBrowser )
|
||||
{
|
||||
if ( !url.empty() )
|
||||
{
|
||||
if ( LLStringUtil::compareInsensitive( url.substr( 0, protocol1.length() ), protocol1 ) == 0 ||
|
||||
LLStringUtil::compareInsensitive( url.substr( 0, protocol2.length() ), protocol2 ) == 0 )
|
||||
{
|
||||
LLWeb::loadURLExternal( url );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if( mOpenLinksInInternalBrowser )
|
||||
{
|
||||
if ( !url.empty() )
|
||||
{
|
||||
if ( LLStringUtil::compareInsensitive( url.substr( 0, protocol1.length() ), protocol1 ) == 0 ||
|
||||
LLStringUtil::compareInsensitive( url.substr( 0, protocol2.length() ), protocol2 ) == 0 )
|
||||
{
|
||||
llwarns << "Dead, unimplemented path that we used to send to the built-in browser long ago." << llendl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
bool LLMediaCtrl::onClickLinkExternalTarget(const LLSD& notification, const LLSD& response )
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if ( 0 == option )
|
||||
{
|
||||
LLSD payload = notification["payload"];
|
||||
std::string url = payload["url"].asString();
|
||||
S32 target_type = payload["target_type"].asInteger();
|
||||
clickLinkWithTarget(url, target_type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
void LLMediaCtrl::clickLinkWithTarget(const std::string& url, const S32& target_type )
|
||||
{
|
||||
if (target_type == LLPluginClassMedia::TARGET_EXTERNAL)
|
||||
{
|
||||
// load target in an external browser
|
||||
LLWeb::loadURLExternal(url);
|
||||
}
|
||||
else if (target_type == LLPluginClassMedia::TARGET_BLANK)
|
||||
{
|
||||
// load target in the user's preferred browser
|
||||
LLWeb::loadURL(url);
|
||||
}
|
||||
else {
|
||||
// unsupported link target - shouldn't happen
|
||||
LL_WARNS("LinkTarget") << "Unsupported link target type" << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
std::string LLMediaCtrl::getCurrentNavUrl()
|
||||
|
|
|
|||
|
|
@ -99,8 +99,6 @@ public:
|
|||
void navigateToLocalPage( const std::string& subdir, const std::string& filename_in );
|
||||
bool canNavigateBack();
|
||||
bool canNavigateForward();
|
||||
void setOpenInExternalBrowser( bool valIn );
|
||||
void setOpenInInternalBrowser( bool valIn );
|
||||
std::string getCurrentNavUrl();
|
||||
|
||||
// By default, we do not handle "secondlife:///app/" SLURLs, because
|
||||
|
|
@ -162,24 +160,17 @@ public:
|
|||
// Incoming media event dispatcher
|
||||
virtual void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
|
||||
|
||||
// handlers for individual events (could be done inside the switch in handleMediaEvent, they're just individual functions for clarity)
|
||||
void onClickLinkHref( LLPluginClassMedia* self );
|
||||
|
||||
protected:
|
||||
void convertInputCoords(S32& x, S32& y);
|
||||
|
||||
private:
|
||||
void onVisibilityChange ( const LLSD& new_visibility );
|
||||
static bool onClickLinkExternalTarget( const LLSD&, const LLSD& );
|
||||
static void clickLinkWithTarget(const std::string& url, const S32& target_type );
|
||||
|
||||
const S32 mTextureDepthBytes;
|
||||
LLUUID mMediaTextureID;
|
||||
LLViewBorder* mBorder;
|
||||
bool mFrequentUpdates;
|
||||
bool mForceUpdate;
|
||||
bool mOpenLinksInExternalBrowser;
|
||||
bool mOpenLinksInInternalBrowser;
|
||||
bool mTrusted;
|
||||
std::string mHomePageUrl;
|
||||
std::string mCurrentNavUrl;
|
||||
|
|
|
|||
|
|
@ -131,14 +131,7 @@ void LLMorphView::setVisible(BOOL visible)
|
|||
|
||||
if (visible)
|
||||
{
|
||||
llassert( !gFloaterCustomize );
|
||||
gFloaterCustomize = new LLFloaterCustomize();
|
||||
gFloaterCustomize->fetchInventory();
|
||||
gFloaterCustomize->openFloater();
|
||||
|
||||
// Must do this _after_ gFloaterView is initialized.
|
||||
gFloaterCustomize->switchToDefaultSubpart();
|
||||
|
||||
// TODO: verify some user action has already opened outfit editor? - Nyx
|
||||
initialize();
|
||||
|
||||
// First run dialog
|
||||
|
|
@ -146,13 +139,7 @@ void LLMorphView::setVisible(BOOL visible)
|
|||
}
|
||||
else
|
||||
{
|
||||
if( gFloaterCustomize )
|
||||
{
|
||||
gFloaterView->removeChild( gFloaterCustomize );
|
||||
delete gFloaterCustomize;
|
||||
gFloaterCustomize = NULL;
|
||||
}
|
||||
|
||||
// TODO: verify some user action has already closed outfit editor ? - Nyx
|
||||
shutdown();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@
|
|||
#include "lltextureentry.h"
|
||||
#include "llviewercontrol.h" // gSavedSettings
|
||||
#include "llviewertexturelist.h"
|
||||
#include "llagentcamera.h"
|
||||
#include "llmorphview.h"
|
||||
|
||||
// register panel with appropriate XML
|
||||
static LLRegisterPanelClassWrapper<LLPanelEditWearable> t_edit_wearable("panel_edit_wearable");
|
||||
|
|
@ -951,6 +953,9 @@ void LLPanelEditWearable::initializePanel()
|
|||
// what edit group do we want to extract params for?
|
||||
const std::string edit_group = subpart_entry->mEditGroup;
|
||||
|
||||
// initialize callback to ensure camera view changes appropriately.
|
||||
tab->setDropDownStateChangedCallback(boost::bind(&LLPanelEditWearable::onTabExpandedCollapsed,this,_2,index));
|
||||
|
||||
// storage for ordered list of visual params
|
||||
value_map_t sorted_params;
|
||||
getSortedParams(sorted_params, edit_group);
|
||||
|
|
@ -989,6 +994,52 @@ void LLPanelEditWearable::updateTypeSpecificControls(LLWearableType::EType type)
|
|||
}
|
||||
}
|
||||
|
||||
void LLPanelEditWearable::onTabExpandedCollapsed(const LLSD& param, U8 index)
|
||||
{
|
||||
bool expanded = param.asBoolean();
|
||||
|
||||
if (!mWearablePtr || !gAgentCamera.cameraCustomizeAvatar())
|
||||
{
|
||||
// we don't have a valid wearable we're editing, or we've left the wearable editor
|
||||
return;
|
||||
}
|
||||
|
||||
if (expanded)
|
||||
{
|
||||
const LLEditWearableDictionary::WearableEntry *wearable_entry = LLEditWearableDictionary::getInstance()->getWearable(mWearablePtr->getType());
|
||||
if (!wearable_entry)
|
||||
{
|
||||
llinfos << "could not get wearable dictionary entry for wearable type: " << mWearablePtr->getType() << llendl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (index >= wearable_entry->mSubparts.size())
|
||||
{
|
||||
llinfos << "accordion tab expanded for invalid subpart. Wearable type: " << mWearablePtr->getType() << " subpart num: " << index << llendl;
|
||||
return;
|
||||
}
|
||||
|
||||
ESubpart subpart_e = wearable_entry->mSubparts[index];
|
||||
const LLEditWearableDictionary::SubpartEntry *subpart_entry = LLEditWearableDictionary::getInstance()->getSubpart(subpart_e);
|
||||
|
||||
if (!subpart_entry)
|
||||
{
|
||||
llwarns << "could not get wearable subpart dictionary entry for subpart: " << subpart_e << llendl;
|
||||
return;
|
||||
}
|
||||
|
||||
// Update the camera
|
||||
gMorphView->setCameraTargetJoint( gAgentAvatarp->getJoint( subpart_entry->mTargetJoint ) );
|
||||
gMorphView->setCameraTargetOffset( subpart_entry->mTargetOffset );
|
||||
gMorphView->setCameraOffset( subpart_entry->mCameraOffset );
|
||||
gMorphView->setCameraDistToDefault();
|
||||
if (gSavedSettings.getBOOL("AppearanceCameraMovement"))
|
||||
{
|
||||
gMorphView->updateCamera();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelEditWearable::updateScrollingPanelUI()
|
||||
{
|
||||
// do nothing if we don't have a valid wearable we're editing
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ public:
|
|||
static void onRevertButtonClicked(void* userdata);
|
||||
void onCommitSexChange();
|
||||
|
||||
void onTabExpandedCollapsed(const LLSD& param, U8 index);
|
||||
|
||||
private:
|
||||
typedef std::map<F32, LLViewerVisualParam*> value_map_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -270,20 +270,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
|
|||
web_browser->setTabStop(FALSE);
|
||||
// web_browser->navigateToLocalPage( "loading", "loading.html" );
|
||||
|
||||
if (gSavedSettings.getBOOL("RegInClient"))
|
||||
{
|
||||
// need to follow links in the internal browser
|
||||
web_browser->setOpenInExternalBrowser( false );
|
||||
|
||||
getChild<LLView>("login_widgets")->setVisible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// make links open in external browser
|
||||
web_browser->setOpenInExternalBrowser( true );
|
||||
|
||||
reshapeBrowser();
|
||||
}
|
||||
reshapeBrowser();
|
||||
|
||||
// kick off a request to grab the url manually
|
||||
gResponsePtr = LLIamHereLogin::build( this );
|
||||
|
|
@ -487,7 +474,6 @@ void LLPanelLogin::showLoginWidgets()
|
|||
{
|
||||
sInstance->childSetVisible("login_widgets", true);
|
||||
LLMediaCtrl* web_browser = sInstance->getChild<LLMediaCtrl>("login_html");
|
||||
web_browser->setOpenInExternalBrowser( true );
|
||||
sInstance->reshapeBrowser();
|
||||
// *TODO: Append all the usual login parameters, like first_login=Y etc.
|
||||
std::string splash_screen_url = sInstance->getString("real_url");
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#include "llagent.h"
|
||||
#include "llavataractions.h"
|
||||
#include "llcallbacklist.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llinventorybridge.h"
|
||||
#include "llinventorydefines.h"
|
||||
|
|
@ -616,7 +616,7 @@ void LLTaskInvFVBridge::performAction(LLInventoryModel* model, std::string actio
|
|||
{
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", price);
|
||||
LLFloaterBuyCurrency::buyCurrency(LLTrans::getString("this_costs", args), price);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("this_costs", args), price );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
#include "llagentui.h"
|
||||
#include "llappviewer.h"
|
||||
#include "llcallbacklist.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llstatusbar.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewerparcelmgr.h"
|
||||
|
|
@ -573,7 +573,7 @@ void LLPanelPlaceProfile::onForSaleBannerClick()
|
|||
{
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", price);
|
||||
LLFloaterBuyCurrency::buyCurrency(LLTrans::getString("buying_selected_land", args), price);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("buying_selected_land", args), price );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -73,9 +73,9 @@ LLScrollingPanelParam::LLScrollingPanelParam( const LLPanel::Params& panel_param
|
|||
F32 min_weight = param->getMinWeight();
|
||||
F32 max_weight = param->getMaxWeight();
|
||||
|
||||
mHintMin = new LLVisualParamHint( pos_x, pos_y, PARAM_HINT_WIDTH, PARAM_HINT_HEIGHT, mesh, (LLViewerVisualParam*) wearable->getVisualParam(param->getID()), min_weight);
|
||||
mHintMin = new LLVisualParamHint( pos_x, pos_y, PARAM_HINT_WIDTH, PARAM_HINT_HEIGHT, mesh, (LLViewerVisualParam*) wearable->getVisualParam(param->getID()), wearable, min_weight);
|
||||
pos_x = getChild<LLViewBorder>("right_border")->getRect().mLeft + left_border->getBorderWidth();
|
||||
mHintMax = new LLVisualParamHint( pos_x, pos_y, PARAM_HINT_WIDTH, PARAM_HINT_HEIGHT, mesh, (LLViewerVisualParam*) wearable->getVisualParam(param->getID()), max_weight );
|
||||
mHintMax = new LLVisualParamHint( pos_x, pos_y, PARAM_HINT_WIDTH, PARAM_HINT_HEIGHT, mesh, (LLViewerVisualParam*) wearable->getVisualParam(param->getID()), wearable, max_weight );
|
||||
|
||||
mHintMin->setAllowsUpdates( FALSE );
|
||||
mHintMax->setAllowsUpdates( FALSE );
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@
|
|||
#include "llsidetray.h"
|
||||
#include "lltextbox.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "llvoavatarself.h"
|
||||
#include "llwearable.h"
|
||||
|
|
@ -267,14 +268,14 @@ void LLSidepanelAppearance::showOutfitsInventoryPanel()
|
|||
void LLSidepanelAppearance::showOutfitEditPanel()
|
||||
{
|
||||
togglMyOutfitsPanel(FALSE);
|
||||
toggleWearableEditPanel(FALSE);
|
||||
toggleWearableEditPanel(FALSE, NULL, TRUE); // don't switch out of edit appearance mode
|
||||
toggleOutfitEditPanel(TRUE);
|
||||
}
|
||||
|
||||
void LLSidepanelAppearance::showWearableEditPanel(LLWearable *wearable /* = NULL*/)
|
||||
{
|
||||
togglMyOutfitsPanel(FALSE);
|
||||
toggleOutfitEditPanel(FALSE);
|
||||
toggleOutfitEditPanel(FALSE, TRUE); // don't switch out of edit appearance mode
|
||||
toggleWearableEditPanel(TRUE, wearable);
|
||||
}
|
||||
|
||||
|
|
@ -300,7 +301,7 @@ void LLSidepanelAppearance::togglMyOutfitsPanel(BOOL visible)
|
|||
}
|
||||
}
|
||||
|
||||
void LLSidepanelAppearance::toggleOutfitEditPanel(BOOL visible)
|
||||
void LLSidepanelAppearance::toggleOutfitEditPanel(BOOL visible, BOOL disable_camera_switch)
|
||||
{
|
||||
if (!mOutfitEdit || mOutfitEdit->getVisible() == visible)
|
||||
{
|
||||
|
|
@ -313,10 +314,18 @@ void LLSidepanelAppearance::toggleOutfitEditPanel(BOOL visible)
|
|||
if (visible)
|
||||
{
|
||||
mOutfitEdit->onOpen(LLSD());
|
||||
if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") )
|
||||
{
|
||||
gAgentCamera.changeCameraToCustomizeAvatar();
|
||||
}
|
||||
}
|
||||
else if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") )
|
||||
{
|
||||
gAgentCamera.changeCameraToDefault();
|
||||
}
|
||||
}
|
||||
|
||||
void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLWearable *wearable)
|
||||
void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLWearable *wearable, BOOL disable_camera_switch)
|
||||
{
|
||||
if (!mEditWearable || mEditWearable->getVisible() == visible)
|
||||
{
|
||||
|
|
@ -340,11 +349,19 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLWearable *we
|
|||
if (visible)
|
||||
{
|
||||
mEditWearable->onOpen(LLSD()); // currently no-op, just for consistency
|
||||
if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") )
|
||||
{
|
||||
gAgentCamera.changeCameraToCustomizeAvatar();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Save changes if closing.
|
||||
mEditWearable->saveChanges();
|
||||
if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") )
|
||||
{
|
||||
gAgentCamera.changeCameraToDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ private:
|
|||
void onEditAppearanceButtonClicked();
|
||||
|
||||
void togglMyOutfitsPanel(BOOL visible);
|
||||
void toggleOutfitEditPanel(BOOL visible);
|
||||
void toggleWearableEditPanel(BOOL visible, LLWearable* wearable = NULL);
|
||||
void toggleOutfitEditPanel(BOOL visible, BOOL disable_camera_switch = FALSE);
|
||||
void toggleWearableEditPanel(BOOL visible, LLWearable* wearable = NULL, BOOL disable_camera_switch = FALSE);
|
||||
|
||||
LLFilterEditor* mFilterEditor;
|
||||
LLPanelOutfitsInventory* mPanelOutfitsInventory;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
#include "llcommandhandler.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfloaterlagmeter.h"
|
||||
#include "llpanelnearbymedia.h"
|
||||
#include "llpanelvolumepulldown.h"
|
||||
|
|
@ -509,7 +510,9 @@ S32 LLStatusBar::getSquareMetersLeft() const
|
|||
|
||||
void LLStatusBar::onClickBuyCurrency()
|
||||
{
|
||||
LLFloaterBuyCurrency::buyCurrency();
|
||||
// open a currency floater - actual one open depends on
|
||||
// value specified in settings.xml
|
||||
LLBuyCurrencyHTML::openCurrencyFloater();
|
||||
}
|
||||
|
||||
static void onClickHealth(void* )
|
||||
|
|
|
|||
|
|
@ -1304,7 +1304,7 @@ void LLTextureCtrl::draw()
|
|||
LLColor4::white, LLFontGL::LEFT, LLFontGL::BASELINE, LLFontGL::DROP_SHADOW);
|
||||
|
||||
v_offset += 12;
|
||||
tdesc = llformat(" ID : %s...", (mImageAssetID.asString().substr(0,10)).c_str());
|
||||
tdesc = llformat(" ID : %s...", (mImageAssetID.asString().substr(0,7)).c_str());
|
||||
font->renderUTF8(tdesc, 0, llfloor(interior.mLeft+3), llfloor(interior.mTop-v_offset),
|
||||
LLColor4::white, LLFontGL::LEFT, LLFontGL::BASELINE, LLFontGL::DROP_SHADOW);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ LLVisualParamHint::LLVisualParamHint(
|
|||
S32 width, S32 height,
|
||||
LLViewerJointMesh *mesh,
|
||||
LLViewerVisualParam *param,
|
||||
LLWearable *wearable,
|
||||
F32 param_weight)
|
||||
:
|
||||
LLViewerDynamicTexture(width, height, 3, LLViewerDynamicTexture::ORDER_MIDDLE, TRUE ),
|
||||
|
|
@ -86,6 +87,7 @@ LLVisualParamHint::LLVisualParamHint(
|
|||
mIsVisible( FALSE ),
|
||||
mJointMesh( mesh ),
|
||||
mVisualParam( param ),
|
||||
mWearablePtr( wearable ),
|
||||
mVisualParamWeight( param_weight ),
|
||||
mAllowsUpdates( TRUE ),
|
||||
mDelayFrames( 0 ),
|
||||
|
|
@ -151,7 +153,7 @@ BOOL LLVisualParamHint::needsRender()
|
|||
void LLVisualParamHint::preRender(BOOL clear_depth)
|
||||
{
|
||||
mLastParamWeight = mVisualParam->getWeight();
|
||||
mVisualParam->setWeight(mVisualParamWeight, FALSE);
|
||||
mWearablePtr->setVisualParamWeight(mVisualParam->getID(), mVisualParamWeight, FALSE);
|
||||
gAgentAvatarp->setVisualParamWeight(mVisualParam->getID(), mVisualParamWeight, FALSE);
|
||||
gAgentAvatarp->setVisualParamWeight("Blink_Left", 0.f);
|
||||
gAgentAvatarp->setVisualParamWeight("Blink_Right", 0.f);
|
||||
|
|
@ -250,10 +252,12 @@ BOOL LLVisualParamHint::render()
|
|||
gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT);
|
||||
}
|
||||
gAgentAvatarp->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight);
|
||||
mVisualParam->setWeight(mLastParamWeight, FALSE);
|
||||
mWearablePtr->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight, FALSE);
|
||||
gAgentAvatarp->updateVisualParams();
|
||||
gGL.color4f(1,1,1,1);
|
||||
mGLTexturep->setGLTextureCreated(true);
|
||||
gGL.popUIMatrix();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ public:
|
|||
S32 width, S32 height,
|
||||
LLViewerJointMesh *mesh,
|
||||
LLViewerVisualParam *param,
|
||||
LLWearable *wearable,
|
||||
F32 param_weight);
|
||||
|
||||
/*virtual*/ S8 getType() const ;
|
||||
|
|
@ -89,6 +90,7 @@ protected:
|
|||
BOOL mIsVisible; // is this distortion hint visible?
|
||||
LLViewerJointMesh* mJointMesh; // mesh that this distortion applies to
|
||||
LLViewerVisualParam* mVisualParam; // visual param applied by this hint
|
||||
LLWearable* mWearablePtr; // wearable we're editing
|
||||
F32 mVisualParamWeight; // weight for this visual parameter
|
||||
BOOL mAllowsUpdates; // updates are blocked unless this is true
|
||||
S32 mDelayFrames; // updates are blocked for this many frames
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
#include "llfloaterbuy.h"
|
||||
#include "llfloaterbuycontents.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llfloaterbuycurrencyhtml.h"
|
||||
#include "llfloaterbuyland.h"
|
||||
#include "llfloaterbulkpermission.h"
|
||||
#include "llfloaterbump.h"
|
||||
|
|
@ -141,6 +142,7 @@ void LLViewerFloaterReg::registerFloaters()
|
|||
LLFloaterReg::add("beacons", "floater_beacons.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBeacons>);
|
||||
LLFloaterReg::add("bulk_perms", "floater_bulk_perms.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBulkPermission>);
|
||||
LLFloaterReg::add("buy_currency", "floater_buy_currency.xml", &LLFloaterBuyCurrency::buildFloater);
|
||||
LLFloaterReg::add("buy_currency_html", "floater_buy_currency_html.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBuyCurrencyHTML>);
|
||||
LLFloaterReg::add("buy_land", "floater_buy_land.xml", &LLFloaterBuyLand::buildFloater);
|
||||
LLFloaterReg::add("buy_object", "floater_buy_object.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBuy>);
|
||||
LLFloaterReg::add("buy_object_contents", "floater_buy_contents.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBuyContents>);
|
||||
|
|
|
|||
|
|
@ -2795,6 +2795,42 @@ bool LLViewerMediaImpl::isPlayable() const
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
bool LLViewerMediaImpl::onClickLinkExternalTarget(const LLSD& notification, const LLSD& response )
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if ( 0 == option )
|
||||
{
|
||||
LLSD payload = notification["payload"];
|
||||
std::string url = payload["url"].asString();
|
||||
S32 target_type = payload["target_type"].asInteger();
|
||||
clickLinkWithTarget(url, target_type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// static
|
||||
void LLViewerMediaImpl::clickLinkWithTarget(const std::string& url, const S32& target_type )
|
||||
{
|
||||
if (target_type == LLPluginClassMedia::TARGET_EXTERNAL)
|
||||
{
|
||||
// load target in an external browser
|
||||
LLWeb::loadURLExternal(url);
|
||||
}
|
||||
else if (target_type == LLPluginClassMedia::TARGET_BLANK)
|
||||
{
|
||||
// load target in the user's preferred browser
|
||||
LLWeb::loadURL(url);
|
||||
}
|
||||
else {
|
||||
// unsupported link target - shouldn't happen
|
||||
LL_WARNS("LinkTarget") << "Unsupported link target type" << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
void LLViewerMediaImpl::handleMediaEvent(LLPluginClassMedia* plugin, LLPluginClassMediaOwner::EMediaEvent event)
|
||||
{
|
||||
|
|
@ -2808,6 +2844,31 @@ void LLViewerMediaImpl::handleMediaEvent(LLPluginClassMedia* plugin, LLPluginCla
|
|||
|
||||
}
|
||||
break;
|
||||
case MEDIA_EVENT_CLICK_LINK_HREF:
|
||||
{
|
||||
LL_DEBUGS("Media") << "Media event: MEDIA_EVENT_CLICK_LINK_HREF, target is \"" << plugin->getClickTarget() << "\", uri is " << plugin->getClickURL() << LL_ENDL;
|
||||
// retrieve the event parameters
|
||||
std::string url = plugin->getClickURL();
|
||||
U32 target_type = plugin->getClickTargetType();
|
||||
|
||||
// is there is a target specified for the link?
|
||||
if (target_type == LLPluginClassMedia::TARGET_EXTERNAL ||
|
||||
target_type == LLPluginClassMedia::TARGET_BLANK )
|
||||
{
|
||||
if (gSavedSettings.getBOOL("UseExternalBrowser"))
|
||||
{
|
||||
LLSD payload;
|
||||
payload["url"] = url;
|
||||
payload["target_type"] = LLSD::Integer(target_type);
|
||||
LLNotificationsUtil::add( "WebLaunchExternalTarget", LLSD(), payload, onClickLinkExternalTarget);
|
||||
}
|
||||
else
|
||||
{
|
||||
clickLinkWithTarget(url, target_type);
|
||||
}
|
||||
}
|
||||
};
|
||||
break;
|
||||
case MEDIA_EVENT_PLUGIN_FAILED_LAUNCH:
|
||||
{
|
||||
// The plugin failed to load properly. Make sure the timer doesn't retry.
|
||||
|
|
|
|||
|
|
@ -391,6 +391,8 @@ private:
|
|||
bool shouldShowBasedOnClass() const;
|
||||
static bool isObjectAttachedToAnotherAvatar(LLVOVolume *obj);
|
||||
static bool isObjectInAgentParcel(LLVOVolume *obj);
|
||||
static bool onClickLinkExternalTarget( const LLSD&, const LLSD& );
|
||||
static void clickLinkWithTarget(const std::string& url, const S32& target_type );
|
||||
|
||||
private:
|
||||
// a single media url with some data and an impl.
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
//#include "llfirstuse.h"
|
||||
#include "llfloaterbuy.h"
|
||||
#include "llfloaterbuycontents.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfloatercustomize.h"
|
||||
#include "llfloatergodtools.h"
|
||||
#include "llfloaterinventory.h"
|
||||
|
|
@ -3288,7 +3288,7 @@ void handle_buy_object(LLSaleInfo sale_info)
|
|||
{
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", price);
|
||||
LLFloaterBuyCurrency::buyCurrency(LLTrans::getString("this_object_costs", args), price);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("this_object_costs", args), price );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -4430,8 +4430,7 @@ void handle_buy_or_take()
|
|||
{
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", total_price);
|
||||
LLFloaterBuyCurrency::buyCurrency(
|
||||
LLTrans::getString("BuyingCosts", args), total_price);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString( "BuyingCosts", args ), total_price );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -5612,6 +5611,11 @@ void handle_customize_avatar()
|
|||
LLSideTray::getInstance()->showPanel("sidepanel_appearance", LLSD().with("type", "my_outfits"));
|
||||
}
|
||||
|
||||
void handle_edit_outfit()
|
||||
{
|
||||
LLSideTray::getInstance()->showPanel("sidepanel_appearance", LLSD().with("type", "edit_outfit"));
|
||||
}
|
||||
|
||||
void handle_edit_shape()
|
||||
{
|
||||
LLSideTray::getInstance()->showPanel("sidepanel_appearance", LLSD().with("type", "edit_shape"));
|
||||
|
|
@ -5626,7 +5630,7 @@ void handle_report_abuse()
|
|||
|
||||
void handle_buy_currency()
|
||||
{
|
||||
LLFloaterBuyCurrency::buyCurrency();
|
||||
LLBuyCurrencyHTML::openCurrencyFloater();
|
||||
}
|
||||
|
||||
class LLFloaterVisible : public view_listener_t
|
||||
|
|
@ -7727,6 +7731,7 @@ void initialize_menus()
|
|||
view_listener_t::addMenu(new LLEditEnableCustomizeAvatar(), "Edit.EnableCustomizeAvatar");
|
||||
view_listener_t::addMenu(new LLEnableEditShape(), "Edit.EnableEditShape");
|
||||
commit.add("CustomizeAvatar", boost::bind(&handle_customize_avatar));
|
||||
commit.add("EditOutfit", boost::bind(&handle_edit_outfit));
|
||||
commit.add("EditShape", boost::bind(&handle_edit_shape));
|
||||
|
||||
// View menu
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
#include "llagentcamera.h"
|
||||
#include "llfilepicker.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfloatersnapshot.h"
|
||||
#include "llimage.h"
|
||||
#include "llimagebmp.h"
|
||||
|
|
@ -811,7 +811,7 @@ void upload_done_callback(const LLUUID& uuid, void* user_data, S32 result, LLExt
|
|||
LLStringUtil::format_map_t args;
|
||||
args["NAME"] = data->mAssetInfo.getName();
|
||||
args["AMOUNT"] = llformat("%d", expected_upload_cost);
|
||||
LLFloaterBuyCurrency::buyCurrency(LLTrans::getString("UploadingCosts", args), expected_upload_cost);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("UploadingCosts", args), expected_upload_cost );
|
||||
is_balance_sufficient = FALSE;
|
||||
}
|
||||
else if(region)
|
||||
|
|
|
|||
|
|
@ -55,8 +55,7 @@
|
|||
#include "llagent.h"
|
||||
#include "llagentcamera.h"
|
||||
#include "llcallingcard.h"
|
||||
//#include "llfirstuse.h"
|
||||
#include "llfloaterbuycurrency.h"
|
||||
#include "llbuycurrencyhtml.h"
|
||||
#include "llfloaterbuyland.h"
|
||||
#include "llfloaterland.h"
|
||||
#include "llfloaterregioninfo.h"
|
||||
|
|
@ -283,7 +282,7 @@ void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_
|
|||
{
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", amount);
|
||||
LLFloaterBuyCurrency::buyCurrency(LLTrans::getString("giving", args), amount);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("giving", args), amount );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,12 +66,14 @@ const F32 LEAF_TOP = 1.0f;
|
|||
const F32 LEAF_BOTTOM = 0.52f;
|
||||
const F32 LEAF_WIDTH = 1.f;
|
||||
|
||||
S32 LLVOTree::sLODVertexOffset[4];
|
||||
S32 LLVOTree::sLODVertexCount[4];
|
||||
S32 LLVOTree::sLODIndexOffset[4];
|
||||
S32 LLVOTree::sLODIndexCount[4];
|
||||
S32 LLVOTree::sLODSlices[4] = {10, 5, 4, 3};
|
||||
F32 LLVOTree::sLODAngles[4] = {30.f, 20.f, 15.f, 0.f};
|
||||
const S32 LLVOTree::sMAX_NUM_TREE_LOD_LEVELS = 4 ;
|
||||
|
||||
S32 LLVOTree::sLODVertexOffset[sMAX_NUM_TREE_LOD_LEVELS];
|
||||
S32 LLVOTree::sLODVertexCount[sMAX_NUM_TREE_LOD_LEVELS];
|
||||
S32 LLVOTree::sLODIndexOffset[sMAX_NUM_TREE_LOD_LEVELS];
|
||||
S32 LLVOTree::sLODIndexCount[sMAX_NUM_TREE_LOD_LEVELS];
|
||||
S32 LLVOTree::sLODSlices[sMAX_NUM_TREE_LOD_LEVELS] = {10, 5, 4, 3};
|
||||
F32 LLVOTree::sLODAngles[sMAX_NUM_TREE_LOD_LEVELS] = {30.f, 20.f, 15.f, 0.00001f};
|
||||
|
||||
F32 LLVOTree::sTreeFactor = 1.f;
|
||||
|
||||
|
|
@ -373,12 +375,11 @@ BOOL LLVOTree::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time)
|
|||
}
|
||||
}
|
||||
|
||||
S32 trunk_LOD = 0;
|
||||
S32 trunk_LOD = sMAX_NUM_TREE_LOD_LEVELS ;
|
||||
F32 app_angle = getAppAngle()*LLVOTree::sTreeFactor;
|
||||
|
||||
for (S32 j = 0; j < 4; j++)
|
||||
for (S32 j = 0; j < sMAX_NUM_TREE_LOD_LEVELS; j++)
|
||||
{
|
||||
|
||||
if (app_angle > LLVOTree::sLODAngles[j])
|
||||
{
|
||||
trunk_LOD = j;
|
||||
|
|
@ -445,16 +446,15 @@ void LLVOTree::setPixelAreaAndAngle(LLAgent &agent)
|
|||
|
||||
// This should be the camera's center, as soon as we move to all region-local.
|
||||
LLVector3 relative_position = getPositionAgent() - gAgentCamera.getCameraPositionAgent();
|
||||
F32 range = relative_position.length(); // ugh, square root
|
||||
F32 range_squared = relative_position.lengthSquared() ;
|
||||
|
||||
F32 max_scale = mBillboardScale * getMaxScale();
|
||||
F32 area = max_scale * (max_scale*mBillboardRatio);
|
||||
|
||||
// Compute pixels per meter at the given range
|
||||
F32 pixels_per_meter = LLViewerCamera::getInstance()->getViewHeightInPixels() /
|
||||
(tan(LLViewerCamera::getInstance()->getView()) * range);
|
||||
F32 pixels_per_meter = LLViewerCamera::getInstance()->getViewHeightInPixels() / tan(LLViewerCamera::getInstance()->getView());
|
||||
|
||||
mPixelArea = (pixels_per_meter) * (pixels_per_meter) * area;
|
||||
mPixelArea = (pixels_per_meter) * (pixels_per_meter) * area / range_squared;
|
||||
#if 0
|
||||
// mAppAngle is a bit of voodoo;
|
||||
// use the one calculated LLViewerObject::setPixelAreaAndAngle above
|
||||
|
|
@ -506,6 +506,13 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
|
|||
{
|
||||
LLFastTimer ftm(FTM_UPDATE_TREE);
|
||||
|
||||
if(mTrunkLOD >= sMAX_NUM_TREE_LOD_LEVELS) //do not display the tree.
|
||||
{
|
||||
mReferenceBuffer = NULL ;
|
||||
mDrawable->getFace(0)->mVertexBuffer = NULL ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
if (mReferenceBuffer.isNull() || mDrawable->getFace(0)->mVertexBuffer.isNull())
|
||||
{
|
||||
const F32 SRR3 = 0.577350269f; // sqrt(1/3)
|
||||
|
|
@ -523,7 +530,7 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
|
|||
face->mCenterAgent = getPositionAgent();
|
||||
face->mCenterLocal = face->mCenterAgent;
|
||||
|
||||
for (lod = 0; lod < 4; lod++)
|
||||
for (lod = 0; lod < sMAX_NUM_TREE_LOD_LEVELS; lod++)
|
||||
{
|
||||
slices = sLODSlices[lod];
|
||||
sLODVertexOffset[lod] = max_vertices;
|
||||
|
|
@ -700,7 +707,7 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
|
|||
// Generate the vertices
|
||||
// Generate the indices
|
||||
|
||||
for (lod = 0; lod < 4; lod++)
|
||||
for (lod = 0; lod < sMAX_NUM_TREE_LOD_LEVELS; lod++)
|
||||
{
|
||||
slices = sLODSlices[lod];
|
||||
F32 base_radius = 0.65f;
|
||||
|
|
@ -892,7 +899,6 @@ void LLVOTree::updateMesh()
|
|||
S32 stop_depth = 0;
|
||||
F32 alpha = 1.0;
|
||||
|
||||
|
||||
U32 vert_count = 0;
|
||||
U32 index_count = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ public:
|
|||
};
|
||||
|
||||
static F32 sTreeFactor; // Tree level of detail factor
|
||||
static const S32 sMAX_NUM_TREE_LOD_LEVELS ;
|
||||
|
||||
friend class LLDrawPoolTree;
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -759,12 +759,12 @@ void LLWearable::copyDataFrom(const LLWearable* src)
|
|||
LLViewerFetchedTexture *image = NULL;
|
||||
if(iter != src->mTEMap.end())
|
||||
{
|
||||
image = src->getConstLocalTextureObject(te)->getImage();
|
||||
image_id = src->getConstLocalTextureObject(te)->getID();
|
||||
image = src->getLocalTextureObject(te)->getImage();
|
||||
image_id = src->getLocalTextureObject(te)->getID();
|
||||
mTEMap[te] = new LLLocalTextureObject(image, image_id);
|
||||
mSavedTEMap[te] = new LLLocalTextureObject(image, image_id);
|
||||
mTEMap[te]->setBakedReady(src->getConstLocalTextureObject(te)->getBakedReady());
|
||||
mTEMap[te]->setDiscard(src->getConstLocalTextureObject(te)->getDiscard());
|
||||
mTEMap[te]->setBakedReady(src->getLocalTextureObject(te)->getBakedReady());
|
||||
mTEMap[te]->setDiscard(src->getLocalTextureObject(te)->getDiscard());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -809,7 +809,7 @@ LLLocalTextureObject* LLWearable::getLocalTextureObject(S32 index)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
const LLLocalTextureObject* LLWearable::getConstLocalTextureObject(S32 index) const
|
||||
const LLLocalTextureObject* LLWearable::getLocalTextureObject(S32 index) const
|
||||
{
|
||||
te_map_t::const_iterator iter = mTEMap.find(index);
|
||||
if( iter != mTEMap.end() )
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ public:
|
|||
const std::string& getTypeLabel() const;
|
||||
const std::string& getTypeName() const;
|
||||
LLAssetType::EType getAssetType() const;
|
||||
LLLocalTextureObject* getLocalTextureObject(S32 index) const;
|
||||
S32 getDefinitionVersion() const { return mDefinitionVersion; }
|
||||
void setDefinitionVersion( S32 new_version ) { mDefinitionVersion = new_version; }
|
||||
|
||||
|
|
@ -112,7 +111,7 @@ public:
|
|||
void setItemID(const LLUUID& item_id);
|
||||
|
||||
LLLocalTextureObject* getLocalTextureObject(S32 index);
|
||||
const LLLocalTextureObject* getConstLocalTextureObject(S32 index) const;
|
||||
const LLLocalTextureObject* getLocalTextureObject(S32 index) const;
|
||||
|
||||
void setLocalTextureObject(S32 index, LLLocalTextureObject <o);
|
||||
void addVisualParam(LLVisualParam *param);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<floater
|
||||
legacy_header_height="18"
|
||||
height="990"
|
||||
height="700"
|
||||
layout="topleft"
|
||||
name="avatar_texture_debug"
|
||||
help_topic="avatar_texture_debug"
|
||||
title="AVATAR TEXTURES"
|
||||
width="1240"
|
||||
width="940"
|
||||
can_resize="true">
|
||||
<floater.string
|
||||
name="InvalidAvatar">
|
||||
|
|
@ -17,13 +17,13 @@
|
|||
color="DkGray2"
|
||||
opaque="true"
|
||||
follows="all"
|
||||
height="970"
|
||||
height="680"
|
||||
layout="topleft"
|
||||
left="5"
|
||||
top_pad="15"
|
||||
name="profile_scroll"
|
||||
reserve_scroll_corner="false"
|
||||
width="1235">
|
||||
width="930">
|
||||
<panel
|
||||
name="scroll_content_panel"
|
||||
follows="left|top"
|
||||
|
|
@ -31,39 +31,40 @@
|
|||
layout="topleft"
|
||||
top="0"
|
||||
background_visible="false"
|
||||
height="950"
|
||||
left="0"
|
||||
width="1230">
|
||||
height="680">
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
height="16"
|
||||
layout="topleft"
|
||||
left="30"
|
||||
left="15"
|
||||
name="label"
|
||||
top="20"
|
||||
width="80">
|
||||
Baked Textures
|
||||
width="90">
|
||||
Baked
|
||||
Textures
|
||||
</text>
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
height="16"
|
||||
layout="topleft"
|
||||
left_pad="50"
|
||||
left_pad="22"
|
||||
name="composite_label"
|
||||
top_delta="0"
|
||||
width="120">
|
||||
Composite Textures
|
||||
Composite
|
||||
Textures
|
||||
</text>
|
||||
<button
|
||||
height="20"
|
||||
height="40"
|
||||
label="Dump IDs to Console"
|
||||
label_selected="Dump"
|
||||
layout="topleft"
|
||||
left_pad="530"
|
||||
name="Dump"
|
||||
top_delta="0"
|
||||
right="-10"
|
||||
width="150" />
|
||||
|
||||
<panel
|
||||
|
|
@ -78,242 +79,242 @@
|
|||
width="1230">
|
||||
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Hair"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
name="hair-baked"
|
||||
top="17"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Hair"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
left_pad="21"
|
||||
name="hair_grain"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Hair Alpha"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="hair_alpha"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Head"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
name="head-baked"
|
||||
top="167"
|
||||
width="128" />
|
||||
top_delta="100"
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Makeup"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
left_pad="21"
|
||||
name="head_bodypaint"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Head Alpha"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="head_alpha"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Head Tattoo"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="head_tattoo"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Eyes"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
name="eyes-baked"
|
||||
top="317"
|
||||
width="128" />
|
||||
top_delta="100"
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Eye"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
left_pad="21"
|
||||
name="eyes_iris"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Eyes Alpha"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="eyes_alpha"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Upper Body"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
name="upper-baked"
|
||||
top="467"
|
||||
width="128" />
|
||||
top_delta="100"
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
label="Upper Body Bodypaint"
|
||||
height="103"
|
||||
label="Upper BodyPaint"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
left_pad="21"
|
||||
name="upper_bodypaint"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Undershirt"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="upper_undershirt"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Gloves"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="upper_gloves"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Shirt"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="upper_shirt"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Upper Jacket"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="upper_jacket"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Upper Alpha"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="upper_alpha"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Upper Tattoo"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="upper_tattoo"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Lower Body"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
name="lower-baked"
|
||||
top="617"
|
||||
width="128" />
|
||||
top_delta="100"
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
label="Lower Body Bodypaint"
|
||||
height="103"
|
||||
label="Lower BodyPaint"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
left_pad="21"
|
||||
name="lower_bodypaint"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Underpants"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_underpants"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Socks"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_socks"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Shoes"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_shoes"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Pants"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_pants"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Jacket"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_jacket"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Lower Alpha"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_alpha"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Lower Tattoo"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
name="lower_tattoo"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Skirt"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
name="skirt-baked"
|
||||
top="767"
|
||||
width="128" />
|
||||
top_delta="100"
|
||||
width="92" />
|
||||
<texture_picker
|
||||
height="143"
|
||||
height="103"
|
||||
label="Skirt"
|
||||
layout="topleft"
|
||||
left_pad="7"
|
||||
left_pad="21"
|
||||
name="skirt"
|
||||
top_delta="0"
|
||||
width="128" />
|
||||
width="92" />
|
||||
</panel>
|
||||
</panel>
|
||||
</scroll_container>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<floater
|
||||
legacy_header_height="18"
|
||||
can_resize="false"
|
||||
height="240"
|
||||
layout="topleft"
|
||||
min_height="240"
|
||||
min_width="420"
|
||||
name="floater_buy_currency_html"
|
||||
help_topic="floater_buy_currency_html"
|
||||
save_rect="true"
|
||||
single_instance="true"
|
||||
title="BUY CURRENCY"
|
||||
width="422">
|
||||
<floater.string
|
||||
name="buy_currency_url" translate="false">
|
||||
http://user.lindenlab.com/~callum/ez/index.php?lang=[LANGUAGE]&sa=[SPECIFIC_AMOUNT]&sum=[SUM]&msg=[MSG]&bal=[BAL]
|
||||
</floater.string>
|
||||
<web_browser
|
||||
bottom="238"
|
||||
follows="left|right|top|bottom"
|
||||
layout="topleft"
|
||||
left="2"
|
||||
name="browser"
|
||||
top="18"
|
||||
width="420" />
|
||||
</floater>
|
||||
|
|
@ -191,8 +191,15 @@
|
|||
<menu_item_call.on_enable
|
||||
function="Edit.EnableCustomizeAvatar" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Edit My Shape"
|
||||
<menu_item_call label="Edit My Outfit"
|
||||
layout="topleft"
|
||||
name="Edit Outfit">
|
||||
<menu_item_call.on_click
|
||||
function="EditOutfit" />
|
||||
<menu_item_call.on_enable
|
||||
function="Edit.EnableCustomizeAvatar" />
|
||||
</menu_item_call>
|
||||
<menu_item_call label="Edit My Shape"
|
||||
layout="topleft"
|
||||
name="Edit My Shape">
|
||||
<menu_item_call.on_click
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@
|
|||
layout="topleft"
|
||||
left="5"
|
||||
name="CustomGraphics Panel"
|
||||
top="124"
|
||||
top="76"
|
||||
width="485">
|
||||
<text
|
||||
type="string"
|
||||
|
|
@ -351,7 +351,7 @@
|
|||
top_delta="0"
|
||||
width="128">
|
||||
m
|
||||
</text>
|
||||
</text>
|
||||
<slider
|
||||
control_name="RenderMaxPartCount"
|
||||
decimal_digits="0"
|
||||
|
|
@ -367,6 +367,34 @@
|
|||
name="MaxParticleCount"
|
||||
top_pad="7"
|
||||
width="303" />
|
||||
<slider
|
||||
control_name="RenderAvatarMaxVisible"
|
||||
decimal_digits="0"
|
||||
follows="left|top"
|
||||
height="16"
|
||||
increment="2"
|
||||
initial_value="35"
|
||||
label="Max. avatar draw distance:"
|
||||
label_width="185"
|
||||
layout="topleft"
|
||||
left_delta="0"
|
||||
max_val="65"
|
||||
min_val="1"
|
||||
name="MaxAvatarDrawDistance"
|
||||
top_pad="4"
|
||||
width="290" />
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
follows="left|top"
|
||||
height="12"
|
||||
layout="topleft"
|
||||
left_delta="291"
|
||||
name="DrawDistanceMeterText3"
|
||||
top_delta="0"
|
||||
width="128">
|
||||
m
|
||||
</text>
|
||||
<slider
|
||||
control_name="RenderGlowResolutionPow"
|
||||
decimal_digits="0"
|
||||
|
|
@ -377,7 +405,7 @@
|
|||
label="Post process quality:"
|
||||
label_width="185"
|
||||
layout="topleft"
|
||||
left_delta="0"
|
||||
left="200"
|
||||
max_val="9"
|
||||
min_val="8"
|
||||
name="RenderPostProcess"
|
||||
|
|
@ -522,7 +550,7 @@
|
|||
layout="topleft"
|
||||
left="469"
|
||||
name="PostProcessText"
|
||||
top="305"
|
||||
top="60"
|
||||
width="128">
|
||||
Low
|
||||
</text>
|
||||
|
|
@ -607,7 +635,7 @@
|
|||
layout="topleft"
|
||||
left="200"
|
||||
name="LightingDetailText"
|
||||
top_pad="8"
|
||||
top_pad="18"
|
||||
width="140">
|
||||
Lighting detail:
|
||||
</text>
|
||||
|
|
@ -644,7 +672,7 @@
|
|||
layout="topleft"
|
||||
left_pad="-30"
|
||||
name="TerrainDetailText"
|
||||
top="465"
|
||||
top="226"
|
||||
width="155">
|
||||
Terrain detail:
|
||||
</text>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
(riproduzione)
|
||||
</string>
|
||||
<panel name="minimized_controls">
|
||||
<button label="Interrompi tutto" name="all_nearby_media_disable_btn" tool_tip="Spegni tutti i media nei dintorni"/>
|
||||
<button label="Spegni" name="all_nearby_media_disable_btn" tool_tip="Spegni tutti i media nei dintorni"/>
|
||||
<button label="Accendi tutto" name="all_nearby_media_enable_btn" tool_tip="Accendi tutti i media nei dintorni"/>
|
||||
<button name="open_prefs_btn" tool_tip="Accedi alle preferenze del media"/>
|
||||
<button label="Più >>" label_selected="Meno <<" name="more_btn" tool_tip="Opzioni avanzate"/>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!-- Width and height of this panel should be synchronized with "panel_modes" in the floater_moveview.xml-->
|
||||
<panel name="panel_stand_stop_flying">
|
||||
<button label="Stai in piedi" name="stand_btn" tool_tip="Clicca qui per alzarti."/>
|
||||
<button label="Alzati" name="stand_btn" tool_tip="Clicca qui per alzarti."/>
|
||||
<button label="Ferma il volo" name="stop_fly_btn" tool_tip="Ferma il volo"/>
|
||||
</panel>
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
<spinner left="205" name="BuildAxisDeadZone3" width="50"/>
|
||||
<spinner left="275" name="FlycamAxisDeadZone3" width="50"/>
|
||||
<text name="Feathering">
|
||||
羽毛
|
||||
感度調整
|
||||
</text>
|
||||
<slider label="" left="126" name="AvatarFeathering" width="67"/>
|
||||
<slider label="" left="196" name="BuildFeathering" width="67"/>
|
||||
|
|
|
|||
|
|
@ -955,9 +955,9 @@ anguage Infrstructure (CLI) international standard</string>
|
|||
<key>linux</key>
|
||||
<map>
|
||||
<key>md5sum</key>
|
||||
<string>a90135a68d2821eef742d15cb06b15b9</string>
|
||||
<string>7a5e02d252b76ab41bdca58506fa4147</string>
|
||||
<key>url</key>
|
||||
<uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-linux-20100407-cookie-api.tar.bz2</uri>
|
||||
<uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-linux-20100521.tar.bz2</uri>
|
||||
</map>
|
||||
<key>windows</key>
|
||||
<map>
|
||||
|
|
|
|||
Loading…
Reference in New Issue