Forum rules - please read before posting.

Increase font size in menu input element

Hi - I'm using a simple menu for a puzzle (just a background texture, an alpha numeric input element and an enter button) and although I've got it all working correctly, I can't increase the size of the font in the input element beyond a certain point.

In terms of setup it's an Adventure Creator menu, I've got the font size slider set all the way to 4, and I've set the element size set to Manual, W 100 H 100 (just while I'm trying to get it working, I know it doesn't need to be that big), but the maxed-out font isn't big enough for how I want it to look.

I'm assuming that the text size slider is recognizing an underlying size, and adjusting from 1-4 based on that...? Is there any way of increasing that underlying size? Or an alternative approach? Like Spinal Tap, I feel like it needs to go to about 11.

Comments

  • Looking at it, the cap of 4 is needlessly arbitrary. I'll remove this limit, thanks for raising the issue.

    In the meantime, you can remove this manually by opening AC's MenuElement script and replacing the line (around 549):

    fontScaleFactor = CustomGUILayout.Slider ("Text size:", fontScaleFactor, 1f, 4f, apiPrefix + ".fontScaleFactor", "The font size");
    

    with:

    fontScaleFactor = CustomGUILayout.FloatField ("Text size:", fontScaleFactor, apiPrefix + ".fontScaleFactor", "The font size");
    
  • Hi Chris - that's awesome, it fixed it - thank you so much for your help!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.