r22638 : New turn emphasis in game log
Hi,
This is a small change to the Game Log which emphasizes when a new turn begins (see pic below) which perhaps does not warrant its own announcement but I just wanted to mention an accompanying modification to the way FSkin.GetFont() works.
Currently, FSkin.getFont() returns the default themed font with a point size of 1 which is very, very tiny and unreadable. Consequently, throughout the source code you will find whenever the font needs to be set the required size is hard-coded using FSkin.getFont(12), FSkin.getFont(15), etc.
I have updated getFont() so that it returns the default font with a size as determined by
To be consistent I have also added similar methods for bold and italics styles. This means, you can now use FSkin.getFont(), FSkin.getFontBold() or FSkin.getFontItalics() without having to specify or guess what the "default" text size is and be guaranteed a readable font size.
Ideally, the base font size would be set by the theme and the code would either increment or decrement this value or use predefined sizes such as Header1, Header2, etc.
Finally, on a theme-related topic - can I humbly suggest that the excellent Journeyman theme http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=8449&start=15#p111420 is added to the stock skins if it has not been done already.
Cheers,
Steve
This is a small change to the Game Log which emphasizes when a new turn begins (see pic below) which perhaps does not warrant its own announcement but I just wanted to mention an accompanying modification to the way FSkin.GetFont() works.
Currently, FSkin.getFont() returns the default themed font with a point size of 1 which is very, very tiny and unreadable. Consequently, throughout the source code you will find whenever the font needs to be set the required size is hard-coded using FSkin.getFont(12), FSkin.getFont(15), etc.
I have updated getFont() so that it returns the default font with a size as determined by
- Code: Select all
UIManager.getDefaults().getFont("Label.font")
To be consistent I have also added similar methods for bold and italics styles. This means, you can now use FSkin.getFont(), FSkin.getFontBold() or FSkin.getFontItalics() without having to specify or guess what the "default" text size is and be guaranteed a readable font size.
Ideally, the base font size would be set by the theme and the code would either increment or decrement this value or use predefined sizes such as Header1, Header2, etc.
Finally, on a theme-related topic - can I humbly suggest that the excellent Journeyman theme http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=8449&start=15#p111420 is added to the stock skins if it has not been done already.
Cheers,
Steve