@@ -83,34 +83,95 @@ CayoPericoNightclub = {
8383 },
8484
8585 Lights = {
86- droplets01 = " dj_01_lights_01" ,
87- droplets02 = " dj_02_lights_01" ,
88- droplets03 = " dj_03_lights_01" ,
89- droplets04 = " dj_04_lights_01" ,
90- neons01 = " dj_01_lights_02" ,
91- neons02 = " dj_02_lights_02" ,
92- neons03 = " dj_03_lights_02" ,
93- neons04 = " dj_04_lights_02" ,
94- bands01 = " dj_01_lights_03" ,
95- bands02 = " dj_02_lights_03" ,
96- bands03 = " dj_03_lights_03" ,
97- bands04 = " dj_04_lights_03" ,
98- lasers01 = " dj_01_lights_04" ,
99- lasers02 = " dj_02_lights_04" ,
100- lasers03 = " dj_03_lights_04" ,
101- lasers04 = " dj_04_lights_04" ,
86+ Droplets = {
87+ style01 = " dj_01_lights_01" ,
88+ style02 = " dj_02_lights_01" ,
89+ style03 = " dj_03_lights_01" ,
90+ style04 = " dj_04_lights_01" ,
91+
92+ Set = function (lights , refresh )
93+ CayoPericoNightclub .Lights .Droplets .Clear (false )
94+
95+ SetIplPropState (CayoPericoNightclub .interiorId , lights , true , refresh )
96+ end ,
97+ Clear = function (refresh )
98+ SetIplPropState (CayoPericoNightclub .interiorId , {
99+ CayoPericoNightclub .Lights .Droplets .style01 ,
100+ CayoPericoNightclub .Lights .Droplets .style02 ,
101+ CayoPericoNightclub .Lights .Droplets .style03 ,
102+ CayoPericoNightclub .Lights .Droplets .style04
103+ }, false , refresh )
104+ end
105+ },
102106
103- Set = function (style , refresh )
104- CayoPericoNightclub .Lights .Clear (false )
107+ Neons = {
108+ style01 = " dj_01_lights_02" ,
109+ style02 = " dj_02_lights_02" ,
110+ style03 = " dj_03_lights_02" ,
111+ style04 = " dj_04_lights_02" ,
112+
113+ Set = function (lights , refresh )
114+ CayoPericoNightclub .Lights .Neons .Clear (false )
115+
116+ SetIplPropState (CayoPericoNightclub .interiorId , lights , true , refresh )
117+ end ,
118+ Clear = function (refresh )
119+ SetIplPropState (CayoPericoNightclub .interiorId , {
120+ CayoPericoNightclub .Lights .Neons .style01 ,
121+ CayoPericoNightclub .Lights .Neons .style02 ,
122+ CayoPericoNightclub .Lights .Neons .style03 ,
123+ CayoPericoNightclub .Lights .Neons .style04
124+ }, false , refresh )
125+ end
126+ },
105127
106- SetIplPropState (CayoPericoNightclub .interiorId , style , true , refresh )
107- end ,
108- Clear = function (refresh )
109- for key , value in pairs (CayoPericoNightclub .Lights ) do
110- if type (value ) == " string" then
111- SetIplPropState (CayoPericoNightclub .interiorId , value , false , refresh )
112- end
128+ Bands = {
129+ style01 = " dj_01_lights_03" ,
130+ style02 = " dj_02_lights_03" ,
131+ style03 = " dj_03_lights_03" ,
132+ style04 = " dj_04_lights_03" ,
133+
134+ Set = function (lights , refresh )
135+ CayoPericoNightclub .Lights .Bands .Clear (false )
136+
137+ SetIplPropState (CayoPericoNightclub .interiorId , lights , true , refresh )
138+ end ,
139+ Clear = function (refresh )
140+ SetIplPropState (CayoPericoNightclub .interiorId , {
141+ CayoPericoNightclub .Lights .Bands .style01 ,
142+ CayoPericoNightclub .Lights .Bands .style02 ,
143+ CayoPericoNightclub .Lights .Bands .style03 ,
144+ CayoPericoNightclub .Lights .Bands .style04
145+ }, false , refresh )
146+ end
147+ },
148+
149+ Lasers = {
150+ style01 = " dj_01_lights_04" ,
151+ style02 = " dj_02_lights_04" ,
152+ style03 = " dj_03_lights_04" ,
153+ style04 = " dj_04_lights_04" ,
154+
155+ Set = function (lights , refresh )
156+ CayoPericoNightclub .Lights .Lasers .Clear (false )
157+
158+ SetIplPropState (CayoPericoNightclub .interiorId , lights , true , refresh )
159+ end ,
160+ Clear = function (refresh )
161+ SetIplPropState (CayoPericoNightclub .interiorId , {
162+ CayoPericoNightclub .Lights .Lasers .style01 ,
163+ CayoPericoNightclub .Lights .Lasers .style02 ,
164+ CayoPericoNightclub .Lights .Lasers .style03 ,
165+ CayoPericoNightclub .Lights .Lasers .style04
166+ }, false , refresh )
113167 end
168+ },
169+
170+ Clear = function (refresh )
171+ CayoPericoNightclub .Lights .Droplets .Clear (refresh )
172+ CayoPericoNightclub .Lights .Neons .Clear (refresh )
173+ CayoPericoNightclub .Lights .Bands .Clear (refresh )
174+ CayoPericoNightclub .Lights .Lasers .Clear (refresh )
114175 end
115176 },
116177
@@ -121,7 +182,7 @@ CayoPericoNightclub = {
121182 CayoPericoNightclub .Turntables .Set (CayoPericoNightclub .Turntables .style01 , false )
122183 CayoPericoNightclub .Bar .Enable (true , false )
123184 CayoPericoNightclub .Screen .Enable (CayoPericoNightclub .Screen .front , true , false )
124- CayoPericoNightclub .Lights .Set (CayoPericoNightclub .Lights .neons01 , false )
185+ CayoPericoNightclub .Lights .Lasers . Set (CayoPericoNightclub .Lights .Lasers . style04 , false )
125186
126187 RefreshInterior (CayoPericoNightclub .interiorId )
127188 end
0 commit comments