Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve debugger texts #287

Merged
merged 4 commits into from
May 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions addons/io_hubs_addon/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def is_room_set(context):
class HubsUpdateRoomOperator(bpy.types.Operator):
bl_idname = "hubs_scene.update_room"
bl_label = "View Scene"
bl_description = "Update room"
bl_description = "Updates the currently opened room scene with the Blender scene"
keianhzo marked this conversation as resolved.
Show resolved Hide resolved
bl_options = {'REGISTER', 'UNDO'}

@classmethod
Expand Down Expand Up @@ -122,8 +122,8 @@ def execute(self, context):

class HubsCreateRoomOperator(bpy.types.Operator):
bl_idname = "hubs_scene.create_room"
bl_label = "Create Room"
bl_description = "Create room"
bl_label = "Create a new room"
bl_description = "Creates a new room in the selected instance"
keianhzo marked this conversation as resolved.
Show resolved Hide resolved
bl_options = {'REGISTER', 'UNDO'}

@classmethod
Expand Down Expand Up @@ -153,8 +153,8 @@ def execute(self, context):

class HubsOpenRoomOperator(bpy.types.Operator):
bl_idname = "hubs_scene.open_room"
bl_label = "Open Room"
bl_description = "Open room"
bl_label = "Open selected room"
bl_description = "Opens the selected room"
keianhzo marked this conversation as resolved.
Show resolved Hide resolved
bl_options = {'REGISTER', 'UNDO'}

@classmethod
Expand Down Expand Up @@ -256,8 +256,7 @@ def draw(self, context: Context):
icon='REMOVE', text="")

row = box.row()
row.operator(HubsCreateRoomOperator.bl_idname,
text='Create')
row.operator(HubsCreateRoomOperator.bl_idname)


class HUBS_PT_ToolsSceneDebuggerOpenPanel(bpy.types.Panel):
Expand Down Expand Up @@ -289,8 +288,7 @@ def draw(self, context: Context):
icon='REMOVE', text="")

row = box.row()
row.operator(HubsOpenRoomOperator.bl_idname,
text='Open')
row.operator(HubsOpenRoomOperator.bl_idname)


class HUBS_PT_ToolsSceneDebuggerUpdatePanel(bpy.types.Panel):
Expand Down Expand Up @@ -354,10 +352,10 @@ def draw(self, context: Context):
row.label(
text="You need to be signed in to Hubs to update the room scene")

update_mode = "Update Scene" if context.scene.hubs_scene_debugger_room_create_prefs.debugLocalScene else "Spawn as object"
update_mode = "Update current scene" if context.scene.hubs_scene_debugger_room_create_prefs.debugLocalScene else "Spawn as object"
if hubs_session.is_alive():
room_params = hubs_session.room_params
update_mode = "Update Scene" if "debugLocalScene" in room_params else "Spawn as object"
update_mode = "Update current scene" if "debugLocalScene" in room_params else "Spawn as object"
row = box.row()
row.operator(HubsUpdateRoomOperator.bl_idname,
text=f'{update_mode}')
Expand Down
Loading