diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-08-21 12:27:18 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-08-21 12:27:18 +0800 |
commit | 06bfcd7e75a2659ba4eb2dd79e89b8476a3c33cf (patch) | |
tree | f3f36e366a5f24e73bb7431b8a4058a1fcd6366f /indra/newview/llavatarlist.h | |
parent | 1bd4836e7c36f3c1ee4a821c39f78ca1397e3291 (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/llavatarlist.h')
-rw-r--r-- | indra/newview/llavatarlist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llavatarlist.h b/indra/newview/llavatarlist.h index 5593985fff..207ff700c5 100644 --- a/indra/newview/llavatarlist.h +++ b/indra/newview/llavatarlist.h @@ -50,6 +50,7 @@ public: struct Params : public LLInitParam::Block<Params, LLFlatListViewEx::Params> { Optional<bool> ignore_online_status, // show all items as online + show_avatar_arrival_time, show_avatar_distance, show_last_interaction_time, // show most recent interaction time. *HACK: move this to a derived class show_info_btn, @@ -111,6 +112,7 @@ protected: const uuid_vec_t& vnew, uuid_vec_t& vadded, uuid_vec_t& vremoved); + void updateAvatarArrivalTime(); void updateAvatarDistance(); void updateLastInteractionTimes(); void rebuildNames(); @@ -120,6 +122,7 @@ protected: private: bool mIgnoreOnlineStatus; + bool mAvatarArrivalTime; bool mAvatarDistance; bool mShowLastInteractionTime; bool mDirty; |