Posts by Tosfera

    That's true, you never have to do things twice. But maybe if I get some free time and I got the money to purchase the game, I'll see if I can write some custom GUI elements and contribute it to the community.


    @red51 mind adding opacity in the buttons too? Would be lovely! Also, two small functions would be very useful for things like this;


    drawRectangle ( int startX, int startY, int sizeX, int sizeY, string color, int opacity );
    drawText ( string text, int startX, int startY, int sizeX, int sizeY, string color, int opacity, int fontSize );

    Creating buttons your self won't be too hard if there is a callback function which gets fired if the user pressed on the screen with the cursor. All you have to do is calculate the real location where the player clicked and see if there is any saved GUI element there. Which would require to have at least window based arrays saved. Wouldn't be too hard to create if the callback is there, but I don't have the knowledge about the callbacks yet haha.