From 49a9c4d0417e7f55b0df1bc1641e8fc7b1cf5401 Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Fri, 24 Nov 2023 01:00:05 +0800 Subject: [PATCH] Remove `Show/Hide Last Seed Value` from menu options --- js/seedGen.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/js/seedGen.js b/js/seedGen.js index 440e32b..4a3aa41 100644 --- a/js/seedGen.js +++ b/js/seedGen.js @@ -97,19 +97,19 @@ class SeedControl { } this.serializedCtx = {}; }; - this.node.getExtraMenuOptions = (_, options) => { - options.splice(options.length - 1, 0, { - content: "Show/Hide Last Seed Value", - callback: (_value, _options, _event, _parentMenu, _node) => { - this.node.properties["showLastSeed"] = !this.node.properties["showLastSeed"]; - if (this.node.properties["showLastSeed"]) { - this.addLastSeedValue(); - } else { - this.removeLastSeedValue(); - } - }, - }); - }; + // this.node.getExtraMenuOptions = (_, options) => { + // options.splice(options.length - 1, 0, { + // content: "Show/Hide Last Seed Value", + // callback: (_value, _options, _event, _parentMenu, _node) => { + // this.node.properties["showLastSeed"] = !this.node.properties["showLastSeed"]; + // if (this.node.properties["showLastSeed"]) { + // this.addLastSeedValue(); + // } else { + // this.removeLastSeedValue(); + // } + // }, + // }); + // }; } addLastSeedValue() {