👍️[Update] Model : steamVRが起動してる最中のみoverlayが動作するように修正

This commit is contained in:
misyaguziya
2024-04-27 05:45:45 +09:00
parent f508dd6114
commit dcdcf1aeea
3 changed files with 30 additions and 11 deletions

View File

@@ -608,17 +608,14 @@ class Model:
def startOverlay(self):
if self.overlay.initialized is False:
print("self.overlay.init()")
self.overlay.init()
if self.overlay.initialized is True:
self.th_overlay = threadFnc(self.overlay.startOverlay)
self.th_overlay = Thread(target=self.overlay.startOverlay)
self.th_overlay.daemon = True
self.th_overlay.start()
def stopOverlay(self):
if isinstance(self.th_overlay, threadFnc):
self.th_overlay.stop()
self.th_overlay = None
def updateOverlayPosition(self):
if self.overlay.initialized is True:
pos = (config.OVERLAY_SMALL_LOG_SETTINGS["x_pos"], config.OVERLAY_SMALL_LOG_SETTINGS["y_pos"])