feat: show admin status in UI

feat: update submodule
This commit is contained in:
Swann 2020-06-09 23:56:20 +02:00
parent fdc7e4678c
commit ad99a349f7
No known key found for this signature in database
GPG Key ID: 5E0D936BD280E963
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 73b56190e6992db96d6ab3c015595777d15f4c8c
Subproject commit 9592cf90abaca46f2d4b6ca72300210487693d58

View File

@ -337,6 +337,7 @@ class SESSION_UL_users(bpy.types.UIList):
ping = '-'
frame_current = '-'
scene_current = '-'
status_icon = 'NONE'
if session:
user = session.online_users.get(item.username)
if user:
@ -345,8 +346,10 @@ class SESSION_UL_users(bpy.types.UIList):
if metadata and 'frame_current' in metadata:
frame_current = str(metadata['frame_current'])
scene_current = metadata['scene_current']
if user['admin']:
status_icon = 'FAKE_USER_ON'
split = layout.split(factor=0.3)
split.label(text=item.username)
split.label(text=item.username, icon=status_icon)
split = split.split(factor=0.5)
split.label(text=scene_current)
split.label(text=frame_current)