forked from Mashiro_Sorata/ADV-Plugin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
727 B
34 lines
727 B
2 years ago
|
import QtQuick 2.12
|
||
|
|
||
|
import ".." //显式导入单例Common.qml
|
||
|
|
||
|
Canvas {
|
||
2 years ago
|
width: widget.width
|
||
|
height: widget.height
|
||
|
contextType: "2d"
|
||
2 years ago
|
renderTarget: Canvas.FramebufferObject
|
||
|
renderStrategy: Canvas.Cooperative
|
||
|
|
||
|
signal audioDataUpdeted(var data)
|
||
|
signal configsUpdated()
|
||
2 years ago
|
readonly property var configs: widget.settings[widget.settings.current_style] ?? defaultValues
|
||
2 years ago
|
|
||
|
onConfigsChanged: {
|
||
|
if (context) {
|
||
|
configsUpdated();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
onContextChanged: {
|
||
|
if (context) {
|
||
|
configsUpdated();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Connections {
|
||
|
enabled: Boolean(context)
|
||
|
target: Common
|
||
|
onAudioDataUpdated: audioDataUpdeted(audioData)
|
||
|
}
|
||
|
}
|