Commit Graph

105 Commits

Author SHA1 Message Date
Stian Grenborgen 3221600148 Fixes unintended rendering differences between systems.
There was a bug in the version of MigLayout we used, prior to this commit, that applied DPI scaling even when that option was disabled (we do our own DPI scaling) for default/logical pixels.
2023-12-11 20:56:45 +01:00
Stian Grenborgen 62fd6987ab Adjusts sizes for the buildings in the colony panel. The height requirement of a building no longer changes when a worker is added. The vertical gap between buildings are now reduced on small screens. 2023-06-11 14:30:37 +02:00
Stian Grenborgen b1459b1be6 A unit in a building is no longer drawn at the top of the building (that is, the area for showing goods production) if the production is zero. 2023-01-07 22:06:19 +01:00
Stian Grenborgen b00e256d2c Adds font scaling throughout the application. Adds split pane to the client options. 2022-04-14 16:49:30 +02:00
Stian Grenborgen 027e240a07 Removing unused imports. 2022-01-08 09:06:18 +01:00
Calebrw d990bbceb1 Update Copyright Year to 2022. 2022-01-02 18:29:09 -06:00
calebrw ded8170abc Update Copyright Year to 2021. 2021-01-24 21:41:02 -06:00
Mike Pope b824662f62 getStringImage can drop its font-specifier arguments. 2020-07-29 17:25:09 +09:30
Mike Pope 2b3c3a0732 Add a generic Size class, and use it for fonts. 2020-07-20 17:22:05 +09:30
Mike Pope 46d912c65e Clearly split the ImageLibraries. 2020-07-16 19:53:41 +09:30
Mike Pope a9d26cdc31 Update copyright year. 2020-07-13 17:13:35 +09:30
Mike Pope 97cfd4cafe Restrict visibiility (findbugs) mostly in the client. 2019-02-28 10:50:20 +10:30
Mike Pope f7a76b015c Bump copyright year. 2019-01-07 19:59:49 +10:30
calebrw 5b6b8996e8 Update all applicable Copyright tags to 2018 2018-05-06 21:47:39 -05:00
Mike Pope 478b95ada1 Clean up uses of ResourceManager that should be ImageLibrary. 2018-02-20 16:34:59 +10:30
Mike Pope 657d720ff3 Clean up building image routine naming. 2018-02-19 19:23:46 +10:30
Mike Pope 1c6355a762 Clean up and improve doco in ImageLibrary. 2018-02-18 14:57:09 +10:30
calebrw 45f652fdb3 Bump year to 2017 2017-01-01 20:55:05 -06:00
calebrw a2fcc3308f Update panel package Javadocs 2016-12-28 22:36:11 -06:00
Mike Pope 1a97d56109 Move GameOptions into options, like MapGeneratorOptions. 2016-10-17 19:51:41 +10:30
calebrw 62bf221f23 Move panel package contents into separate gui sub-packages or panel sub-packages as needed
Some Javadoc updates still needed.
2016-10-08 16:32:27 -05:00
calebrw 5e03a9bd1e Move label package out of panel and into gui 2016-10-08 16:06:30 -05:00
calebrw bd86a60a4c Move Label-related panel package files into a new panel.label package.
Fully tested via ant testall and with live game play and no ill effects found so far.
2016-10-06 19:10:04 -05:00
Mike Pope 7352e08a5f Revert git misadventure. 2016-09-24 17:09:47 +09:30
calebrw 4c872d3b50 Cleanup logger call not guarded by log condition
Reasoning (credit: IntelliJ IDEA)

Reports logging calls with non-constant arguments which are not surrounded by a guard condition. The evaluation of the arguments of a logging call can be expensive. Surrounding a logging call with a guard clause prevents that cost, when the logging is disabled for the level used by the logging statement. This is especially useful for the least serious level (trace, debug, finest) of logging calls, because those are most often disabled in a production environment.
2016-09-22 20:58:05 -05:00
calebrw 4cf8823b95 Revert "Remove unnecessary {@inheritDoc} tags from JavaDocs"
This reverts commit 1e20b7878d.
2016-09-17 14:28:55 -05:00
calebrw 1e20b7878d Remove unnecessary {@inheritDoc} tags from JavaDocs
{@inheritDoc}  with no further content is redundant as JavaDoc automatically pulls in super class documentation.

See https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javadoc.html#CHDFAGJH
2016-09-15 18:34:49 -05:00
calebrw 6fc6d4f2b0 Update Javadoc to more modern @code tags instead of legacy <code> tags.
Available in Java since version 1.5.
2016-09-03 14:45:57 -05:00
Michael Pope 79c9051bc7 Add and use CollectionUtils.first. 2016-05-22 10:41:50 +09:30
Mike Pope 6c8a1d7e2e Update copyright year. 2016-01-04 19:37:25 +10:30
Sebastian Zhorel a49621fb5f Rename ImageLibrary.scalingFactor for consistency with other classes 2015-08-24 20:55:52 +02:00
Sebastian Zhorel 502eccf95a Reduce uses of GUI.getCanvas 2015-05-12 17:57:32 +02:00
Sebastian Zhorel 74dd4ba93f Rename many resource keys, mainly for GUI elements, so they get more consistent 2015-04-23 22:43:01 +02:00
Sebastian Zhorel d25ac6e805 Cache string images locally in ImageLibrary, as they get cleaned up there sometimes when it is recreated and its more efficient 2015-04-19 02:45:22 +02:00
Sebastian Zhorel 27aa483703 Make more Font users use the scaling factor 2015-04-11 21:50:52 +02:00
Sebastian Zhorel 22e28a9184 Fix BuildingPanel to not screw up the image colors 2015-04-11 16:00:47 +02:00
Sebastian Zhorel 35f1f3a0ed Fix BuildingPanel to not cut off the images at an arbitrary size limit 2015-04-11 15:55:06 +02:00
calebrw 83553c5017 Resubmission of Panel directory semi-automated cleanup.
The following contain if to switch changes:
DiplomaticTradeDialog.java
TradeRouteInputPanel.java
TradeRoutePanel.java
2015-04-04 16:14:44 +02:00
Sebastian Zhorel c74a566a2b Revert tediously all broken logger calls I could find 2015-04-02 01:19:27 +02:00
Sebastian Zhorel 85bbbe17ff Inline ImageLibrary.getMiscImageIcon 2015-04-01 17:51:06 +02:00
Mike Pope 2e790ca95e Cleanups from Caleb, MR#10. 2015-03-30 15:20:39 +10:30
calebrw 014d81a9e7 Semi-Automated Code Cleanup. 2015-03-29 21:27:47 -05:00
Sebastian Zhorel 1d0d72aaf9 Use createFont methods in FontLibrary to make it easier to add scaling later, replacing the font constants 2015-03-29 19:07:06 +02:00
Sebastian Zhorel c8af319964 Create FontLibrary class, move Font constants there and adapt uses 2015-03-14 16:49:38 +01:00
Michael Pope 45956cd5b8 Simplify ProductionLabel. 2015-03-12 18:44:00 +10:30
Sebastian Zhorel 03ae7ecca7 Clean up all calls to static methods of ImageLibrary to not needlessly use object references 2015-03-10 23:44:43 +01:00
Michael Pope 313b16f90d Clean up patch from Milo Bem. 2015-02-17 17:05:02 +10:30
Mike Pope 279e81e3be Update copyright year to 2015. 2015-01-04 11:54:55 +10:30
Michael Pope da2d55d825 Move i18n to common, messages are used everywhere. 2014-12-18 10:35:57 +10:30
Sebastian Zhorel 7e2029ad7c Access unscaled fonts in same way through GUI from nearly everywhere
This should make it easier to adapt font size globally or add scaling.
2014-12-14 18:31:57 +01:00