fix for normal bug EXT-2303 Distinguish Object-generated Nearby Chat from other Nearby Chat
--HG-- branch : product-enginemeow-7.2.2
parent
9a88d4b02d
commit
8523d2d5b6
|
|
@ -995,6 +995,12 @@ void LLTextBase::setColor( const LLColor4& c )
|
|||
mFgColor = c;
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLTextBase::setReadOnlyColor(const LLColor4 &c)
|
||||
{
|
||||
mReadOnlyFgColor = c;
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLTextBase::setValue(const LLSD& value )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -118,6 +118,8 @@ public:
|
|||
// LLUICtrl interface
|
||||
/*virtual*/ BOOL acceptsTextInput() const { return !mReadOnly; }
|
||||
/*virtual*/ void setColor( const LLColor4& c );
|
||||
virtual void setReadOnlyColor(const LLColor4 &c);
|
||||
|
||||
/*virtual*/ void setValue(const LLSD& value );
|
||||
/*virtual*/ LLTextViewModel* getViewModel() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ public:
|
|||
const std::string& getFirstName() const { return mFirstName; }
|
||||
const std::string& getLastName () const { return mLastName; }
|
||||
|
||||
void setup(const LLChat& chat)
|
||||
void setup(const LLChat& chat,const LLStyle::Params& style_params)
|
||||
{
|
||||
mAvatarID = chat.mFromID;
|
||||
mSourceType = chat.mSourceType;
|
||||
|
|
@ -184,8 +184,11 @@ public:
|
|||
mSourceType = CHAT_SOURCE_SYSTEM;
|
||||
}
|
||||
|
||||
|
||||
LLTextBox* userName = getChild<LLTextBox>("user_name");
|
||||
|
||||
LLUIColor color = style_params.color;
|
||||
userName->setReadOnlyColor(color);
|
||||
userName->setColor(color);
|
||||
|
||||
if(!chat.mFromName.empty())
|
||||
{
|
||||
|
|
@ -197,6 +200,7 @@ public:
|
|||
std::string SL = LLTrans::getString("SECOND_LIFE");
|
||||
userName->setValue(SL);
|
||||
}
|
||||
|
||||
|
||||
LLTextBox* timeBox = getChild<LLTextBox>("time_box");
|
||||
timeBox->setValue(formatCurrentTime());
|
||||
|
|
@ -322,10 +326,10 @@ LLView* LLChatHistory::getSeparator()
|
|||
return separator;
|
||||
}
|
||||
|
||||
LLView* LLChatHistory::getHeader(const LLChat& chat)
|
||||
LLView* LLChatHistory::getHeader(const LLChat& chat,const LLStyle::Params& style_params)
|
||||
{
|
||||
LLChatHistoryHeader* header = LLChatHistoryHeader::createInstance(mMessageHeaderFilename);
|
||||
header->setup(chat);
|
||||
header->setup(chat,style_params);
|
||||
return header;
|
||||
}
|
||||
|
||||
|
|
@ -347,7 +351,7 @@ void LLChatHistory::appendWidgetMessage(const LLChat& chat, LLStyle::Params& sty
|
|||
}
|
||||
else
|
||||
{
|
||||
view = getHeader(chat);
|
||||
view = getHeader(chat,style_params);
|
||||
if (getText().size() == 0)
|
||||
p.top_pad = 0;
|
||||
else
|
||||
|
|
|
|||
|
|
@ -94,11 +94,9 @@ class LLChatHistory : public LLTextEditor
|
|||
LLView* getSeparator();
|
||||
/**
|
||||
* Builds a message header.
|
||||
* @param from owner of a message.
|
||||
* @param time time of a message.
|
||||
* @return pointer to LLView header object.
|
||||
*/
|
||||
LLView* getHeader(const LLChat& chat);
|
||||
LLView* getHeader(const LLChat& chat,const LLStyle::Params& style_params);
|
||||
|
||||
public:
|
||||
~LLChatHistory();
|
||||
|
|
|
|||
|
|
@ -513,7 +513,7 @@
|
|||
reference="White" />
|
||||
<color
|
||||
name="ObjectChatColor"
|
||||
reference="LtGray" />
|
||||
reference="0.7 0.8 0.9 1" />
|
||||
<color
|
||||
name="OverdrivenColor"
|
||||
value="1 0 0 1" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue