Commit graph

108 commits

Author SHA1 Message Date
Azgaar
d7d79ad740 refactor: split states and burgs generators 2024-09-29 14:24:44 +02:00
Azgaar
ea27276558 fix: disable double-click on heightmap edit 2024-09-22 20:07:55 +02:00
Azgaar
601e71b846 fix: heightmap edit in Risk mode 2024-09-21 02:09:16 +02:00
Azgaar
8be55eae51 fix: heightmap edit in Erase mode 2024-09-21 01:41:14 +02:00
Azgaar
05de284e02
Refactor layers rendering (#1120)
* feat: render states - use global fn

* feat: render states - separate pole detection from layer render

* feat: render provinces

* chore: unify drawFillWithGap

* refactor: drawIce

* refactor: drawBorders

* refactor: drawHeightmap

* refactor: drawTemperature

* refactor: drawBiomes

* refactor: drawPrec

* refactor: drawPrecipitation

* refactor: drawPopulation

* refactor: drawCells

* refactor: geColor

* refactor: drawMarkers

* refactor: drawScaleBar

* refactor: drawScaleBar

* refactor: drawMilitary

* refactor: pump version to 1.104.00

* refactor: pump version to 1.104.00

* refactor: drawCoastline and createDefaultRuler

* refactor: drawCoastline

* refactor: Features module start

* refactor: features - define distance fields

* feat: drawFeatures

* feat: drawIce don't hide

* feat: detect coastline - fix issue with border feature

* feat: separate labels rendering from generation process

* feat: auto-update and restore layers

* refactor - change layers

* refactor - sort layers

* fix: regenerate burgs to re-render layers

* fix: getColor is not defined

* fix: burgs overview - don't auto-show labels on hover

* fix: redraw population on change

* refactor: improve tooltip logic for burg labels and icons

* chore: pump version to 1.104.0

* fefactor: edit coastline and lake

* fix: minot fixes

* fix: submap

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-09-20 12:20:27 +02:00
Azgaar
eb29c5ec5d
Zones generator update (#1113)
* feat: style - store emblem size mod in style (v1.99.10)

* fix the isOutdated function for versions past 1.99

* fix: showUploadMessage function not called correctly for isUpdated case

* feat: load - improve version detection

* feat: improve version detection and update process

* feat: Update version and use constant for VERSION in multiple files

* Update versioning.js to fix incorrect message display for stored version

* feat: zones editor - update to work with pack data

* feat: zones editor - update editor

* feat: zones editor - update editor

* chore: update version

* feat: zones - regenerate

* feat: zones - render zones as continuius line

* feat: zones - editot changes

* feat: zones - auto-update

* feat: zones - generation fixes

* feat: zones - generation fixes

* feat: zones - restore layer

* feat: zones - proselytism - check population

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-09-01 12:48:39 +02:00
Azgaar
d4aef4920c
Slider-input web component (#1109)
* feat: slider-input web component

* feat: slider-input web component - Brush size

* feat: slider-input - statesGrowthRate

* feat: slider-input - units editor

* feat: slider-input - dissalow invalid numbers

* chore: pump version to v1.99.05

* chore: pump version to v1.99.05

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-08-22 13:35:36 +02:00
Azgaar
f19b891421
Urquhart routes (#1072)
* feat: routes generation

* feat: routes rendering

* feat: searoutes fix, changing reGraph

* feat: searoute - change pathfinding algo

* feat: routes - cleanup code

* feat: routes - change data format

* feat: routes - add routes to json export

* feat: edit routes - start

* feat: edit routes - main

* feat: edit routes - EP

* feat: edit routes - remove route

* feat: route - generate names

* feat: route - continue

* Refactor route merging logic for improved performance

* feat: routes - show name in tooltip

* feat: routes - create route dialog

* feat: update data on control point remove

* feat: routes editor - split route

* feat: add join route functionality to routes editor

* feat: Add join route functionality to routes editor

* feat: Update join route tooltip in routes editor

* feat: routes overview - sort by length

* feat: routes overview - fix distanceScale value

* feat: routes overview - create route

* Refactor getMiddlePoint function to getCloseToEdgePoint

* feat: routes - change data format, fix issues

* feat: routes - regenerateRoutes

* feat: routes - add route on burg creation

* chore - remove merge conflict markers

* chore - remove merge conflict markers

* feat: routes name - no unnamed burg names

* feat: routes - lock routes

* fix: routes - split routes

* feat: routes - tip correction

* feat: routes - auto-update part 1

* feat: routes - return old rePacj logic to not break auto-update

* feat: routes - auto-update - add connections

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-08-15 15:46:55 +02:00
Azgaar
26f48a48fd
Compress save file (#986)
* Adding gzip compression for improving storage use and backward compatibility. (#984)

* Basic gzip an gunzip on load and save.

* refactor file save type to .gz and update the data in ui.

---------

Co-authored-by: Azgaar <maxganiev@yandex.com>

* refactor: cleanup, change wording

* feat: streamline saving options

* fix: fixes

---------

Co-authored-by: Efruz Yıldırır <30903352+yldrefruz@users.noreply.github.com>
2023-08-15 16:50:28 +04:00
Azgaar
87599d1530
State labels: new label placing algorithm (#977)
* feat: draw state labels start

* feat: update old .map files

* chore: update version hash

* fear: add change to the user's changelog
2023-08-11 18:56:42 +04:00
Azgaar
1bb90251cd feat: move biomes code to a separate module, reduce deserts amount 2023-08-11 14:31:08 +04:00
Azgaar
166399cdea fix: restore layers after heightmap edit 2023-08-08 13:39:39 +04:00
Azgaar
8288335514 fix: erase data before regeneration on heightmap erase mode to avoid lock state, v1.89.06 2023-02-19 14:05:36 +04:00
Azgaar
f20029eac5 feat(#901): ability to lock seed in templates editor 2022-12-10 19:55:23 +03:00
Azgaar
4a96c24cf3 feat: heightmap brushes - linear edit option (1.88.00) 2022-10-31 00:24:54 +03:00
Azgaar
2bbff50b60 fix: image conversion UI, restrict namebase chars 2022-09-17 14:36:32 +03:00
Azgaar
662163176b heightmap selection - refactor, make generation immutable to get predictable result 2022-05-29 22:11:32 +03:00
Azgaar
4f372c7a46 height generation - ability to pass cells number 2022-05-29 14:33:07 +03:00
Azgaar
5a6b5b4c95 central store for heightmap configs 2022-05-29 01:03:21 +03:00
Azgaar
f3a755976a heightmap select - open edit tools 2022-05-28 21:22:28 +03:00
Azgaar
f56bd0f586 heightmap select - style fixes 2022-05-27 02:22:25 +03:00
Azgaar
ff31e23a27 heightmap - fix issues 2022-05-24 23:27:06 +03:00
Azgaar
27a045b709 draw images from heightmap 2022-05-24 00:55:03 +03:00
Azgaar
2713f6bfda inversion tool 2022-05-21 22:43:06 +03:00
Azgaar
a16e609696 Fractious template 2022-05-21 19:46:42 +03:00
Azgaar
cf92a65ea1 heightmap editor - insulate feature 2022-05-21 01:50:12 +03:00
Azgaar
1573fad58d annotate template strings for syntax hightlight and format 2022-05-08 19:22:15 +03:00
juacom99
e1b0688615
Fix Height Map preview download image size (#746) 2022-02-21 23:32:06 +03:00
Azgaar
7f13f1c367 predefined-heightmaps 2022-02-19 19:29:05 +03:00
Azgaar
b438fedf9a remove advanced tracking 2021-10-13 11:09:04 +03:00
Azgaar
bdc0c9f8ee minmax util function 2021-10-10 17:59:27 +03:00
Azgaar
5d714c8c17 collect statistics for a short period 2021-09-24 01:00:03 +03:00
Azgaar
acd9cfdd69 move markers into a separate module 2021-09-11 21:18:08 +03:00
Azgaar
41c1b45b6b menu style - grid layout 2021-09-10 00:22:07 +03:00
Azgaar
c783301de9 dropbox - import changes from alpha 2021-09-01 21:33:49 +03:00
Azgaar
46838a1702 hightmap edit - fix mod function 2021-08-31 23:52:08 +03:00
Azgaar
abcdc0b660 risk mode - get correct biome 2021-08-21 21:35:07 +03:00
Azgaar
a17457ae35 template editor - use the same template source as generator 2021-07-31 14:49:36 +03:00
Azgaar
dc10a0b6cb refactor heightmap generator - separate templates to file 2021-07-29 23:50:01 +03:00
Azgaar
dbcf46f83b separete rivere rendering from generation 2021-07-24 18:42:10 +03:00
Azgaar
985e3c43f9 throttle work done on zoom and brush drag 2021-07-12 23:20:34 +03:00
Azgaar
e7b354e217 throttle work done on zoom 2021-07-12 22:08:17 +03:00
Azgaar
e3da664e56 template editor: allow single value 2021-06-13 16:42:47 +03:00
Azgaar
a95f1f1187 erosion fix 2021-06-12 20:04:12 +03:00
Azgaar
c8c1c24909 addLakesInDeepDepressions 2021-06-06 20:25:36 +03:00
Azgaar
67235bc41e make depressions resolve elevation change not that big 2021-06-06 01:29:58 +03:00
Azgaar
00189f2185 getSignedDistanceField 2021-03-14 14:32:21 +03:00
Azgaar
124c7f3448 v1.5.87 - lakes editor rework 2021-03-02 03:28:08 +03:00
Azgaar
5f5a67d436 v1.5.86 - separate lakes object 2021-03-01 23:24:36 +03:00
Azgaar
07f0eff52c v1.5.76 - major river-lake redesign 2021-02-28 13:32:04 +03:00