Page 1 of 1

Fire and police composition

Posted: 29 Apr 2019, 22:08
by CommanderABab

Code: Select all

[{
  "id":"$ab.firepolicecompo",
  "text":"build a fire and police station with surrounding roads",
  "title":"Fire and Police setdown",
  "type":"park",
  "width":6,"height":4,
  "composition":[
    {"y0":0,"y1":0,"x0":0,"id":"$road01","x1":5},
    {"y0":0,"y1":3,"x0":0,"id":"$road01","x1":0},
    {"frame":0,"y":1,"id":"$firedepartment00","x":1},
    {"frame":0,"y":1,"id":"$police00","x":3},
    {"y0":1,"y1":3,"x0":5,"id":"$road01","x1":5},
    {"y0":3,"y1":3,"x0":1,"id":"$road01","x1":5}
  ]
}]
Picture forthcoming.
Menu
Menu
Screenshot_20190429-160017.jpg (28.46 KiB) Viewed 8257 times
Where I got it from
Where I got it from
Hmmm..
Hmmm..
Build dialog
Build dialog
The rotated hmmmm..
The rotated hmmmm..

Re: Fire and police composition

Posted: 29 Apr 2019, 22:42
by CommanderABab

Code: Select all

[{
  "id":"$ab.firepolicecompo",
  "text":"build a fire and police station with surrounding roads",
  "title":"Fire and Police setdown",
  "type":"park",
  "width":6,"height":4,
  "composition":[
    {"y0":0,"y1":0,"x0":0,"id":"$road01","x1":5},
    {"y0":0,"y1":3,"x0":0,"id":"$road01","x1":0},
    {"frame":0,"y":1,"id":"$firedepartment00","x":1},
    {"frame":0,"y":1,"id":"$police00","x":3},
    {"y0":0,"y1":3,"x0":5,"id":"$road01","x1":5},
    {"y0":3,"y1":3,"x0":0,"id":"$road01","x1":5}
  ]
}]
Yes, this one works better for those that don't keep autojoin turned on.
Screenshot_20190429-171226.jpg
fireandpolicecompo.zip
Here is a zip file of the json. Also an experimental composition of the composition. :)
(601 Bytes) Downloaded 521 times

Re: Fire and police composition

Posted: 30 Apr 2019, 08:56
by BetterBear
Ah, I see you making use of the new feature. :)

Re: Fire and police composition

Posted: 30 Apr 2019, 17:47
by CommanderABab
Yes. The thing to remember is that some adjustments need to be made. :)

Re: Fire and police composition

Posted: 30 Apr 2019, 20:10
by Imran M
Who said buildings can't be rectangles?

Re: Fire and police composition

Posted: 30 Apr 2019, 20:29
by -LeoLeo-
*Gasps*

*Faints*

Re: Fire and police composition

Posted: 01 May 2019, 21:20
by CommanderABab

Re: Fire and police composition

Posted: 03 May 2019, 15:10
by -LeoLeo-
What does "y0/y1/x0/x1" do??

Is that the x/y coordinate for the 2 orientation?

Re: Fire and police composition

Posted: 03 May 2019, 17:49
by Lobby
Yes, in order to specify a line we have to provide a start point (x0, y0) and an end point (x1, y1) :img
line.png

Re: Fire and police composition

Posted: 03 May 2019, 21:34
by CommanderABab
Screenshot of screenshot.  :)
Screenshot of screenshot. :)