Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dalai Felinto
virtual_reality_viewport
Commits
cc72374a
Commit
cc72374a
authored
Oct 16, 2015
by
Dalai Felinto
Browse files
UI improvements (box)
parent
2215e406
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/ui.py
View file @
cc72374a
...
...
@@ -23,32 +23,33 @@ class VirtualRealityPanel(bpy.types.Panel):
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Virtual Reality"
).
action
=
'ENABLE'
else
:
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Virtual Reality"
,
icon
=
"X"
).
action
=
'DISABLE'
col
.
separator
()
box
=
col
.
box
()
col
=
box
.
column
()
if
vr
.
is_slave_setup
:
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Start"
,
icon
=
"CAMERA_STEREO"
).
action
=
'FULLSCREEN'
else
:
row
=
col
.
row
(
align
=
True
)
row
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Play"
,
icon
=
"PLAY"
).
action
=
'PLAY'
row
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Pause"
,
icon
=
"PAUSE"
).
action
=
'PAUSE'
row
=
col
.
row
()
if
vr
.
is_paused
:
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Play"
,
icon
=
"PLAY"
).
action
=
'PLAY'
else
:
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Pause"
,
icon
=
"PAUSE"
).
action
=
'PAUSE'
row
.
prop
(
vr
,
"use_preview"
)
sub
=
row
.
column
()
sub
.
active
=
vr
.
use_preview
sub
.
prop
(
vr
,
"preview_scale"
,
text
=
"Scale"
)
row
=
col
.
row
()
row
.
prop
(
vr
,
"use_preview"
)
sub
=
row
.
column
()
sub
.
active
=
vr
.
use_preview
sub
.
prop
(
vr
,
"preview_scale"
,
text
=
"Scale"
)
col
.
separator
()
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Re-Center"
).
action
=
'RECENTER'
col
.
operator
(
"view3d.virtual_reality_display"
,
text
=
"Re-Center"
).
action
=
'RECENTER'
col
.
separator
()
col
.
label
(
text
=
"Tracking:"
)
col
.
row
().
prop
(
vr
,
"tracking_mode"
,
expand
=
True
)
col
.
label
(
text
=
"Tracking:"
)
col
.
row
().
prop
(
vr
,
"tracking_mode"
,
expand
=
True
)
col
.
separator
()
col
.
label
(
text
=
vr
.
error_message
)
if
vr
.
error_message
:
col
.
separator
()
col
.
label
(
text
=
vr
.
error_message
)
# ############################################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment