feat(rcf):ground work on propertystreaming

This commit is contained in:
Swann
2019-02-13 18:53:22 +01:00
parent 77b8221026
commit c3e935081e
4 changed files with 53 additions and 39 deletions

View File

@ -25,16 +25,16 @@ class SessionPanel(bpy.types.Panel):
row = layout.row()
row = layout.row(align=True)
row.prop(scene,"message",text="")
row.operator("session.send").message = scene.message
row.operator("session.send")
row = layout.row()
# Debug area
row = layout.row()
area_msg = row.box()
if len(net_operators.client.message_store) > 0:
for (id,msg) in net_operators.client.message_store:
area_msg.label(text="{}:{}".format(id,msg))
if len(net_operators.client.property_map) > 0:
for key,value in net_operators.client.property_map.items():
area_msg.label(text="{}:{}".format(key,value))
else:
area_msg.label(text="Empty")