Commit Graph

16689 Commits

Author SHA1 Message Date
translatewiki.net 1e0762c4b5 Localisation updates from https://translatewiki.net. 2023-08-17 13:07:38 +02:00
Stian Grenborgen 0c230e99fb Deactivate using bitmask on lowest setting in order to let players experiment with the difference. 2023-08-12 14:32:16 +02:00
Stian Grenborgen a16f9b32b5 Using compatible images for rendering instead of ARGB. Forcing usage of bitmask for transparency on lowest quality setting. 2023-08-12 13:44:32 +02:00
Stian Grenborgen 3a1cf9191e Removes usage of an intermediate image when rendering tile overlays. This makes rendering of tile overlays a little faster. 2023-08-11 16:54:38 +02:00
translatewiki.net a050a1369e Localisation updates from https://translatewiki.net. 2023-08-07 13:05:50 +02:00
Stian Grenborgen 3c91272621 Deactivating sync for now since it sometimes causes tearing. 2023-08-03 20:03:57 +02:00
Stian Grenborgen 13e54e2bb0 Painting is now performed asynchronously while scrolling. This allows smooth scrolling after the tile caches have been updated with the current zoom level.
Remaining work:
* Move the actual painting code from MapViewer to a new class -- so that state fields like MapViewerBounds are not accidentally used.
* Reuse buffers in MapAsyncPainter.
* Handle fast scrolling direction changes. For example in MapAsyncPainter.scrollFocusOnBufferSize.
2023-08-03 19:27:59 +02:00
translatewiki.net 8064031533 Localisation updates from https://translatewiki.net. 2023-08-03 13:05:34 +02:00
Stian Grenborgen 6293ac3ef8 Merge branch 'master' of ssh://git.code.sf.net/p/freecol/git 2023-08-02 12:11:48 +02:00
Stian Grenborgen c469435d4f Adding delayed update of the minimap. This is necessary for really large map in order to avoid stuttering terrain animations while moving units. 2023-08-02 12:05:26 +02:00
Stian Grenborgen f983adddb5 The minimap is now rendered using a buffer image. This is needed in order to get sufficient performance when scrolling on the main map -- since painting the minimap just takes too long. 2023-08-02 11:15:46 +02:00
translatewiki.net 3527ea802c Localisation updates from https://translatewiki.net. 2023-07-31 13:06:47 +02:00
Stian Grenborgen 8d001b94fd Fixes a scrolling issue when the terrain animations are turned off. Resets the scrolling speed when the scrolling stops. 2023-07-28 09:39:28 +02:00
Stian Grenborgen 2fd179387a Extends the scrolling area and stops scrolling when the mouse is on the menu bar. 2023-07-28 09:02:14 +02:00
Stian Grenborgen d68f54e953 Rewrites the positionMap calculations. Allows scrolling pixel-by-pixel. The focus tile is now placed exactly in the center. Allowing scrolling past the borders of a map so that edge tiles can also be placed in focus. 2023-07-28 08:56:39 +02:00
translatewiki.net 721be7cdc3 Localisation updates from https://translatewiki.net. 2023-07-24 13:06:41 +02:00
translatewiki.net 778a90ad68 Localisation updates from https://translatewiki.net. 2023-07-03 13:06:44 +02:00
translatewiki.net ff8c33ac5d Localisation updates from https://translatewiki.net. 2023-06-12 13:14:54 +02: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 c9379c201b A single click now also focus on explored tiles. 2023-06-11 14:16:46 +02:00
Stian Grenborgen a30935bc96 Unit dragging can now only be started by clicking on the unit. In addition, the drag can now be started for units that are currently not the active unit. 2023-06-11 14:06:21 +02:00
Stian Grenborgen 7a1b489c63 Focus is now changed on the mapboard with a single mouse click. The active unit is kept when opening a colony panel. 2023-06-11 13:43:47 +02:00
Stian Grenborgen ba94de3705 The confirm declaration dialog now fits on small screen. 2023-06-11 11:54:51 +02:00
Stian Grenborgen 416d0e0caf Simplifies the code somewhat. 2023-06-11 11:34:30 +02:00
Stian Grenborgen 77ac0ec849 Moves drawing of the menu bar status text to a utility method. 2023-06-11 11:34:08 +02:00
Stian Grenborgen 6b976523ac Allows panels to cover the entire mapboard area (that is, all the frame except the menu bar). This is needed for some panels on very small screen. 2023-06-11 11:32:46 +02:00
Stian Grenborgen 77b71fdd6a Scales the panel showing the signing of the Declaration of Independence. 2023-06-11 11:29:07 +02:00
Stian Grenborgen ad6d09d4bf Reduces the spacing above the ok button. 2023-06-11 11:14:56 +02:00
Stian Grenborgen a97bb10117 Makes the ColonyPanel work better on small screen. When specifying layouts using MigLayout, numbers without units are now scaled using the current interface scaling factor. 2023-06-11 11:03:40 +02:00
Stian Grenborgen 2591943d4d Fixes hidden OK-button on small screens. 2023-06-10 21:40:41 +02:00
Stian Grenborgen 15f70de737 Adding an empty image resource file to be used for replacing images with empty space in mods. 2023-06-08 20:22:39 +02:00
Stian Grenborgen 6a6efc1b0a The WarehouseDialog is now a resizable panel. 2023-06-08 20:22:39 +02:00
Stian Grenborgen 07465c6df7 Adding WrapLayout that is a FlowLayout that can easily wrap components on a new line and increase height when necessary.
The code seem to be originally from:
https://tips4java.wordpress.com/2008/11/06/wrap-layout/

It has been copied across multiple GPL licensed projects (unmodified) without a reference to the original after the author stated that: "You can use/modify the code however you wish."

Any future changes to this file is licensed as the rest of FreeCol.
2023-06-08 20:22:39 +02:00
translatewiki.net 53b9a5f581 Localisation updates from https://translatewiki.net. 2023-06-08 13:04:16 +02:00
translatewiki.net ea7b34ea2a Localisation updates from https://translatewiki.net. 2023-06-05 13:04:04 +02:00
translatewiki.net 9f63befce6 Localisation updates from https://translatewiki.net. 2023-06-01 13:05:23 +02:00
translatewiki.net 0ce18f088e Localisation updates from https://translatewiki.net. 2023-05-25 13:04:55 +02:00
Stian Grenborgen e45f4d428a Fixes the focus order of radio buttons when using the arrow keys for navigation. 2023-05-23 19:07:19 +02:00
Stian Grenborgen fe99698c1e Adds styling for radio buttons and checkbox/radio menu items. 2023-05-23 19:07:19 +02:00
Stian Grenborgen bf59cd7245 Updated top menu border.
Changes:
* Increases the contrast of the top menu border so that it appears more gold like.
* Adds a higher resolution version of the border.
* Removes the top and bottom lines so that the border blends nicer with the background (some additional work needed to make it blend even better).
2023-05-23 19:07:19 +02:00
translatewiki.net 837d3dbc3b Localisation updates from https://translatewiki.net. 2023-05-22 13:04:26 +02:00
Stian Grenborgen 4f4d481a88 Adds partially transparent selection effect on top level menus. 2023-05-20 19:43:25 +02:00
Stian Grenborgen edf47c35e7 Adding new styling for the menubar. 2023-05-20 19:05:57 +02:00
Stian Grenborgen d60fb12a93 Reduces the contrast for the menu button backgrounds by making it partially transparent. 2023-05-20 19:03:08 +02:00
Stian Grenborgen 06abc66dd0 Adding missing file. 2023-05-20 12:41:09 +02:00
Stian Grenborgen ea28fd7756 Hides the unit order buttons when in the map editor. 2023-05-20 12:09:03 +02:00
Stian Grenborgen a09ee4f10f Show the top level menus (menubar) in a button like style. This increases the contrast between the text and background texture without having to apply the brighter color to the entire menu bar. 2023-05-20 12:01:15 +02:00
Stian Grenborgen 10ca820998 Updating version number. 2023-05-20 11:52:27 +02:00
Stian Grenborgen 0c9c7b0ec1 Fixes an issue where the texture paint is not removed after use. This stopped text etc from being rendered. 2023-05-20 11:24:57 +02:00
Stian Grenborgen 5e1479cfcb Updating the face of Peter Minuit to be more realisticly colored. 2023-05-20 10:57:39 +02:00