V1.4.3
- 新增服务器选项"设备切换时重启"
This commit is contained in:
parent
ee7b87bdc9
commit
f4b2127b10
BIN
Locales/ja.qm
BIN
Locales/ja.qm
Binary file not shown.
BIN
Locales/zh.qm
BIN
Locales/zh.qm
Binary file not shown.
BIN
Locales/zh_TW.qm
BIN
Locales/zh_TW.qm
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "top.mashiros.widget.advp",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.3",
|
||||
|
||||
"title": {
|
||||
"en": "ADV Plugin",
|
||||
|
||||
@ -22,6 +22,9 @@ Item {
|
||||
"peakthr": 10,
|
||||
"fps": 35,
|
||||
"changespeed": 20
|
||||
},
|
||||
"advanced": {
|
||||
"device_reboot": false
|
||||
}
|
||||
}
|
||||
readonly property string iniFile: "../bin/advConfig.ini"
|
||||
|
||||
@ -207,6 +207,20 @@ NVG.Window {
|
||||
}
|
||||
}
|
||||
|
||||
P.PreferenceGroup {
|
||||
Layout.fillWidth: true
|
||||
name: "advanced"
|
||||
Heading { text: qsTr("Advanced") }
|
||||
|
||||
P.SwitchPreference {
|
||||
name: "device_reboot"
|
||||
label: qsTr("Reboot on Device Changed")
|
||||
message: qsTr("Problems caused by switching devices may be resolved.")
|
||||
warning: value ? qsTr("The recovery time of the animation when switching devices may increase!") : ""
|
||||
defaultValue: Common.defaultServerCFG["advanced"]["device_reboot"]
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
rootPreference.load(Common.serverCFG)
|
||||
}
|
||||
|
||||
@ -8,7 +8,6 @@ AdvpStyleTemplate {
|
||||
readonly property var audioData: new Array(128)
|
||||
|
||||
//configs
|
||||
readonly property int fps: configs["Refresh Rate"]
|
||||
readonly property real timer_interval: 1000/configs["Refresh Rate"]
|
||||
readonly property real bassAmRatio: configs["Bass AM"]/100
|
||||
readonly property real altoAmRatio: configs["Alto AM"]/100
|
||||
@ -22,7 +21,7 @@ AdvpStyleTemplate {
|
||||
readonly property real halfWidth: width/2
|
||||
readonly property real rHeight: 0.6*height
|
||||
|
||||
readonly property real speed: configs["Speed"]/100
|
||||
readonly property real speed: 0.3*configs["Speed"]/configs["Refresh Rate"]
|
||||
readonly property real _MAX: (height/2)-4
|
||||
readonly property real _noise: configs["Static AM"]/100*_MAX
|
||||
readonly property real _delta: _MAX-_noise
|
||||
@ -109,7 +108,7 @@ AdvpStyleTemplate {
|
||||
altoAm = altoAm / 19.2;
|
||||
bassAm = bassAm / 6.4;
|
||||
|
||||
_phase = (_phase+speed*(30 / fps))%(Math.PI*64);
|
||||
_phase = (_phase+speed)%(Math.PI*64);
|
||||
|
||||
context.clearRect(0, 0, width+32, height+32);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user