Set Font Size?

onimike
12 Sept 2016, 18:48

Hey all Mike here using online editor since offline stopped working. Anyway got a question on how to set font size to expression?

msg ("Type in desired font size. Example 12, 15 or 20")
get input {
  SetFontSize (result)
  Optionsmenu
}

Currently this is what i am doing after getting input and this works great with set background color and foreground color but just freezes when using trying to set font size. Any ideas why?

Thanks as always
Mike


The Pixie
12 Sept 2016, 20:36

result will be a string, SetFontSize will expect an int. Try this:

SetFontSize(ToInt(result))

Is Optionsmenu a custom function?


onimike
13 Sept 2016, 00:01

Ahhhhhaaa @ThePixie thank you so much, and yes its a custom function that gives a nice options menu to my start menu :). Trying to make classic video game to text game hopefully turns out

Thanks again
Mike