Commit graph

108 commits

Author SHA1 Message Date
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
d1c09935a9 fix: regenerate burgs - remove burg notes, keep locked notes 2024-06-14 13:09:43 +02:00
Azgaar
ec5e44b94a fix: #1051 2024-03-04 19:04:27 +01:00
Azgaar
da5c0e9493 fix: #1024, regenerate burgs - ignore removed states 2023-12-05 02:24:36 +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
Elad Bernard Haviv
e542574324
Added randomly generated marker placement (#966)
* Add option to generate and place marker of type

* remove unecessary console.log

* versioning

* Update versioning.js

* Update index.html

* removed redundant functions and changed addMarker functionality

* changed marker type selection behavior

* fixed button toggling

* changed type selection to button + dropdown menu

* versioning
2023-08-05 13:32:28 +04:00
Azgaar
3f25484367 fix: states regeneration when some states are locked 2023-06-23 11:58:56 +04:00
Azgaar
c74d38ea2f feat: download chart data in csv 2023-05-28 14:55:26 +04:00
Azgaar
d48f9b3cab fix(add river): get id as the biggest id + 1, not the last id + 1 2023-03-26 14:24:46 +04:00
Azgaar
8a1122e668 fix: remove label path of regeneration 2023-01-22 14:18:59 +04:00
Azgaar
dada419f20
Add the ability to lock states, provinces, cultures, and religions: refactoring (#910)
* Add the ability to lock states, provinces, cultures, and religions (#902)

* Add the basis for locking everything, code and test the culture locking

* Got the religion generator working, but not the tree. There are cycles being generated

* Religions work now, including the tree view

* Got the states and provinces working as well, all good and ready

* Refresh the province editor when regenerating

* Implement the versioning steps

* Fix the state naming and color changing even when locked

* The fix did not work with loaded maps, fix that too

* Fix a few more bugs and address the PR feedback

* Fix the state expanding event when they're locked bug

* Implement some logic to ignore state being locked when regenerating provinces directly.

* refactor(#902): start with states regenertion

* refactor(#902): locked states cells to be assigned on start

* refactor(#902): lock state - keep label

* refactor(#902): lock provinces

* refactor(#902): regenerate states - update provinces

* refactor(#902): regenerate cultures

* refactor(#902): regenerate religions

Co-authored-by: Guillaume St-Pierre <gstpierre01@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.com>
2023-01-08 03:38:52 -08:00
Azgaar
3883933385 fix(#905): make sure burg0 is not getting locked [v.1.88.05] 2022-12-15 15:43:40 +03:00
Azgaar
1ad0b9dd51 fix: charts dialog to be stable 2022-06-24 17:47:35 +03:00
Azgaar
6cd2419f10 feat(charts): remove on dialog close 2022-06-24 15:51:10 +03:00
Azgaar
be5589daeb feat(charts): add basic data collection and rendering 2022-06-15 02:47:32 +03:00
Azgaar
4f4729c866 fix: bypass issue if burg has no states assigned 2022-06-12 15:45:07 +03:00
Azgaar
1967dfe661 hotfix: check if states are loaded before refreshing 2022-06-01 02:31:30 +03:00
Azgaar
6766de46ef generation flow for heightmap select 2022-05-26 00:19:32 +03:00
Azgaar
6a6264e21c installation module 2022-05-13 22:37:34 +03:00
Azgaar
e2e4f6dee2 get rid of jquery for don't ask box 2022-05-13 20:29:16 +03:00
Azgaar
1573fad58d annotate template strings for syntax hightlight and format 2022-05-08 19:22:15 +03:00
Azgaar
e6dfab48c2
V1.8 (#784)
* pump version to 1.8

* resampleDialog UI update

* don't draw markers if not required

* submapOptionsDialog style changes
2022-04-26 22:48:17 +03:00
Basile Clement
edfcad4e8c
Generate a legend for manually added markers (#753)
Markers added by procedural generation have custom notes depending on
the type of marker (e.g. dungeons have a procedurally generated map);
however, the notes for markers manually added by the user are empty.

This patch separates the cell selection logic from the legend and name
generation logic in markers-generator.js, so that the latter can be
shared with manually added markers.  There is some additional
simplifications such as storing the dx/dy/px/min/each values directly in
the markers table to simplify the writing of the generic "list and add"
loop in `generateTypes()`.

Currently, the legend is only generated when adding a marker of the same
type as an existing marker, and only when a legend generation function
is available for that type.  To generate a marker of a type that is not
currently present on the map, one must first change the type field of an
existing marker (which will not get a procedural note), then use "Add
additional marker of that type".  The UI for this can be improved later.

Co-authored-by: Basile Clement <basile-github@clement.pm>
2022-03-07 22:29:08 +03:00
Azgaar
214bc7a40d allow more states via number input 2022-01-16 19:37:16 +03:00
Azgaar
604dcfacf6 normalize prec, flux and river width 2021-12-30 18:49:36 +03:00
Azgaar
6ad2f34639 configMarkers - edit icons relative parent 2021-12-23 14:23:31 +03:00
Azgaar
19a8db4a17 disallow adding custom labels to state group 2021-11-30 21:47:22 +03:00
Azgaar
9325d54386 markers - fix for adding markers to empty array 2021-11-11 12:33:52 +03:00
dranorter
9116d03e76
Placed labels use most recent label group (#673) 2021-10-09 13:44:12 +03:00
Azgaar
03b5e1d84c markers overview 2021-09-27 01:07:36 +03:00
Azgaar
d2e9e007f7 config generate markers dialog fixes 2021-09-26 18:04:53 +03:00
Azgaar
0c0e37d69b config generate markers dialog 2021-09-26 13:01:11 +03:00
Azgaar
60057c52ed markers - generate from config file 2021-09-25 21:49:34 +03:00
Azgaar
2587a1643b markers - add on click 2021-09-25 17:24:40 +03:00
Azgaar
2a9edd2458 markers - generate tool + lock tooltip 2021-09-23 21:07:03 +03:00
Azgaar
95f9d990d9 markers rework - editor functions 2021-09-20 02:29:50 +03:00
Azgaar
1023bb0676 markers rework - optional pin shapes 2021-09-19 02:13:40 +03:00
Azgaar
3b47efd9a4 markers data rework - master data object 2021-09-18 16:47:17 +03:00
Azgaar
fb8a79e7b6 markers - fix number 2021-09-13 00:27:51 +03:00
Azgaar
acd9cfdd69 move markers into a separate module 2021-09-11 21:18:08 +03:00
Azgaar
fe330ede3a
Fonts refactoring and Add Font dialog (#660)
* fonts rework - start

* fonts rework - continue

* fonts rework - fetch google font

* fonts rework - issue fixes

* fonts rework - add fonts to downloaded image

* fonts rework - add methods dialog

* fonts rework - add methods description

* fonts update - move version to 1.661

* fonts - remove unused file
2021-09-09 00:12:45 +03:00
Azgaar
e42bc58bd1 fix states regen count 2021-09-01 00:46:57 +03:00
Gergely Mészáros
288036c113
Fix: flux calculation from area-propotional value instead of normal value. (#654)
* bioms shouldn't be masked or the style selection box is useless

* fix: misleading comment

* Fix: calculating absolute flux from precipitation normal-value.

* Fix: River automatic rerender on regeneration.

Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
2021-08-15 12:43:20 +03:00
Azgaar
078b83633f fix: add rivers when rivers array is empty 2021-08-01 13:31:54 +03:00
Azgaar
8bbfe6dd2c rivers creator dialog 2021-07-25 17:40:14 +03:00
Azgaar
424980f5be fix added river basin selection 2021-07-24 19:05:17 +03:00
Azgaar
dbcf46f83b separete rivere rendering from generation 2021-07-24 18:42:10 +03:00
Azgaar
d9d349f3a1 delete rendered rivers on layer off 2021-07-23 23:46:00 +03:00
Azgaar
d5b2e7ed14 add river on click fix 2021-07-23 21:52:06 +03:00
Azgaar
4902a321ea river type - memoize what is small size for river 2021-07-23 20:48:38 +03:00