All places just av/group names were being used are now name ui
Since NameBoxes are clickable, remove redundant profile buttons. Removes a ton of RLV logic, now centralized inside LLNameUI Removes excess functions that went largely unused May no longer show if parcel sale is pending under the owner field, this is weird and it's hard to keep this behavior Also includes the missing setValue and getValue so this compiles, that should've been committed way earlier, oops Also adds ability for name_box to have is_group attribute, too!
This commit is contained in:
@@ -139,9 +139,8 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
|
||||
msg->getU32("EventData", "EventID", event_id);
|
||||
|
||||
// look up all panels which have this avatar
|
||||
for (panel_list_t::iterator iter = sAllPanels.begin(); iter != sAllPanels.end(); ++iter)
|
||||
for (auto& self : sAllPanels)
|
||||
{
|
||||
LLPanelEvent* self = *iter;
|
||||
// Skip updating panels which aren't for this event
|
||||
if (self->mEventID != event_id)
|
||||
{
|
||||
@@ -152,6 +151,7 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
|
||||
self->mTBCategory->setText(self->mEventInfo.mCategoryStr);
|
||||
self->mTBDate->setText(self->mEventInfo.mTimeStr);
|
||||
self->mTBDesc->setText(self->mEventInfo.mDesc, false);
|
||||
self->mTBRunBy->setValue(self->mEventInfo.mRunByID);
|
||||
|
||||
self->mTBDuration->setText(llformat("%d:%.2d", self->mEventInfo.mDuration / 60, self->mEventInfo.mDuration % 60));
|
||||
|
||||
@@ -205,17 +205,6 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void LLPanelEvent::draw()
|
||||
{
|
||||
std::string name;
|
||||
gCacheName->getFullName(mEventInfo.mRunByID, name);
|
||||
|
||||
mTBRunBy->setText(name);
|
||||
|
||||
LLPanel::draw();
|
||||
}
|
||||
|
||||
void LLPanelEvent::resetInfo()
|
||||
{
|
||||
// Clear all of the text fields.
|
||||
|
||||
Reference in New Issue
Block a user