🚧 [WIP/TEST] Model : Overlayの処理にマスクを追加
This commit is contained in:
@@ -162,6 +162,7 @@ def receiveSpeakerMessage(message):
|
|||||||
model.notificationXSOverlay(xsoverlay_message)
|
model.notificationXSOverlay(xsoverlay_message)
|
||||||
|
|
||||||
if config.ENABLE_OVERLAY_SMALL_LOG is True:
|
if config.ENABLE_OVERLAY_SMALL_LOG is True:
|
||||||
|
if model.overlay.initialized is True:
|
||||||
overlay_image = model.createOverlayImageShort(message, translation)
|
overlay_image = model.createOverlayImageShort(message, translation)
|
||||||
model.updateOverlay(overlay_image)
|
model.updateOverlay(overlay_image)
|
||||||
print("model.updateOverlay(overlay_image)")
|
print("model.updateOverlay(overlay_image)")
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ if __name__ == '__main__':
|
|||||||
print(i)
|
print(i)
|
||||||
overlay = Overlay(0, 0, 1, 1, 1, 1, 1)
|
overlay = Overlay(0, 0, 1, 1, 1, 1, 1)
|
||||||
overlay.startOverlay()
|
overlay.startOverlay()
|
||||||
# time.sleep(0.1)
|
time.sleep(1)
|
||||||
|
|
||||||
# Example usage
|
# Example usage
|
||||||
img = overlay_image.createOverlayImageShort("こんにちは、世界!さようなら", "Japanese", "Hello,World!Goodbye", "Japanese", ui_type="sakura")
|
img = overlay_image.createOverlayImageShort("こんにちは、世界!さようなら", "Japanese", "Hello,World!Goodbye", "Japanese", ui_type="sakura")
|
||||||
|
|||||||
Reference in New Issue
Block a user