Text Size Choices

I 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!


Hello 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


Thanks! I appreciate that! I just made...

msg ("Text here")
    get input {
      SetFontSize (ToInt(result))

Part of my game's "Help Guide Command"

Thanks again!


Oh! Can that be done for the player's panes as well?


No Problem! Probably but honestly wouldn't know how but i will look into it cause i like the idea would be cool.


Thanks! Let me know if you do! I would love to add it into my game for people who have trouble seeing smaller fonts.


Any luck yet?


Hello 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.