mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
show left/right controller indicator (closes #51)
This commit is contained in:
@@ -59,22 +59,32 @@ html
|
|||||||
img(v-if="device[1] !== 'connected'" src="images/tracker_status_off.png" style="width:32px;height:32px")
|
img(v-if="device[1] !== 'connected'" src="images/tracker_status_off.png" style="width:32px;height:32px")
|
||||||
img(v-else-if="device[2] < 20" src="images/tracker_status_ready_low.png" style="width:32px;height:32px")
|
img(v-else-if="device[2] < 20" src="images/tracker_status_ready_low.png" style="width:32px;height:32px")
|
||||||
img(v-else src="images/tracker_status_ready.png" style="width:32px;height:32px")
|
img(v-else src="images/tracker_status_ready.png" style="width:32px;height:32px")
|
||||||
|
br
|
||||||
|
span {{ device[2] }}%
|
||||||
template(v-else-if="device[0] === 'leftController'")
|
template(v-else-if="device[0] === 'leftController'")
|
||||||
img(v-if="device[1] !== 'connected'" src="images/controller_status_off.png" style="width:32px;height:32px")
|
img(v-if="device[1] !== 'connected'" src="images/controller_status_off.png" style="width:32px;height:32px")
|
||||||
img(v-else-if="device[2] < 20" src="images/controller_status_ready_low.png" style="width:32px;height:32px")
|
img(v-else-if="device[2] < 20" src="images/controller_status_ready_low.png" style="width:32px;height:32px")
|
||||||
img(v-else src="images/controller_status_ready.png" style="width:32px;height:32px")
|
img(v-else src="images/controller_status_ready.png" style="width:32px;height:32px")
|
||||||
|
br
|
||||||
|
span L:{{ device[2] }}%
|
||||||
template(v-else-if="device[0] === 'rightController'")
|
template(v-else-if="device[0] === 'rightController'")
|
||||||
img(v-if="device[1] !== 'connected'" src="images/controller_status_off.png" style="width:32px;height:32px")
|
img(v-if="device[1] !== 'connected'" src="images/controller_status_off.png" style="width:32px;height:32px")
|
||||||
img(v-else-if="device[2] < 20" src="images/controller_status_ready_low.png" style="width:32px;height:32px")
|
img(v-else-if="device[2] < 20" src="images/controller_status_ready_low.png" style="width:32px;height:32px")
|
||||||
img(v-else src="images/controller_status_ready.png" style="width:32px;height:32px")
|
img(v-else src="images/controller_status_ready.png" style="width:32px;height:32px")
|
||||||
|
br
|
||||||
|
span R:{{ device[2] }}%
|
||||||
template(v-else-if="device[0] === 'controller'")
|
template(v-else-if="device[0] === 'controller'")
|
||||||
img(v-if="device[1] !== 'connected'" src="images/controller_status_off.png" style="width:32px;height:32px")
|
img(v-if="device[1] !== 'connected'" src="images/controller_status_off.png" style="width:32px;height:32px")
|
||||||
img(v-else-if="device[2] < 20" src="images/controller_status_ready_low.png" style="width:32px;height:32px")
|
img(v-else-if="device[2] < 20" src="images/controller_status_ready_low.png" style="width:32px;height:32px")
|
||||||
img(v-else src="images/controller_status_ready.png" style="width:32px;height:32px")
|
img(v-else src="images/controller_status_ready.png" style="width:32px;height:32px")
|
||||||
|
br
|
||||||
|
span {{ device[2] }}%
|
||||||
template(v-else-if="device[0] === 'base'")
|
template(v-else-if="device[0] === 'base'")
|
||||||
img(v-if="device[1] !== 'connected'" src="images/base_status_off.png" style="width:32px;height:32px")
|
img(v-if="device[1] !== 'connected'" src="images/base_status_off.png" style="width:32px;height:32px")
|
||||||
img(v-else-if="device[2] < 20" src="images/base_status_ready_low.png" style="width:32px;height:32px")
|
img(v-else-if="device[2] < 20" src="images/base_status_ready_low.png" style="width:32px;height:32px")
|
||||||
img(v-else src="images/base_status_ready.png" style="width:32px;height:32px")
|
img(v-else src="images/base_status_ready.png" style="width:32px;height:32px")
|
||||||
|
br
|
||||||
|
span {{ device[2] }}%
|
||||||
template(v-else)
|
template(v-else)
|
||||||
img(v-if="device[1] !== 'connected'" src="images/other_status_off.png" style="width:32px;height:32px")
|
img(v-if="device[1] !== 'connected'" src="images/other_status_off.png" style="width:32px;height:32px")
|
||||||
img(v-else-if="device[2] < 20" src="images/other_status_ready_low.png" style="width:32px;height:32px")
|
img(v-else-if="device[2] < 20" src="images/other_status_ready_low.png" style="width:32px;height:32px")
|
||||||
|
|||||||
Reference in New Issue
Block a user