OSDN Git Service

Added RunState elevator parameter
[skyscrapersim/skyscraper.git] / buildings / Skylab_impl.bld
1 # $Id$
2         
3 <Globals>
4     Name = Skylab
5     Designer = Ryan Thoryk
6     CameraFloor = 0
7     CameraPosition = 0, -14.43
8     CameraRotation = 0, 0, 0
9     Sky = noon
10     Bounds = -75, 0, -75, 75, 100, 75
11     Position = 0, 1000, 0
12 <EndGlobals>
13
14 <Textures>
15     Load data/brick1.jpg, Brick, 0.269, 0.25
16     Load data/windows11h.jpg, MainWindows, 0.05, 1
17     Load data/windows11h_inside.gif, MainWindowsInt, 0.05, 1
18     Load data/Carpet0013_S.jpg, Carpet1, 0.2, 0.2
19     Load data/text13.jpg, Stairs, 0.269, 0.25
20     Load data/cinderblocks.jpg, Concrete, 0.25, 0.25
21     Load data/cinderblocks.jpg, StairsWall, 0.25, 1
22     Load data/cutston.jpg, InterExt, 0.269, 0.25
23     Load data/downtown.jpg, Downtown, 1, 1
24     Load data/cutston.jpg, Ceiling1, 0.269, 0.25
25     Load data/metal1.jpg, ElevExt, 0.25, 0.25
26     Load data/door1.jpg, ElevDoors, 1, 1
27     Load data/door1.jpg, ElevDoors2, -1, 1
28     Load data/panel-back2.jpg, ElevExtPanels, 1, 1
29     Load data/marb148.jpg, ElevPanel, 1, 1
30     Load data/diamond18j.jpg, ElevWall, 1, 1
31     Load data/diamond18j.jpg, ElevPanelMain, 1, 1
32     Load data/elev1.jpg, ElevCeiling, 0.25, 0.25
33     Load data/Carpet0006_S.jpg, ElevFloor, 0.25, 0.25
34     Load data/callbutton.gif, ButtonUp, 1, 1
35     Load data/callbutton_lit.gif, ButtonUpLit, 1, 1
36     Load data/callbutton.gif, ButtonDown, 1, -1
37     Load data/callbutton_lit.gif, ButtonDownLit, 1, -1
38     Load data/marbl3.jpg, Wall1, 0.269, 0.25
39     Load data/servicedoor2.jpg, StairsDoor, 1, 1
40     Load data/darrow_unlit.gif, ArrowUp, 1, 1
41     Load data/darrow_unlit.gif, ArrowDown, 1, -1
42     Load data/darrow_lit.gif, ArrowUp_Lit, 1, 1
43     Load data/darrow_lit.gif, ArrowDown_Lit, 1, -1
44     Load data/fire2keyoff.png, Fire2Off, 1, 1
45     Load data/fire2keyon.png, Fire2On, 1, 1
46     Load data/fire2keyhold.png, Fire2Hold, 1, 1
47     Load data/fire1keyoff.png, Fire1Off, 1, 1
48     Load data/fire1keyon.png, Fire1On, 1, 1
49     Load data/fire1keybypass.png, Fire1Bypass, 1, 1
50     Load data/runkey.png, RunKey, 1, 1
51     Load data/stopkey.png, StopKey, 1, 1
52     Load data/indservkeyon.png, IndOn, 1, 1
53     Load data/indservkeyoff.png, IndOff, 1, 1
54
55     Load data/black.jpg, Black, 1, 1
56     Load data/black_lit.jpg, BlackLit, 1, 1
57     AddText Black, ButtonOpen, nimbus_sans.ttf, 28, Open, -1, -1, -1, -1, center, center, 255, 255, 255
58     AddText Black, ButtonClose, nimbus_sans.ttf, 28, Close, -1, -1, -1, -1, center, center, 255, 255, 255
59     AddText Black, ButtonAlarm, nimbus_sans.ttf, 28, Alarm, -1, -1, -1, -1, center, center, 255, 255, 255
60     AddText Black, ButtonCancelTemp, nimbus_sans.ttf, 28, Call, -1, 30, -1, 54, center, center, 255, 255, 255
61     AddText ButtonCancelTemp, ButtonCancel, nimbus_sans.ttf, 28, Cancel, -1, 71, -1, 95, center, center, 255, 255, 255
62     AddTextRange 1, 10, Black, Button%number%, nimbus_sans.ttf, 47, %number%, -1, -1, -1, -1, center, center, 255, 255, 255
63     AddTextRange 1, 10, BlackLit, ButtonLit%number%, nimbus_sans.ttf, 47, %number%, -1, -1, -1, -1, center, center, 255, 255, 255
64 <EndTextures>
65
66 <Floor 0>
67     ID = %floor% + 1
68     Name = Floor (%floor% + 1)
69     Type = Office
70     Height = 10
71     InterfloorHeight = 2.24
72     if[%floor% = 0] Altitude = -%interfloorheight%
73
74     #create a basic carpeted floor
75     DrawWalls = false, true, false, false, false, false
76     AddFloor Floor, Carpet1, 0.5, -20, -20, 20, 20, 0, 0, false, false, 0, 0, False
77
78     #create a ceiling
79     DrawWalls = true, false, false, false, false, false
80     AddFloor Ceiling, Ceiling1, 0.5, -20, -20, 20, 20, %height% - 0.05, %height% - 0.05, false, false, 0, 0, False
81
82     #External windows - this creates the outside versions of the windows, and also the walls outside the
83     #interfloor areas
84     SetAutoSize = true, false
85     DrawWalls = true, false, false, false, false, false
86     if[%floor% ! 0] AddWall Front, MainWindows, 0, -20, -20, 20, -20, %height%, %height%, %interfloorheight%, %interfloorheight%, 0, 0, True
87     if[%floor% = 0] AddWall Front, MainWindows, 0, -15, -20, 20, -20, %height%, %height%, %interfloorheight%, %interfloorheight%, 0, 0, True
88     AddWall Left, MainWindows, 0, -20, 20, -20, -20, %height%, %height%, %interfloorheight%, %interfloorheight%, 0, 0, True
89     if[%floor% ! 0] AddWall Front, InterExt, 0, -20, -20, 20, -20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0, True
90     if[%floor% ! 0] AddWall Left, InterExt, 0, -20, 20, -20, -20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0, True
91     DrawWalls = false, true, false, false, false, false
92     AddWall Right, MainWindows, 0, 20, -20, 20, 20, %height%, %height%, %interfloorheight%, %interfloorheight%, 0, 0, True
93     AddWall Back, MainWindows, 0, 20, 20, -20, 20, %height%, %height%, %interfloorheight%, %interfloorheight%, 0, 0, True
94     if[%floor% ! 0] AddWall Right, InterExt, 0, 20, -20, 20, 20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0, True
95     if[%floor% ! 0] AddWall Back, InterExt, 0, 20, 20, -20, 20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0, True
96     SetAutoSize = true, true
97
98     #Internal windows - this creates the transparent windows on the inside of each floor
99     SetAutoSize = true, false
100     DrawWalls = false, true, false, false, false, false
101     if[%floor% = 0] AddWall Front, MainWindowsInt, 0, -15, -20, 20, -20, %height%, %height%, 0, 0, 0, 0, False
102     if[%floor% ! 0] AddWall Front, MainWindowsInt, 0, -20, -20, 20, -20, %height%, %height%, 0, 0, 0, 0, False
103     AddWall Left, MainWindowsInt, 0, -20, 20, -20, -20, %height%, %height%, 0, 0, 0, 0, False
104     DrawWalls = true, false, false, false, false, false
105     AddWall Right, MainWindowsInt, 0, 20, -20, 20, 20, %height%, %height%, 0, 0, 0, 0, False
106     AddWall Back, MainWindowsInt, 0, 20, 20, -20, 20, %height%, %height%, 0, 0, 0, 0, False
107     SetAutoSize = true, true
108
109     #Interfloor bottom
110     FloorOrientation = bottom
111     DrawWalls = false, true, false, false, false, false
112     AddInterfloorFloor IFloor, Brick, 0.5, -20, -20, 20, 20, 0, 0, false, false, 0, 0
113
114     #Interfloor top
115     FloorOrientation = top
116
117     DrawWalls = true, false, false, false, false, false
118     AddInterfloorFloor ITop, Brick, 0.5, -20, -20, 20, 20, %interfloorheight% - 0.05, %interfloorheight% - 0.05, false, false, 0, 0
119
120     #Interfloor walls
121     WallOrientation = left
122     DrawWalls = false, true, false, false, false, false
123     AddInterfloorWall IFront, Brick, 0.5, -20, -20, 20, -20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0
124     AddInterfloorWall ILeft, Brick, 0.5, -20, 20, -20, -20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0
125     WallOrientation = right
126     DrawWalls = true, false, false, false, false, false
127     AddInterfloorWall IRight, Brick, 0.5, 20, -20, 20, 20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0
128     AddInterfloorWall IBack, Brick, 0.5, 20, 20, -20, 20, %interfloorheight%, %interfloorheight%, 0, 0, 0, 0
129     
130     DrawWalls = true, true, false, false, false, false
131 <EndFloor>
132
133 #Finally create the roof (11th floor), and add a square brick floor on it.
134 <Floor 1>
135     ID = R
136     Name = Roof
137     Type = Roof
138     Height = 10
139     InterfloorHeight = 2.24
140     DrawWalls = false, true, false, false, false, false
141     AddFloor Roof, Brick, 0.5, -20, -20, 20, 20, 0, 0, false, false, 0, 0, True #roof
142     DrawWalls = true, true, false, false, false, false
143 <EndFloor>
144