From fb19a8b072e8529b9d90bd3fb322da31ca4911df Mon Sep 17 00:00:00 2001
From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com>
Date: Sun, 7 Nov 2021 15:42:22 +0800
Subject: add guimanager polyfill
---
index.js | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/index.js b/index.js
index 6e08fb6..8486c4e 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,25 @@
///
///
+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")
--
cgit