I kinda sorta figured a teensy bit out about FGUI and I tried to make a button. I'm pretty sure I have the button thing working but idk how to put text inside. This is the code I used.

var button = createElement(165, 230, 50, 20);
// I think this is where the thing isn't working cuz I don't know that much about FGUI
// I assumed the part where it says 'Solve' is where the text goes since that's how it's like for inputs
button.addCompnent("button", "Solve");

@DragonFireGames if you could help me out I would really appreciate that.

    gZany
    button.addComponent("text","Solve");
    some people want textless buttons, so it is pointless to add them by default

    also make sure to try out

    button.style.fill = 255;
    button.hoverStyle.fill = 200;
    button.clickStyle.fill = 150;
    button.onclick = function(){
        console.log("Button pressed!");
    }

    I will be glad to help when it comes to FGUI since I don't have an official documentation for it yet. I also hate writing documentation (though I probably should do it more often) so I don't plan on doing it in the foreseeable future.

    Chat