SomeTroglodyte
13e3baac74
Split Fonts.kt ( #10267 )
...
* Fix font "symbols" not showing
* Move Fonts.kt to sub-package
* Re-sort imports
* Move top-level constants to prepare split
* Split Fonts.kt each existing class to its own file
* Split off FontRulesetIcons
* Linting and comments
2023-10-08 22:03:53 +03:00
SomeTroglodyte
49e2979427
Align ruleset icons in text to font metrics ( #10233 )
...
* Try to respect actual font layout, so fontSizeMultiplier works for ruleset icons too
* Replace font-based nation symbol in top bar with statically sized actor
* Reuse getReadonlyPixmap in extractPixmapFromTextureRegion
* Tweak topbar selected civ vertical align to be more pleasing to the human eye
* FasterUIDevelopment missing implementation of FontMetricsCommon
* Address hardcoded pixel coordinates comment
* Readability and comment cleanup
* More readability changes
2023-10-07 22:00:30 +03:00
Yair Morgenstern
b6f3c8571f
chore: Move files to correct folders
2023-09-27 13:19:13 +03:00
SomeTroglodyte
29e32303ec
Replace incorrect GraphicsEnvironment.maximumWindowBounds ( #10117 )
2023-09-18 09:46:44 +03:00
SomeTroglodyte
cc43a41ec7
Consistent UTF-8 where possible ( #9927 )
...
* Consistent UTF-8 where possible
* Remove one import
2023-08-21 18:17:21 +03:00
Yair Morgenstern
915238ed1a
#9886 - Set initial screen color on Desktop so it's not black-to-blue
2023-08-04 09:52:08 +03:00
SomeTroglodyte
a29cdc91e8
Unique target compliance test v2 ( #9802 )
...
* Split off some UniqueType helper classes, make regions work in Android Studio and linting
* Fix wrong UniqueType.Stats target
* Fix two Pantheon uniques
* BeliefType a little nicer to read
* More linting
* Implement UniqueTarget validation
* Validation of UniqueTypes allowed as conditionals
2023-07-15 22:06:12 +03:00
Yair Morgenstern
06377feaeb
4.7.6-patch2
...
Resolved crash when moving cities between civs, added tests to ensure future changes do not break city moving functionality
2023-07-03 14:13:31 +03:00
Yair Morgenstern
c26837fdd7
Step-by-step instructions to create a new Civilization mod
2023-07-02 18:10:09 +03:00
Yair Morgenstern
bb22b1de72
Actually generated unique type documentation
2023-07-02 01:36:28 +03:00
Yair Morgenstern
d0643efe6b
Added unique type documentation in wiki
2023-07-02 01:28:27 +03:00
SomeTroglodyte
3187f49e91
UiElementDocsWriter improvement to cope with BorderedTable ( #9506 )
2023-06-11 14:45:59 +03:00
SomeTroglodyte
5f60c887f7
Next-Turn Progressbar ( #9409 )
...
* Next-Turn Progressbar
* Next-Turn Progressbar - doc
* NextTurnProgress: Rethink max on first turn
2023-05-22 17:59:28 +03:00
alexban011
91116f8df3
Fixed more warnings ( #9401 )
...
* fix: fix FunctionParameterNaming warnings
* fix: fix InvalidPackageDeclaration warnings
* fix: fix MatchingDeclarationName warnings
* fix: fix WrongEqualsTypeParameter warnings
* fix: fix UnusedPrivateProperty warnings
* fix: fix UseCheckOrError warningsU
* fix: fix UseRequire warningsU
* detekt: disabled SpreadOperator rule
* fix: resolve MemberNameEqualsClassName rule
* detekt: disabled ForbiddenComment rule
* fix: resolved SwallowedException warning
* fix: resolved ThrowingExceptionsWithoutMessageOrCause warning
* fix: resolved EmptyFunctionBlock warning
* fix: resolved EmptyFunctionBlock warning
* fix: resolved InstanceOfCheckForError warning
* detekt: disable TooGenericExceptionCaught warning
* detekt: disable TooGenericExceptionThrown warning
* fix: resolve part of NestedBlockDepth warnings
2023-05-18 10:12:33 +03:00
SomeTroglodyte
97769b89b6
Combat java.util.star-import ( #9382 )
2023-05-13 21:50:55 +03:00
alexban011
f3e80a4021
Fixed a couple warnings reported by code analysis ( #9364 )
...
* fix: resolve EmptyCatchBlock warnings
* fix: resolve PrintStackTrace warnings
* fix: resolve SwallowedException warnings
* fix: resolve ThrowingExceptionsWithoutMessageOrCause warnings
* fix: resolve ConstructorParameterNaming warnings
* fix: resolve FunctionParameterNaming warnings
* fix: resolve InvalidPackageDeclaration warnings
* fix: resolve ForEachOnRange warnings
* fix: resolve ImplicitDefaultLocale warnings
* fix: resolve MayBeConst warnings
* fix: resolve NewLineAtEndOfFile warnings
* fix: resolve UnusedParameter warnings
* fix: resolve UtilityClassWithPublicConstructor warnings
* fix: resolve WildcardImport warnings
2023-05-10 11:43:53 +03:00
SomeTroglodyte
940fa9a551
Slimming a locally built jar ( #9321 )
2023-05-04 14:21:00 +03:00
SomeTroglodyte
a40e8c31b9
Limit saved window size to available desktop ( #9052 )
...
* Limit saved window size to available desktop
* Defense against corrupted settings file
* LimitDesktopWindowSize - revert unnecessary stuff
* LimitDesktopWindowSize - fix
2023-05-04 09:38:56 +03:00
SomeTroglodyte
2150fc2244
Random nation count ( #9118 )
...
* Fix game starter problems with random number of players
* Some cleanup to use new Player constructor signature
2023-04-04 23:41:45 +03:00
Yair Morgenstern
c4a0f49af3
Solve 'desktop tries to create window of size 0/0' bug
2023-03-29 22:03:39 +03:00
SomeTroglodyte
a56e461595
Prevent duplicate lines from UiElementDocsWriter ( #9040 )
2023-03-26 16:17:01 +03:00
SomeTroglodyte
09cff6e55f
TechPickerScreen colors - skinnable and prettier Future Tech ( #9033 )
2023-03-25 21:34:49 +03:00
SomeTroglodyte
882f6a6ab2
Desktop starting size fix ( #8973 )
...
* Fix initial size jumps of windowed desktop
* Fix window jumping back to previous size on changes to mode
2023-03-21 14:39:55 +02:00
Yair Morgenstern
f66076c2a4
4.5.10
2023-03-19 19:00:26 +02:00
Yair Morgenstern
a76b344aba
Split itch upload to separate job - test4
...
Separated 'packr' gradle task from 'dist' task which builds the JAR
2023-03-07 21:54:41 +02:00
vegeta1k95
b57232c992
Android: selectable orientation ( #8822 )
...
* Android: selectable orientation
* Fix visible rectangle bug, fix auto-rotate behaviour, add translations
* Fix translation
---------
Co-authored-by: vegeta1k95 <vfylfhby>
2023-03-06 10:35:14 +02:00
vegeta1k95
f55e010451
Android: "Screen Mode" option ( #8785 )
...
* Android: "Screen Mode" option
* Fix broken tests, code cleanup
* Fix broken tests, code cleanup
* Fix broken tests, code cleanup
---------
Co-authored-by: vegeta1k95 <vfylfhby>
2023-03-04 19:22:09 +02:00
Yair Morgenstern
66faeb0d15
Preparation for unit action modifiers
2023-03-01 15:26:54 +02:00
vegeta1k95
494fde53cf
Cleaning: platform specifics and UncivGame ( #8773 )
...
* Cleanup: platform specifics + UncivGame
* Fix tests
* Fix requests not clearing
---------
Co-authored-by: vegeta1k95 <vfylfhby>
2023-02-28 18:56:57 +02:00
Yair Morgenstern
c1df32b4e7
Add new uniques to wiki
2023-02-26 22:15:15 +02:00
Yair Morgenstern
a47864ecac
Special type for unit triggerables
2023-02-26 21:52:18 +02:00
SomeTroglodyte
5d74689b19
Resilient UiElementDocsWriter ( #8738 )
2023-02-25 20:39:56 +02:00
vegeta1k95
c593056e42
Modding: allow mods to supply custom fonts ( #8715 )
...
* Modding: allow mods to supply custom fonts
* Cleanup
* Code cleanup
---------
Co-authored-by: vegeta1k95 <vfylfhby>
2023-02-21 23:09:11 +02:00
Yair Morgenstern
70f81d1657
chore: huge code reorg for ui classes
...
Separated into screens, popups, and UI components, with screen-specific components located together with their screens
2023-02-19 07:47:29 +02:00
vegeta1k95
ec2be2ceca
Fix Desktop window borders
2023-02-17 17:24:59 +01:00
Yair Morgenstern
e8f54cc2f5
chore: File reorg
2023-01-18 15:25:25 +02:00
Yair Morgenstern
be161d8839
Better docs for Trigger Conditions
2023-01-16 23:13:08 +02:00
vegeta1k95
0aa7c0e79b
Added gradle task of Atlas texture packing for Android build ( #8208 )
...
* Added gradle task of Atlas texture packing for Android build
* ImagePackers check also for creation date
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
2022-12-23 14:49:08 +02:00
Yair Morgenstern
454f999948
Resolved #8090 - Replaces misunderstood 'virtual resolutions' with more intuitive 'screen size'
2022-12-05 18:56:47 +02:00
Yair Morgenstern
c3fd948efe
Max screen size takes Windows taskbar into account - see #8091
2022-12-05 18:39:01 +02:00
Leonard Günther
99b6a2254d
Changes to moddable UI ( #8055 )
...
* Replaced all occurrences of deprecated NinePatch
function calls
This makes a lot of UI elements already moddable but documentation is still missing
* Added "How to create a UI skin for Unciv" to wiki
* Added image
* Fixed two typos and updated directory image
Old image was missing a folder
* Added clear color to skin config
to support picker screen backgrounds
* Removed deprecated functions in ImageGetter
* Fixed lowercase ui element names
they should always be UpperCamelCase to be consistent
* Added UiElementDocsWriter
to modify the docs for UI elements automatically
* Added default shape to UiElementsDocsWriter.kt
* Revert unintended merge errors
* Rerun file auto generation
2022-11-27 19:14:56 +02:00
Yair Morgenstern
f04297acfd
Removed use of Anuken packr, removing windows32 builds.
2022-10-12 23:39:57 +03:00
Leonard Günther
d05b3d376b
Moddable UI skins ( #7804 )
...
* Added SkinStrings and SkinConfig
TODO SkinCache
* Deprecated all old ui background getters
* Added SkinCache
for SkinConfigs to take effect
* Modable or moddable? idk ¯\_(ツ)_/¯
* Added separate alpha to config
2022-09-19 16:13:09 +03:00
Yair Morgenstern
1256724ee3
Desktop settings initialize to fullscreen ( #7821 )
2022-09-19 16:12:49 +03:00
Yair Morgenstern
8fec196db1
Got rid of uppercase C in Unciv in ALL places!
2022-09-12 23:26:28 +03:00
nacro711072
3202239129
JvmArg not work for mac desktop:run. ( #7681 )
...
* fix build bug.
* add package gdx-lwjgl3-glfw-awt-macos for mac only.
* use library with non-specify-platform.
2022-08-28 23:24:54 +03:00
Yair Morgenstern
c4747524d4
Disabled packing base images when running from JAR ( #7478 )
2022-08-04 10:35:01 +03:00
Timo T
57ed61af41
Save compatibility handling ( #7255 )
...
* Add serialization version to GameInfo
* Add handling of incompatible saves due to a dfiferent save version
* Fix compilation?
* Fix ios compilation
* Refactor: Make it clearer that GameInfo serialization version is only supposed to be incremented when it's guaranteed to cause issues & rename to compatibility version
* Update initial version
* Update initial version
* Fix merge mistake
2022-07-01 09:34:41 +03:00
Timo T
bc9a42e452
Save uncaught exception to file ( #7247 )
...
* Refactor: Rename GameSaver to UncivFiles
* Save last uncaught exception to file
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2022-06-25 22:30:27 +03:00
alexban011
51ba657b75
Added option to select font size ( #7238 )
2022-06-25 13:46:12 +02:00