aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/index.js b/index.js
index 6e08fb6..8486c4e 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,25 @@
/// <reference types="../CTAutocomplete" />
/// <reference lib="es2015" />
+import SoopyGuiElement from "../guimanager/GuiElement/SoopyGuiElement.js"
+import SoopyBoxElement from "../guimanager/GuiElement/SoopyBoxElement"
+
+SoopyGuiElement.prototype.clearChildren = function (){
+ let theParent = this.innerObjectPaddingThing || this
+ theParent.children.forEach(child => {
+ child.setParent(undefined)
+ });
+ theParent.children = []
+ return this
+}
+SoopyBoxElement.prototype.clearChildren = function (){
+ let theParent = this.innerObjectPaddingThing || this
+ theParent.children.forEach(child => {
+ child.setParent(undefined)
+ });
+ theParent.children = []
+ return this
+}
class SoopyAddons {
constructor(){
this.FeatureManager = require("./featureClass/featureManager.js")