MiniMap label font size

I've been digging through the Game settings, and the web tools while playing the game. I can't find out how to increase the font size of the labels of my map (grid) view.

Is there a full list of the css elements used in Quest 5? For future reference if I can't find something I mean.


Is there a full list of the css elements used in Quest 5? For future reference if I can't find something I mean.

You can always look at the HTML of the game while it's playing. there's dozens of element roles and hundreds of CSS classes that might be used for different things, but most of their names are self explanatory.

This won't help with anything within the map, though. The map is an image, generated by (I think) a canvas powered by Paperscript. The existing code in playercore.js and grid.js doesn't set the font size of labels at all; it leaves it at the default. And modifying those functions will be very difficult because in user-side scripts, you are outside the context where those functions were created.
I suspect the best way to change the font size would be to replace gridApi.drawLabel with a new function which first calls the original, then looks at the end of the allPaths list to find the newly added text, and changes its size. This would be really ugly, but would theoretically allow live modification of the currently displayed map.


Do you want to change the overall font size? (like making all labels smaller or bigger, but all at the same size?)

I used a way around it, though it isn't perfect but works well.
You can change the map scale, which will change the draw size of the map but doesn't change the font size. The player can adjust the zoom with the mouse wheel and drag the map with a left-click by default.

The map scale attribute is in the editor: game > interface

or in the game file, search for:

    <mapscale type="int">50</mapscale>

Of course, this doesn't help if you want individual label sizes.


Log in to post a reply.

Support

Forums