#NEWLINE# def setup( self , all_sprites ) : #NEWLINE# #INDENT# all_sprites . add ( LcarsBackgroundImage ( 'assets/lcars_screen_1b.png' ) , layer = 0 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLACK , ( 11 , 52 ) , 'LCARS 105' ) , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . ORANGE , ( 0 , 135 ) , 'HOME AUTOMATION' , 2 ) , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLACK , ( 183 , 74 ) , 'LIGHTS' ) , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLACK , ( 222 , 57 ) , 'CAMERAS' ) , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLACK , ( 372 , 70 ) , 'ENERGY' ) , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLACK , ( 444 , 612 ) , '192 168 0 3' ) , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . WHITE , ( 192 , 174 ) , 'EVENT LOG:' , 1.5 ) , layer = 3 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLUE , ( 244 , 174 ) , '2 ALARM ZONES TRIGGERED' , 1.5 ) , layer = 3 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLUE , ( 286 , 174 ) , '14.3 kWh USED YESTERDAY' , 1.5 ) , layer = 3 ) #NEWLINE# all_sprites . add ( LcarsText ( colours . BLUE , ( 330 , 174 ) , '1.3 Tb DATA USED THIS MONTH' , 1.5 ) , layer = 3 ) #NEWLINE# self . info_text = all_sprites . get_sprites_from_layer ( 3 ) #NEWLINE# self . stardate = LcarsText ( colours . BLUE , ( 12 , 380 ) , 'STAR DATE 2711.05 17:54:32' , 1.5 ) #NEWLINE# self . lastClockUpdate = 0 #NEWLINE# all_sprites . add ( self . stardate , layer = 1 ) #NEWLINE# all_sprites . add ( LcarsButton ( colours . RED_BROWN , ( 6 , 662 ) , 'LOGOUT' , all_sprites . logoutHandler ) , layer = 4 ) #NEWLINE# all_sprites . add ( LcarsButton ( colours . BEIGE , ( 107 , 127 ) , 'SENSORS' , self . sensorsHandler ) , layer = 4 ) #NEWLINE# all_sprites . add ( LcarsButton ( colours . PURPLE , ( 107 , 262 ) , 'GAUGES' , self . gaugesHandler ) , layer = 4 ) #NEWLINE# all_sprites . add ( LcarsButton ( colours . PEACH , ( 107 , 398 ) , 'WEATHER' , self . weatherHandler ) , layer = 4 ) #NEWLINE# all_sprites . add ( LcarsGifImage ( 'assets/gadgets/fwscan.gif' , ( 277 , 556 ) , 100 ) , layer = 1 ) #NEWLINE# self . sensor_gadget = LcarsGifImage ( 'assets/gadgets/lcars_anim2.gif' , ( 235 , 150 ) , 100 ) #NEWLINE# self . sensor_gadget . visible = False #NEWLINE# all_sprites . add ( self . sensor_gadget , layer = 2 ) #NEWLINE# self . dashboard = LcarsImage ( 'assets/gadgets/dashboard.png' , ( 187 , 232 ) ) #NEWLINE# self . dashboard . visible = False #NEWLINE# all_sprites . add ( self . dashboard , layer = 2 ) #NEWLINE# self . weather = LcarsImage ( 'assets/weather.jpg' , ( 188 , 122 ) ) #NEWLINE# self . weather . visible = False #NEWLINE# all_sprites . add ( self . weather , layer = 2 ) #NEWLINE# self . beep1 = Sound ( 'assets/audio/panel/201.wav' ) #NEWLINE# Sound ( 'assets/audio/panel/220.wav' ) . play ( )