Hi all,

my long going efforts to get the code in shape for having the whole GUI
resizable are beginning to pay off.
You could check out the current state, when you apply the attached diff!

It looks mostly presentable, though weird in some places.
I put most effort into getting the Map, InfoPanel, ColonyPanel,
EuropePanel, ReportPanels, Colopedia and their subpanels presentable.
Some places, like views of tiles in Panels and header text, are
intentionally not scaled atm., to avoid breaking.
It would be nice if you could try it out and tell me about broken dialogs,
especially the ones randomly appearing for all kinds of game events,
as I was only coding and not playing!

I think the method for activating it would be best done same as the map
scaling, by adding hotkeys and menu items. I'd like to know from you if
something needs to be done before its in a good enough shape to add these
soon, for everyone to enjoy it. So, please try it out!

Btw., I saw in the old SVN repo some nice highres base art, which could
be checked out to get some better looking versions of many images with
higher, standardized resolutions to avoid upscaling.
For example, I saw the gorgeous image of the fur trapper, which the tiny
icons we currently use are not giving justice to.
For the forest and mountain images I'm not sure if there are better ones.


Greetings,

wintertime
diff --git a/src/net/sf/freecol/client/gui/FontLibrary.java b/src/net/sf/freecol/client/gui/FontLibrary.java
index 316522a..b7eedfd 100644
--- a/src/net/sf/freecol/client/gui/FontLibrary.java
+++ b/src/net/sf/freecol/client/gui/FontLibrary.java
@@ -103,7 +103,7 @@ public class FontLibrary {
      *                 user-provided name.
     */
     static Font createMainFont(String fontName) {
-        final float defaultSize = 12f;
+        final float defaultSize = 12f * 2f;
         mainFont = null;
         if (fontName != null) {
             Font font = Font.decode(fontName);
diff --git a/src/net/sf/freecol/client/gui/GUI.java b/src/net/sf/freecol/client/gui/GUI.java
index d6d8c20..025f98c 100644
--- a/src/net/sf/freecol/client/gui/GUI.java
+++ b/src/net/sf/freecol/client/gui/GUI.java
@@ -254,7 +254,7 @@ public class GUI {
     public GUI(FreeColClient freeColClient, boolean headless) {
         this.freeColClient = freeColClient;
         this.graphicsDevice = headless ? null : getGoodGraphicsDevice();
-        this.imageLibrary = new ImageLibrary();
+        this.imageLibrary = new ImageLibrary(2f);
     }
 
 
diff --git a/src/net/sf/freecol/client/gui/panel/Utility.java b/src/net/sf/freecol/client/gui/panel/Utility.java
index 3689987..37244f8 100644
--- a/src/net/sf/freecol/client/gui/panel/Utility.java
+++ b/src/net/sf/freecol/client/gui/panel/Utility.java
@@ -139,7 +139,7 @@ public final class Utility {
         Font font = FontLibrary.createFont(FontLibrary.FontType.NORMAL,
                                            FontLibrary.FontSize.TINY);
         StyleConstants.setFontFamily(regular, font.getFamily());
-        StyleConstants.setFontSize(regular, font.getSize());
+        StyleConstants.setFontSize(regular, font.getSize() * 2);
 
         Style buttonStyle = STYLE_CONTEXT.addStyle("button", regular);
         StyleConstants.setForeground(buttonStyle, LINK_COLOR);
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Freecol-developers mailing list
Freecol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to