Change GUI height with a button?
-
Can we change GUI height with a button?
When we do that, will it crash on a compiled plugin?Content.makeFrontInterface(600, 500); const var Button1 = Content.getComponent("Button1"); inline function onButton1Control(component, value) { if(value) Content.makeFrontInterface(600, 500); else Content.makeFrontInterface(600, 200); }; Content.getComponent("Button1").setControlCallback(onButton1Control);
-
noop :-)
-
Even if that would work, it's super likely to cause issues across different hosts so I would strongly recommend thinking about another solution.
-
@Christoph-Hart I understand, thank you!