def _build_prefs_tab(self): prefs_box = VBox() prefs_box.pack_start(self._get_game_cache_box(), False, False, 6) cache_help_label = Gtk.Label(visible=True) cache_help_label.set_size_request(400, -1) cache_help_label.set_markup( "If provided, this location will be used by installers to cache " "downloaded files locally for future re-use. \nIf left empty, the " "installer files are discarded after the install completion.") prefs_box.pack_start(cache_help_label, False, False, 6) info_sw = self.build_scrolled_window(prefs_box) self._add_notebook_tab(info_sw, "Lutris preferences")
def _build_prefs_tab(self): prefs_box = VBox() settings_options = { "hide_client_on_game_start": _("Minimize client when a game is launched"), "hide_text_under_icons": _("Hide text under icons"), "show_tray_icon": _("Show Tray Icon"), } for setting_key, label in settings_options.items(): prefs_box.pack_start(self._get_setting_box(setting_key, label), False, False, 6) info_sw = self.build_scrolled_window(prefs_box) self._add_notebook_tab(info_sw, _("Lutris preferences"))
def _build_info_tab(self): info_box = VBox() info_box.pack_start(self._get_name_box(), False, False, 5) # Game name if self.game: info_box.pack_start(self._get_slug_box(), False, False, 5) # Game id info_box.pack_start(self._get_banner_box(), False, False, 5) # Banner self.runner_box = self._get_runner_box() info_box.pack_start(self.runner_box, False, False, 5) # Runner info_box.pack_start(self._get_year_box(), False, False, 5) # Year info_sw = self.build_scrolled_window(info_box) self._add_notebook_tab(info_sw, "Game info")
def _build_info_tab(self): info_box = VBox() info_box.pack_start(self._get_name_box(), False, False, 5) # Game name if self.game: info_box.pack_start(self._get_slug_box(), False, False, 5) # Game id info_box.pack_start(self._get_banner_box(), False, False, 5) # Banner self.runner_box = self._get_runner_box() info_box.pack_start(self.runner_box, False, False, 5) # Runner info_box.pack_start(self._get_year_box(), False, False, 5) # Year info_sw = self.build_scrolled_window(info_box) self._add_notebook_tab(info_sw, "Game info")
def _build_prefs_tab(self): prefs_box = VBox() prefs_box.pack_start(self._get_game_cache_box(), False, False, 6) info_sw = self.build_scrolled_window(prefs_box) self._add_notebook_tab(info_sw, "Lutris preferences")