[✅] Customizing Display() functions or reinventing wheel with GUI text elements

Started by js, Sun 28/08/2022 15:58:12

Previous topic - Next topic

js

Hello,

I'm finding Dispaly() functions family quite complete, but i cannot customize as i want (color, border, fonts…).

Doing a search in the forum, it seems that the GUI for those functions is hardcoded.

So i think i must use GUI text elements, but i miss some display facilities, like automatic resizing of the width of the text box.
Is there a function i have missed, or should i rewrite a helper function for that (computing size of the font * lenght of the longuest sentence in the buffer, etc…) ?

Thank you.

Slasher

You need to make a New Text Window gui.

You can replace arrow images your for own, change background color etc etc...

Once you have made it you need to change Text Window gui number to use in the general settings...

Vincent

You should ceate a TextWindowGUI and over there you set some images fo each edge of the window. After that you should go to general setting and set Custom text-window GUI to the number of your GUI you just create, that should work also for the Display function. Regarding the font you can change it via script with Game.NormalFont


SMF spam blocked by CleanTalk