Enable/disable water for map generation

For Decorations and areal map layout tools.

Moderator: Plugin Moderators

Jeremiah Stephens
Inhabitant of a Megacity
Reactions:
Posts: 191
Joined: Thu Jan 30, 2020 16:56
Plugins: Show

Platform

Plugin Creator

Enable/disable water for map generation

#1

Post by Jeremiah Stephens »

Due to game limitations the preview will not update when the button is clicked but still removes water after city generation when the button is pressed (according to isPressed() lua function)
Screenshot_20210412-195858_TheoTown.png
wtr.plugin
This version fixes a bug caused in >= 1.9.83
Delete the old file before you download this one.
(1.2 KiB) Downloaded 17 times
Last edited by Jeremiah Stephens on Sun Apr 18, 2021 17:37, edited 1 time in total.
Check out my TheoTown YouTube videos: https://www.youtube.com/playlist?list=P ... wCvFdgyiTk

Code: Select all

c = 0
if TheoTown.addUndoButton != None:
     TheoTown.addUndoButton()
     c += 1
else:
     c -= 1
print(c)
http://discord.gg/hA5EVazhCC

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5416
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Enable/disable water for map generation

#2

Post by Bearbear76 »

So I guess this replaces every water tile with and land tile correct?
Just my opinion
I'm probably recompiling my kernel... :o

Post Reply Previous topicNext topic

Return to “Decorations and Tools”