Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: swashmebuckle on November 14, 2010, 02:09:00 am
-
Since the new HUD code that expands on the usability of custom fonts is being tested out now, I thought it would be a good time to bring this up. I've been working on getting Star Wars-style fonts working for FotG, and the whole interface looks a lot better at every resolution when you use a font that is taller than the standard tiny Bank Gothic that FS uses (font01.vf). The problem I am encountering is that the command and mission briefing text blocks in the interface do not scroll appropriately to match the larger fonts. I don't know what it's basing the amount of scroll it allows on, but as you can see in the pictures below, the text will simply go out of the field and you can't use the scroll button to advance it. If you have a lot of overflow in there (depending on the size of your replacement font), the "More" indication will appear at the bottom, but you still won't be able to scroll all the way down.
The weird thing is that in the tech room and in debriefings, the system works exactly right--one line of text is scrolled for each click of the button no matter how tall the font is, and you can always scroll to the end no matter how long the text block is. What I am wondering is if some portion of the code from the properly functioning parts can be copied over so that larger and different fonts can be used for the whole interface.
In these example pics I've just renamed the retail font02 (the biggest the game uses) as font01, so obviously there are other problems with collisions and stuff in the interface. Some variant of font03 might make for a good upgrade in looks and legibility for the MediaVPs in the future, though.
(http://img594.imageshack.us/img594/1967/commandbrief.png)
(http://img176.imageshack.us/img176/3479/missionbrief.png)
(http://img243.imageshack.us/img243/8183/techroom.png)
-
I can see you're using the standard interface. In the MediaVPs, you will find replacement art for the command briefing, called 2_CommandBriefb, which has vertical scrollbars.
-
Yep, those shots were taken using retail. The mediavps_3612 version has the buttons for scrolling a command briefing, but like the mission briefing buttons, they still don't function properly when using larger fonts. You can check it out using this jumbo font and looking at the briefing for "Surrender Belisarius" at 1024x768--the game just doesn't recognize that there is more text to display.
[attachment deleted by admin]
-
:bump: This should be fixed in builds post revision 7242.