diff --git a/docs/how-to-create-new-effects.md b/docs/how-to-create-new-effects.md index 3452fa1..624d5fe 100644 --- a/docs/how-to-create-new-effects.md +++ b/docs/how-to-create-new-effects.md @@ -47,7 +47,7 @@ You will have to ... ### 1. Expanding the Schema -For enabling the new effect, the boolean settings keys `simple-fade-open-effect`, `simple-fade-close-effect`, and `simple-fade-animation-time` are required. +For enabling the new effect, the boolean settings keys `simple-fade-enable-effect` and `simple-fade-animation-time` are required. In this example, we also add a floating point value for storing another property of the effect - we will use them later in the tutorial. Just copy the XML code below to the file [`schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml`](../schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml). Just remember to replace `simple-fade` with your custom name! @@ -57,16 +57,10 @@ Just remember to replace `simple-fade` with your custom name! - + false - Simple Fade Close Effect - Use the Simple Fade effect for window closing. - - - - false - Simple Fade Open Effect - Use the Simple Fade effect for window opening. + Simple Fade Enable Effect + Use the Simple Fade effect. @@ -201,7 +195,7 @@ var SimpleFade = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'simple-fade'; diff --git a/extension.js b/extension.js index 4462862..0125c70 100644 --- a/extension.js +++ b/extension.js @@ -379,8 +379,7 @@ class Extension { // If an effect is to be previewed, we have to affect dialogs es well. This is // because the preview window is a dialog window... - const action = forOpening ? 'open' : 'close'; - const previewNick = this._settings.get_string(action + '-preview-effect'); + const previewNick = this._settings.get_string('preview-effect'); if (isDialogWindow && !shouldDestroyDialogs && previewNick == '') { this._fixAnimationTimes(isDialogWindow, forOpening, null); @@ -418,15 +417,16 @@ class Extension { effect = this._ALL_EFFECTS.find(effect => effect.getNick() == previewNick); // Only preview the effect once. - this._settings.set_string(action + '-preview-effect', ''); - + if (!forOpening) { + this._settings.set_string('preview-effect', ''); + } } // Else we choose a random effect from all enabled effects. else { // Therefore, we first create a list of all currently enabled effects. const enabled = this._ALL_EFFECTS.filter(effect => { - return this._settings.get_boolean(`${effect.getNick()}-${action}-effect`); + return this._settings.get_boolean(`${effect.getNick()}-enable-effect`); }); // And then choose a random effect. diff --git a/prefs.js b/prefs.js index b7a6746..9792544 100644 --- a/prefs.js +++ b/prefs.js @@ -155,53 +155,25 @@ var PreferencesDialog = class PreferencesDialog { } }); - // Add three buttons on the right. - const box = new Gtk.Box(); - box.set_spacing(8); - // The preview button. const previewButton = Gtk.Button.new_from_icon_name('bmw-preview-symbolic'); previewButton.add_css_class('circular'); previewButton.add_css_class('flat'); previewButton.set_tooltip_text(_('Preview this effect')); previewButton.set_valign(Gtk.Align.CENTER); - box.append(previewButton); + row.add_action(previewButton); previewButton.connect('clicked', () => { this._previewEffect(effect); }); // Now add the two toggle buttons for enabling and disabling the effect. - const addToggle = (action, tooltip) => { - const button = Gtk.ToggleButton.new(); - button.set_action_name( - `${action}-effects.${effect.getNick()}-${action}-effect`); - button.set_child( - Gtk.Image.new_from_icon_name(`bmw-window-${action}-symbolic`)); - button.set_tooltip_text(tooltip); - button.set_valign(Gtk.Align.CENTER); + const button = Gtk.Switch.new(); + button.set_action_name(`enabled-effects.${effect.getNick()}-enable-effect`); + button.set_tooltip_text(_('Use this effect')); + button.set_valign(Gtk.Align.CENTER); - // We switch some class when the button is enabled in order to make it more - // apparent which effects are currently in use. - button.add_css_class('circular'); - button.add_css_class('flat'); - button.connect('toggled', button => { - if (button.active) { - button.add_css_class('suggested-action'); - button.remove_css_class('flat'); - } else { - button.remove_css_class('suggested-action'); - button.add_css_class('flat'); - } - }); - - box.append(button); - }; - - addToggle('open', _('Use this effect when opening windows')); - addToggle('close', _('Use this effect when closing windows')); - - row.add_action(box); + row.add_prefix(button); group.add(row); this._effectRows.push(row); @@ -277,7 +249,7 @@ var PreferencesDialog = class PreferencesDialog { const viewport = clamp.get_parent(); viewport.get_parent().set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER); viewport.set_child(flap); - + const scrolledWindow = Gtk.ScrolledWindow.new(); scrolledWindow.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); scrolledWindow.set_propagate_natural_height(true); @@ -407,47 +379,24 @@ var PreferencesDialog = class PreferencesDialog { group.add_action(aboutAction); } - // Populate the open-effects drop-down menu. + // Populate the enabled-effects drop-down menu. { const group = Gio.SimpleActionGroup.new(); - window.insert_action_group('open-effects', group); + window.insert_action_group('enabled-effects', group); this._ALL_EFFECTS.forEach(effect => { const [minMajor, minMinor] = effect.getMinShellVersion(); if (utils.shellVersionIsAtLeast(minMajor, minMinor)) { - const actionName = effect.getNick() + '-open-effect'; + const actionName = effect.getNick() + '-enable-effect'; const action = this._settings.create_action(actionName); group.add_action(action); // The menu only exists if not using libadwaita. With libadwaita, individual // ToggleButtons are used for triggering the above actions. if (!utils.isADW()) { - const menu = this._builder.get_object('open-effect-menu'); + const menu = this._builder.get_object('enabled-effects-menu'); const label = effect.getLabel(); - menu.append_item(Gio.MenuItem.new(label, 'open-effects.' + actionName)); - } - } - }); - } - - // Populate the close-effects drop-down menu. - { - const group = Gio.SimpleActionGroup.new(); - window.insert_action_group('close-effects', group); - - this._ALL_EFFECTS.forEach(effect => { - const [minMajor, minMinor] = effect.getMinShellVersion(); - if (utils.shellVersionIsAtLeast(minMajor, minMinor)) { - const actionName = effect.getNick() + '-close-effect'; - const action = this._settings.create_action(actionName); - group.add_action(action); - - // The menu only exists if not using libadwaita. With libadwaita, individual - // ToggleButtons are used for triggering the above actions. - if (!utils.isADW()) { - const menu = this._builder.get_object('close-effect-menu'); - const label = effect.getLabel(); - menu.append_item(Gio.MenuItem.new(label, 'close-effects.' + actionName)); + menu.append_item(Gio.MenuItem.new(label, 'enabled-effects.' + actionName)); } } }); @@ -592,8 +541,7 @@ var PreferencesDialog = class PreferencesDialog { _previewEffect(effect) { // Set the to-be-previewed effect. - this.getSettings().set_string('open-preview-effect', effect.getNick()); - this.getSettings().set_string('close-preview-effect', effect.getNick()); + this.getSettings().set_string('preview-effect', effect.getNick()); // Make sure that the window.show() firther below "sees" this change. Gio.Settings.sync(); diff --git a/resources/ui/adw/prefs.ui b/resources/ui/adw/prefs.ui index 8805e11..f04b4c8 100644 --- a/resources/ui/adw/prefs.ui +++ b/resources/ui/adw/prefs.ui @@ -47,69 +47,116 @@ GPL-3.0-or-later - + + vertical 20 20 20 - 20 + 20 + 20 - - Application + + + - - bmw-select-app-symbolic - center + + Choose an Application + + + bmw-select-app-symbolic + center + + + + + + Animation Type + + + + Any + Open Windows + Close Windows + + + + + + + + + Window Type + + + + Any + Normal Windows + Dialogs + + + + + + + + + Power Mode + + + + Any + On Battery + Plugged In + + + + + + + + + Power Profile + + + + Any + Power-Saver Mode + Balanced Mode + Performance Mode + Power Saver or Balanced + Balanced or Performance + + + + + + - - Window Type - - - - Any - Normal Windows - Dialogs - - - - - + - - - Power Mode - - - - Any - On Battery - Plugged In - + + + Delete this Profile... - - - + - - - Power Profile - - - - Any - Power Saver - Balanced - Performance - Power Saver or Balanced - Balanced or Performance - + + + end + true + system-help-symbolic + - + + @@ -131,6 +178,33 @@ GPL-3.0-or-later 20 20 20 + Effect Settings + If multiple are selected, one is chosen randomly. + + + + + + + + + + edit-paste-symbolic + + + + + + edit-paste-symbolic + + + + + + + diff --git a/resources/ui/gtk3/prefs.ui b/resources/ui/gtk3/prefs.ui index 6616832..4b88998 100644 --- a/resources/ui/gtk3/prefs.ui +++ b/resources/ui/gtk3/prefs.ui @@ -8,8 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later - - + main-menu @@ -77,7 +76,7 @@ SPDX-License-Identifier: GPL-3.0-or-later 3 - Open Window Animation + Enabled Effects 0 start center @@ -100,72 +99,8 @@ SPDX-License-Identifier: GPL-3.0-or-later - - open-effect-menu - - - 8 - - - Choose Effects - - - - - pan-down-symbolic - 1 - - - - - - - - - - - - - - 10 - 10 - 10 - 10 - 0 - - - 8 - - - vertical - 3 - - - Close Window Animation - 0 - start - center - 1 - - - - - If multiple are selected, one is chosen randomly. - 0 - start - center - 1 - - - - - - - - close-effect-menu + + enabled-effects-menu 8 diff --git a/resources/ui/gtk4/prefs.ui b/resources/ui/gtk4/prefs.ui index b148a91..a20ade9 100644 --- a/resources/ui/gtk4/prefs.ui +++ b/resources/ui/gtk4/prefs.ui @@ -8,8 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later - - + main-menu @@ -69,7 +68,7 @@ SPDX-License-Identifier: GPL-3.0-or-later 3 - Open Window Animation + Enabled Effects 0 start center @@ -92,53 +91,9 @@ SPDX-License-Identifier: GPL-3.0-or-later - + Choose Effects - open-effect-menu - - - - - - - - - - 0 - - - - - vertical - 3 - - - Close Window Animation - 0 - start - center - 1 - - - - - If multiple are selected, one is chosen randomly. - 0 - start - center - 1 - - - - - - - - Choose Effects - close-effect-menu + enabled-effects-menu diff --git a/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml b/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml index e0e2604..edac16e 100644 --- a/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml +++ b/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml @@ -31,16 +31,10 @@ SPDX-License-Identifier: CC0-1.0 Enable effects only if power saver is disabled. - + "" - Close Preview Effect - The effect with this nick will be used for the next window-close animation. - - - - "" - Open Preview Effect - The effect with this nick will be used for the next window-open animation. + Preview Effect + The effect with this nick will be used for the next window animation. @@ -53,16 +47,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Apparition Open Effect - Use the apparition effect for window openeing. - - - - false - Apparition Close Effect - Use the apparition effect for window closing. + Apparition Enable Effect + Use the apparition effect. @@ -100,16 +88,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Pixelate Close Effect - Use the Pixelate effect for window closing. - - - - false - Pixelate Open Effect - Use the Pixelate effect for window opening. + Pixelate Enable Effect + Use the Pixelate effect. @@ -135,16 +117,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Pixel Wipe Close Effect - Use the Pixel Wipe effect for window closing. - - - - false - Pixel Wipe Open Effect - Use the Pixel Wipe effect for window opening. + Pixel Wipe Enable Effect + Use the Pixel Wipe effect. @@ -163,16 +139,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Pixel Wheel Close Effect - Use the Pixel Wheel effect for window closing. - - - - false - Pixel Wheel Open Effect - Use the Pixel Wheel effect for window opening. + Pixel Wheel Enable Effect + Use the Pixel Wheel effect. @@ -197,16 +167,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Doom Close Effect - Use the Doom effect for window closing. - - - - false - Doom Open Effect - Use the Doom effect for window opening. + Doom Enable Effect + Use the Doom effect. @@ -237,16 +201,10 @@ SPDX-License-Identifier: CC0-1.0 - + true - Fire Close Effect - Use the fire effect for window closing. - - - - false - Fire Open Effect - Use the fire effect for window opening. + Fire Enable Effect + Use the fire effect. @@ -307,16 +265,10 @@ SPDX-License-Identifier: CC0-1.0 - - true - Glide Close Effect - Use the glide effect for window closing. - - - + false - Glide Open Effect - Use the glide effect for window opening. + Glide Enable Effect + Use the glide effect. @@ -353,16 +305,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Matrix Close Effect - Use the matrix effect for window closing. - - - - false - Matrix Open Effect - Use the matrix effect for window opening. + Matrix Enable Effect + Use the matrix effect. @@ -405,16 +351,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - TV Close Effect - Use the tv effect for window closing. - - - - false - TV Open Effect - Use the tv effect for window opening. + TV Enable Effect + Use the tv effect. @@ -433,16 +373,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - T-Rex Close Effect - Use the trex effect for window closing. - - - - false - T-Rex Open Effect - Use the trex effect for window opening. + T-Rex Enable Effect + Use the trex effect. @@ -479,16 +413,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Hexagon Close Effect - Use the Hexagon effect for window closing. - - - - false - Hexagon Open Effect - Use the Hexagon effect for window opening. + Hexagon Enable Effect + Use the Hexagon effect. @@ -531,16 +459,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Incinerate Close Effect - Use the Incinerate effect for window closing. - - - - false - Incinerate Open Effect - Use the Incinerate effect for window opening. + Incinerate Enable Effect + Use the Incinerate effect. @@ -577,16 +499,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Energize A Close Effect - Use the Energize A effect for window closing. - - - - false - Energize A Open Effect - Use the Energize A effect for window opening. + Energize A Enable Effect + Use the Energize A effect. @@ -611,16 +527,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Energize B Close Effect - Use the Energize B effect for window closing. - - - - false - Energize B Open Effect - Use the Energize B effect for window opening. + Energize B Enable Effect + Use the Energize B effect. @@ -646,16 +556,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Glitch Close Effect - Use the Glitch effect for window closing. - - - - false - Glitch Open Effect - Use the Glitch effect for window opening. + Glitch Enable Effect + Use the Glitch effect. @@ -692,16 +596,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Wisps Close Effect - Use the wisps effect for window closing. - - - - false - Wisps Open Effect - Use the wisps effect for window opening. + Wisps Enable Effect + Use the wisps effect. @@ -726,16 +624,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Broken Glass Close Effect - Use the broken glass effect for window closing. - - - - false - Broken Glass Open Effect - Use the broken glass effect for window opening. + Broken Glass Enable Effect + Use the broken glass effect. @@ -772,16 +664,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Portal Close Effect - Use the Portal effect for window closing. - - - - false - Portal Open Effect - Use the Portal effect for window opening. + Portal Enable Effect + Use the Portal effect. @@ -818,16 +704,10 @@ SPDX-License-Identifier: CC0-1.0 - + false - Snap Open Effect - Use the snap effect for window openeing. - - - - false - Snap Close Effect - Use the snap effect for window closing. + Snap Enable Effect + Use the snap effect. diff --git a/src/Apparition.js b/src/Apparition.js index 9c44da1..101fce0 100644 --- a/src/Apparition.js +++ b/src/Apparition.js @@ -69,7 +69,7 @@ var Apparition = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'apparition'; diff --git a/src/BrokenGlass.js b/src/BrokenGlass.js index 3a98030..8eaf49e 100644 --- a/src/BrokenGlass.js +++ b/src/BrokenGlass.js @@ -127,7 +127,7 @@ var BrokenGlass = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'broken-glass'; diff --git a/src/Doom.js b/src/Doom.js index 5e35cf8..4345ff5 100644 --- a/src/Doom.js +++ b/src/Doom.js @@ -76,7 +76,7 @@ var Doom = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'doom'; diff --git a/src/EnergizeA.js b/src/EnergizeA.js index 391d5c9..10d2e67 100644 --- a/src/EnergizeA.js +++ b/src/EnergizeA.js @@ -68,7 +68,7 @@ var EnergizeA = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'energize-a'; diff --git a/src/EnergizeB.js b/src/EnergizeB.js index d6318b9..edd2472 100644 --- a/src/EnergizeB.js +++ b/src/EnergizeB.js @@ -69,7 +69,7 @@ var EnergizeB = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'energize-b'; diff --git a/src/Fire.js b/src/Fire.js index 3123b28..8a2366e 100644 --- a/src/Fire.js +++ b/src/Fire.js @@ -88,7 +88,7 @@ var Fire = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'fire'; diff --git a/src/Glide.js b/src/Glide.js index 846c553..1dcc68e 100644 --- a/src/Glide.js +++ b/src/Glide.js @@ -66,7 +66,7 @@ var Glide = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'glide'; diff --git a/src/Glitch.js b/src/Glitch.js index f9d8878..b932031 100644 --- a/src/Glitch.js +++ b/src/Glitch.js @@ -77,7 +77,7 @@ var Glitch = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'glitch'; diff --git a/src/Hexagon.js b/src/Hexagon.js index 8116c70..678d126 100644 --- a/src/Hexagon.js +++ b/src/Hexagon.js @@ -86,7 +86,7 @@ var Hexagon = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'hexagon'; diff --git a/src/Incinerate.js b/src/Incinerate.js index cc506e1..242ea03 100644 --- a/src/Incinerate.js +++ b/src/Incinerate.js @@ -119,7 +119,7 @@ var Incinerate = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'incinerate'; diff --git a/src/Matrix.js b/src/Matrix.js index 7b0f4f0..fb3103b 100644 --- a/src/Matrix.js +++ b/src/Matrix.js @@ -102,7 +102,7 @@ var Matrix = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'matrix'; diff --git a/src/PixelWheel.js b/src/PixelWheel.js index 46a804e..f878c73 100644 --- a/src/PixelWheel.js +++ b/src/PixelWheel.js @@ -62,7 +62,7 @@ var PixelWheel = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'pixel-wheel'; diff --git a/src/PixelWipe.js b/src/PixelWipe.js index e78e1f1..08745f0 100644 --- a/src/PixelWipe.js +++ b/src/PixelWipe.js @@ -88,7 +88,7 @@ var PixelWipe = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'pixel-wipe'; diff --git a/src/Pixelate.js b/src/Pixelate.js index 3ca6713..3d7ccee 100644 --- a/src/Pixelate.js +++ b/src/Pixelate.js @@ -62,7 +62,7 @@ var Pixelate = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'pixelate'; diff --git a/src/Portal.js b/src/Portal.js index 38063df..55709e7 100644 --- a/src/Portal.js +++ b/src/Portal.js @@ -79,7 +79,7 @@ var Portal = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'portal'; diff --git a/src/SnapOfDisintegration.js b/src/SnapOfDisintegration.js index 3750ff4..f05ca67 100644 --- a/src/SnapOfDisintegration.js +++ b/src/SnapOfDisintegration.js @@ -106,7 +106,7 @@ var SnapOfDisintegration = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'snap'; diff --git a/src/TRexAttack.js b/src/TRexAttack.js index e59cf1f..ae25713 100644 --- a/src/TRexAttack.js +++ b/src/TRexAttack.js @@ -104,7 +104,7 @@ var TRexAttack = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'trex'; diff --git a/src/TVEffect.js b/src/TVEffect.js index 2dabded..ecd6ea2 100644 --- a/src/TVEffect.js +++ b/src/TVEffect.js @@ -66,7 +66,7 @@ var TVEffect = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. '*-close-effect'), and its animation time + // effect is enabled currently (e.g. '*-enable-effect'), and its animation time // (e.g. '*-animation-time'). getNick() { return 'tv'; diff --git a/src/Wisps.js b/src/Wisps.js index 76fe75d..1743e5b 100644 --- a/src/Wisps.js +++ b/src/Wisps.js @@ -75,7 +75,7 @@ var Wisps = class { // This will be called in various places where a unique identifier for this effect is // required. It should match the prefix of the settings keys which store whether the - // effect is enabled currently (e.g. the '*-close-effect'). + // effect is enabled currently (e.g. the '*-enable-effect'). getNick() { return 'wisps'; }