mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
show base station
This commit is contained in:
@@ -239,7 +239,8 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
var devClass = system.GetTrackedDeviceClass(i);
|
var devClass = system.GetTrackedDeviceClass(i);
|
||||||
if (devClass == ETrackedDeviceClass.Controller ||
|
if (devClass == ETrackedDeviceClass.Controller ||
|
||||||
devClass == ETrackedDeviceClass.GenericTracker)
|
devClass == ETrackedDeviceClass.GenericTracker ||
|
||||||
|
devClass == ETrackedDeviceClass.TrackingReference)
|
||||||
{
|
{
|
||||||
var err = ETrackedPropertyError.TrackedProp_Success;
|
var err = ETrackedPropertyError.TrackedProp_Success;
|
||||||
var batteryPercentage = system.GetFloatTrackedDeviceProperty(i, ETrackedDeviceProperty.Prop_DeviceBatteryPercentage_Float, ref err);
|
var batteryPercentage = system.GetFloatTrackedDeviceProperty(i, ETrackedDeviceProperty.Prop_DeviceBatteryPercentage_Float, ref err);
|
||||||
@@ -294,6 +295,10 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
type = "tracker";
|
type = "tracker";
|
||||||
}
|
}
|
||||||
|
else if (devClass == ETrackedDeviceClass.TrackingReference)
|
||||||
|
{
|
||||||
|
type = "base";
|
||||||
|
}
|
||||||
var item = new[]
|
var item = new[]
|
||||||
{
|
{
|
||||||
type,
|
type,
|
||||||
|
|||||||
@@ -105,6 +105,11 @@
|
|||||||
<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">
|
||||||
</template>
|
</template>
|
||||||
|
<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-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">
|
||||||
|
</template>
|
||||||
<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