Ejemplo n.º 1
0
    def on_accept_changes(self, windowed_resolution, display_fps,
                          fade_animations_enabled, clock_24h_enabled,
                          level_up_notification_enabled,
                          feature_unlocked_notification_enabled,
                          construction_completed_notification_enabled,
                          enough_money_notification_enabled,
                          bonus_expired_notification_enabled,
                          shop_storage_notification_enabled,
                          voice_not_found_notification_enabled, master_volume,
                          announcements_enabled):
        self.settings.on_accept_changes(
            windowed_resolution, display_fps, fade_animations_enabled,
            clock_24h_enabled, level_up_notification_enabled,
            feature_unlocked_notification_enabled,
            construction_completed_notification_enabled,
            enough_money_notification_enabled,
            bonus_expired_notification_enabled,
            shop_storage_notification_enabled,
            voice_not_found_notification_enabled, master_volume,
            announcements_enabled)
        self.on_update_fade_animation_state(fade_animations_enabled)
        self.on_update_clock_state(clock_24h_enabled)
        self.on_change_level_up_notification_state(
            level_up_notification_enabled)
        self.on_change_feature_unlocked_notification_state(
            feature_unlocked_notification_enabled)
        self.on_change_construction_completed_notification_state(
            construction_completed_notification_enabled)
        self.on_change_enough_money_notification_state(
            enough_money_notification_enabled)
        self.on_change_bonus_expired_notification_state(
            bonus_expired_notification_enabled)
        self.on_change_shop_storage_notification_state(
            shop_storage_notification_enabled)
        self.on_change_voice_not_found_notification_state(
            voice_not_found_notification_enabled)
        self.on_master_volume_update(master_volume)
        self.on_update_announcements_state(announcements_enabled)
        if not WINDOW.fullscreen:
            WINDOW.set_size(*windowed_resolution)

        if display_fps:
            self.view.fps_display.on_activate()
        else:
            self.view.fps_display.on_deactivate()
Ejemplo n.º 2
0
 def on_fullscreen_button_click(self):
     WINDOW.set_size(*self.model.fullscreen_resolution)
     if self.model.fullscreen_mode_available:
         self.on_fullscreen_mode_turned_on()
Ejemplo n.º 3
0
 def on_restore_button_click(self):
     self.on_fullscreen_mode_turned_off()
     WINDOW.set_size(*self.settings.model.windowed_resolution)