🔧 Load defaults from settings
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
loadConfig() {
|
||||
const defaultDuration = 2000;
|
||||
const duration = effect.readConfig('Duration', defaultDuration) || defaultDuration;
|
||||
this.duration = animationTime(duration);
|
||||
|
||||
this.duration = animationTime(effect.readConfig('Duration', 1000));
|
||||
effect.setUniform(this.shader, 'uColor', effect.readConfig('Color', 'white'));
|
||||
effect.setUniform(this.shader, 'uScale', effect.readConfig('Scale', 1.0));
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<kcfgfile name="" />
|
||||
<group name="">
|
||||
<entry name="Duration" type="UInt">
|
||||
<default>0</default>
|
||||
<default>2000</default>
|
||||
</entry>
|
||||
<entry name="Scale" type="Double">
|
||||
<default>1</default>
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
loadConfig() {
|
||||
const defaultDuration = 400;
|
||||
const duration = effect.readConfig('Duration', defaultDuration) || defaultDuration;
|
||||
this.duration = animationTime(duration);
|
||||
|
||||
this.duration = animationTime(effect.readConfig('Duration', 1000));
|
||||
effect.setUniform(this.shader, 'uColor', effect.readConfig('Color', 'white'));
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<kcfgfile name="" />
|
||||
<group name="">
|
||||
<entry name="Duration" type="UInt">
|
||||
<default>0</default>
|
||||
<default>400</default>
|
||||
</entry>
|
||||
<entry name="Color" type="Color">
|
||||
<default>255,255,255</default>
|
||||
|
||||
Reference in New Issue
Block a user