summaryrefslogtreecommitdiff
path: root/indra/newview/llavatarlistitem.h
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-21 12:27:18 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-21 12:27:18 +0800
commit06bfcd7e75a2659ba4eb2dd79e89b8476a3c33cf (patch)
treef3f36e366a5f24e73bb7431b8a4058a1fcd6366f /indra/newview/llavatarlistitem.h
parent1bd4836e7c36f3c1ee4a821c39f78ca1397e3291 (diff)
Arrival time in nearby tab (draft)
The period got updated to something more frequent (from 5 to 1 second). I copied from newview/llpanelpeople.cpp and updateLastInteractionTime. The values are still not accurate, and have a delayed start. The presentation could use something like std's strftime, but I started from what worked first, which was using LL's formatSeconds. The alignments really need some tidying up too.
Diffstat (limited to 'indra/newview/llavatarlistitem.h')
-rw-r--r--indra/newview/llavatarlistitem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llavatarlistitem.h b/indra/newview/llavatarlistitem.h
index ac356ab3b1..4b24410d82 100644
--- a/indra/newview/llavatarlistitem.h
+++ b/indra/newview/llavatarlistitem.h
@@ -98,6 +98,7 @@ public:
void setHighlight(const std::string& highlight);
void setState(EItemState item_style);
void setAvatarId(const LLUUID& id, const LLUUID& session_id, bool ignore_status_changes = false, bool is_resident = true);
+ void setAvatarArrivalTime(F32 arrival_time);
void setAvatarDistance(F32 distance);
void setLastInteractionTime(U32 secs_since);
//Show/hide profile/info btn, translating speaker indicator and avatar name coordinates accordingly
@@ -105,6 +106,7 @@ public:
void setShowInfoBtn(bool show);
void showSpeakingIndicator(bool show);
void setShowPermissions(bool show) { mShowPermissions = show; };
+ void showAvatarArrivalTime(bool show);
void showAvatarDistance(bool show);
void showLastInteractionTime(bool show);
void setAvatarIconVisible(bool visible);
@@ -161,6 +163,7 @@ private:
ALIC_PERMISSION_EDIT_THEIRS,
ALIC_INTERACTION_TIME,
ALIC_DISTANCE,
+ ALIC_ARRIVAL_TIME,
ALIC_NAME,
ALIC_ICON,
ALIC_COUNT,
@@ -202,6 +205,7 @@ private:
LLView* getItemChildView(EAvatarListItemChildIndex child_index);
LLTextBox* mAvatarName;
+ LLTextBox* mAvatarArrivalTime;
LLTextBox* mAvatarDistance;
LLTextBox* mLastInteractionTime;
LLStyle::Params mAvatarNameStyle;