Text Size Choices

Anonynn
09 Oct 2016, 21:04I imagine this is InitUserInterface Function Quest but I'm not entirely sure.
Would it be possible to provide like 3 different text sizes (including a default) that the player can choose from, which would change the text size in the game? I just wanted to accommodate for people who have trouble reading smaller font. Thanks in advance!

onimike
09 Oct 2016, 22:52Hello what I did for a game I'm making is made a options menu that you can access through a pause function. With this function you can change font size, color and background color, here's the code
Optionsmenu = NewStringList()
list add (Optionsmenu, "Background Color")
list add (Optionsmenu, "Font Color")
list add (Optionsmenu, "Font Size")
list add (Optionsmenu, "Back")
ShowMenu ("Select a option to change.", Optionsmenu, false) {
if (result = "Background Color") {
msg ("Type in a color. Example White or Black")
get input {
SetBackgroundColour (result)
Optionsmenu
}
}
else if (result = "Font Color") {
msg ("Type in a color. Example White or Black")
get input {
SetForegroundColour (result)
Optionsmenu
}
}
else if (result = "Font Size") {
msg ("Type in desired font size. Example 12, 15 or 20")
get input {
SetFontSize (ToInt(result))
Optionsmenu
}
}
else if (result = "Back") {
Gamemenu
}
}
Hope it helps
Mike

Anonynn
10 Oct 2016, 00:30Thanks! I appreciate that! I just made...
msg ("Text here")
get input {
SetFontSize (ToInt(result))
Part of my game's "Help Guide Command"
Thanks again!

Anonynn
10 Oct 2016, 00:35Oh! Can that be done for the player's panes as well?

onimike
10 Oct 2016, 02:58No Problem! Probably but honestly wouldn't know how but i will look into it cause i like the idea would be cool.

Anonynn
11 Oct 2016, 03:56Thanks! Let me know if you do! I would love to add it into my game for people who have trouble seeing smaller fonts.

Anonynn
14 Oct 2016, 18:35Any luck yet?

onimike
18 Oct 2016, 17:59Hello sorry for late response, I think I may of found something about but have yet to try it. So if it goes well i will post details.