Example #1
0
 def hide(self):
     super().hide()
     for prop in self.properties.widgets():
         prop.hide()
     if len(self.systems) or len(self.stars_area):
         for s in self.systems + self.stars_area.objects():
             Systems.set_system(s)
Example #2
0
 def hide(self):
     super().hide()
     for obj in self.properties.widgets():
         obj.hide()
     if self.add_on_exit:
         self.parent.set_skippable('Star System', True)
         Systems.set_system(self.current.current)
     else:
         self.parent.set_skippable('Star System', False)
Example #3
0
    def load_systems(self, event):
        for system_data in event.data.get('Systems', []):
            avg_s = system_data['avg_s']
            ecc_p = system_data['ecc_p']
            ecc_s = system_data['ecc_s']
            prim = Systems.get_star_by_id(system_data['primary'])
            scnd = Systems.get_star_by_id(system_data['secondary'])
            idx = system_data['id']

            system = system_type(avg_s)(prim,
                                        scnd,
                                        avg_s,
                                        ecc_p,
                                        ecc_s,
                                        id=idx)
            button = self.create_button(system)
            button.hide()
            Systems.set_system(system)