Commit Graph

16689 Commits

Author SHA1 Message Date
Stian Grenborgen 146009a942 Allows the map to be iterable over tiles. 2024-01-09 21:50:39 +01:00
Stian Grenborgen dfbd8b8671 Fixes placements and aggression levels for natives to better match the classic. 2024-01-09 21:50:39 +01:00
Stian Grenborgen 6c9fb07414 Fixes geographical region intitialization so that native settlements can be placed correctly. 2024-01-09 21:50:39 +01:00
Stian Grenborgen cb44400862 Directly use an image with an exact match if available. 2024-01-09 21:50:39 +01:00
Stian Grenborgen 63b053b868 Allows background images for the Colony's "Outside Colony" panel. The background images are stretched to fit the current size of the panel. Alternative images with different aspect ratios can be provided -- and the image with the closest aspect ratio will be used. 2024-01-09 21:50:39 +01:00
Stian Grenborgen 01e4070aea Updating the code to get rid of warnings. Neither of these caused an issue. 2024-01-09 21:50:39 +01:00
Stian Grenborgen 5170516801 Updating the security policy. 2024-01-09 21:50:39 +01:00
translatewiki.net 1d52c8466c Localisation updates from https://translatewiki.net. 2024-01-08 13:06:46 +01:00
Stian Grenborgen 5bb6194e7e Updates the changelog with recent changes. 2024-01-07 00:18:21 +01:00
Stian Grenborgen fcb4ecd200 Allow to run FreeCol with only 512MB memory. Please keep in mind that 2GB is still needed for higher resolution, smoother scroll and high rendering quality. 2024-01-07 00:04:52 +01:00
Stian Grenborgen 2c1a48e4cb Website: Updating various parts of the website and adding a roadmap. 2024-01-06 22:32:33 +01:00
Stian Grenborgen 036dd1edfa Various fixes to the map editor and action logic.
* Store panel positions and sizes (if enabled) in more cases (for example, before closing all panels when starting a new game or creating a new map).
* Don't store sizes and positions for fullscreen panels.
* Adds title to map editor frames.
* Plays the default music playlist in the editor.
* Add an action/menu item for disabling/enabling the tile transform panel in the meap editor.
2024-01-06 19:10:00 +01:00
Stian Grenborgen 394d591169 Don't start scrolling if there's no map. 2024-01-06 12:54:19 +01:00
Stian Grenborgen ac3ad7c91b Stops the asyncpainter thread from exiting when getting an exception. 2024-01-06 12:51:07 +01:00
Stian Grenborgen b77b15dce5 Using resizable and minimizable frames for controls in the map editor. 2024-01-06 12:48:25 +01:00
Stian Grenborgen 9d36d7ef4a WrapLayout can now force components to have a specific size. This allows the use of WrapLayout in many of the places we earlier had fixed column based layouts with GridLayout. 2024-01-05 19:59:00 +01:00
Stian Grenborgen a45d17226a Better log messages when failing to start the game. 2024-01-04 22:00:29 +01:00
Stian Grenborgen ee61fdedd5 Prioritize displaying a new goto-order above a previous unit path (that will be overridden). 2024-01-04 21:59:31 +01:00
Stian Grenborgen dd3fb87223 Shows the goto-path with lines instead of the old icons. Using lines makes it easier to read the path. 2024-01-04 21:42:18 +01:00
Stian Grenborgen e66d3f5d8c Fixes a NPE in the minimap when loading a new game. 2024-01-04 08:52:00 +01:00
Stian Grenborgen 7a9607ec13 Only use white foreground color if styling has been applied to the cargo panel. 2024-01-03 23:34:07 +01:00
Stian Grenborgen 11bdd7e957 Drawing the actual number of goods images, but compressed, for high amounts for goods. We can add a separate graphics for bulk goods if this causes a performance hit on slow systems. 2024-01-03 22:57:16 +01:00
Stian Grenborgen f23fa101e1 Updating image to have more room for the production labels in the colony. 2024-01-03 22:24:24 +01:00
Stian Grenborgen f69e2e9c88 Fixes units getting clipped when the building image is too small. 2024-01-03 22:22:55 +01:00
Stian Grenborgen bfb78c325c Allows the fullscreen colony panel to be in front of other panels. 2024-01-03 21:43:43 +01:00
Stian Grenborgen 00a8b8b42c Accelerator keys for unload and load are now working again. 2024-01-03 21:38:26 +01:00
Stian Grenborgen ad5bd6bd27 Allows two lines of goods production to be displayed in the ColonyPanel. 2024-01-03 19:59:26 +01:00
Stian Grenborgen a24ccff806 WrapLayout now allows more control of alignment and gap between components. For example, only the last row in the layout can be centered. 2024-01-03 19:57:14 +01:00
Stian Grenborgen 74b2f2989b Goods labels in the colony warehouse has color coding again. It's now possible to specifiy separate goods' color codes for white and black backgrounds. 2024-01-02 23:33:05 +01:00
Stian Grenborgen b58eda6b68 Turns on antialiasing when rendering text in the ColonyPanel. 2024-01-02 23:05:42 +01:00
Stian Grenborgen e8f5735461 Added a black background to the contruction panel. This is both in the ColonyPanel and the BuildQueuePanel. 2024-01-02 22:36:22 +01:00
Stian Grenborgen 52bff796a2 Added more visualizations to the new colony panel. Population, colonists to be added/removed because of bonus, rebel percentage and royalist percentage. The tooltip showing more details have been reenabled. 2024-01-02 22:33:31 +01:00
Stian Grenborgen a77adcc70a The selected carrier in the ColonyPanel is now displayed with a border. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 393f9da340 Allows the colony panel to be moved when the dragevent starts in child panels. 2024-01-02 18:08:57 +01:00
Stian Grenborgen aebb741bbb The build queue is no longer displayed when clicking on other buildings than the carpenter type of buildings. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 94bf55cd16 Adjusts breakpoint for colony panel (window/fullscreen). 2024-01-02 18:08:57 +01:00
Stian Grenborgen 6d4f5032c6 Reduces the height of the top colony panel decoration. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 6355d96660 Updates the background for the colony warehouse. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 4cfcf1e43f The ColonyPanel can now be displayed as a fullscreen panel. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 1b0d267494 The FreeColProgressBar and ConstructionPanel now have a max font size to avoid overflowing layouts. Building images are now sized so that images of different dimensions can be used. Updates the ConstructionPanel layout. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 4f5d9bc9f9 Moving the buttons in the colony panel to the same line as the warehouse. This allows the construction panel to have a larger size. The colony is now automatically reopened after changing the font size and/or scaling factor. 2024-01-02 18:08:57 +01:00
Stian Grenborgen 53fb3c5cf6 Make the debug buttons in the colony panel less distracting. 2024-01-01 22:00:04 +01:00
Stian Grenborgen 19f71137d9 Massive redesign of the colony panel with background images and other styling. Buildings are now randomly distributed in the colony based on the available space (this is annoying when resizing the colony panel, but otherwise really good). The sizes of various panels have been tweaked to work both on small and large displays ... and panels that previously often required scrollbars have now been repositioned and made bigger. 2024-01-01 22:00:03 +01:00
Stian Grenborgen 1fc5957171 Adding new background graphics for the warehouse panel in the colony. 2024-01-01 22:00:03 +01:00
Stian Grenborgen 83a817bdc2 Adding background graphics for the cargo holds displayed in the colony panel (and possibly also later for the EuropePanel). 2024-01-01 22:00:03 +01:00
Stian Grenborgen f38565461d Adding placeholder graphics for the docks until we can make something better. 2024-01-01 22:00:03 +01:00
Stian Grenborgen 95ca60982c Adding a new background image/border for the upper right corner of the colony panel (tilesPanel etc). 2024-01-01 22:00:03 +01:00
Stian Grenborgen 9ee2eac74c Adding a carved wooden border that can also be rendered separately as an inner and an outer border. 2024-01-01 22:00:03 +01:00
Stian Grenborgen 50bc74a1eb Adding a simple wooden border. 2024-01-01 22:00:03 +01:00
Stian Grenborgen 31154cd8ac Removing unneeded ; 2024-01-01 22:00:03 +01:00