Tweak CS2 fetch defaults
Use a downward arrow icon for Fetch Images and default downloads to the project's images directory, updating subtool buttons and docs accordingly.
This commit is contained in:
parent
5bfdd83e90
commit
717ac72f36
|
|
@ -39,7 +39,7 @@ On macOS/Linux activate with `source .venv/bin/activate` instead.
|
|||
3. Fine‑tune sliders; watch the overlay update on the right.
|
||||
4. Toggle freehand mode (`△`) or stick with rectangles and mark areas to exclude (right mouse drag).
|
||||
5. Move through folder images with `⬅️` / `➡️`; exclusions stay put unless you opt into automatic resets.
|
||||
6. Fetch CS2 pattern images (`⬇`) whenever you need additional references.
|
||||
6. Fetch CS2 pattern images (`⭳`) whenever you need additional references.
|
||||
7. Save an overlay (`💾`) when ready.
|
||||
|
||||
## Project Layout
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class UIBuilderMixin:
|
|||
("🧹", self._t("toolbar.clear_excludes"), self.clear_excludes),
|
||||
("↩", self._t("toolbar.undo_exclude"), self.undo_exclude),
|
||||
("🔄", self._t("toolbar.reset_sliders"), self.reset_sliders),
|
||||
("⬇", self._t("toolbar.cs2_tool"), self.open_cs2_pattern_tool),
|
||||
("⭳", self._t("toolbar.cs2_tool"), self.open_cs2_pattern_tool),
|
||||
("🌓", self._t("toolbar.toggle_theme"), self.toggle_theme),
|
||||
]
|
||||
self._toolbar_buttons: list[dict[str, object]] = []
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ import requests
|
|||
from PIL import Image, ImageTk
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from app.logic import IMAGES_DIR
|
||||
|
||||
|
||||
class CS2PatternFetcher:
|
||||
"""Fetch CS2 skin metadata and download pattern images."""
|
||||
|
|
@ -191,9 +193,7 @@ class CS2PatternTool(tk.Toplevel):
|
|||
|
||||
self.weapons_var = tk.StringVar()
|
||||
self.patterns_var = tk.StringVar()
|
||||
self.directory_var = tk.StringVar(
|
||||
value=str((Path.cwd() / "images" / "cs2").resolve())
|
||||
)
|
||||
self.directory_var = tk.StringVar(value=str(IMAGES_DIR.resolve()))
|
||||
self.status_var = tk.StringVar(value=self._t("cs2.status_loading"))
|
||||
|
||||
self._init_widgets()
|
||||
|
|
@ -460,7 +460,7 @@ class CS2PatternTool(tk.Toplevel):
|
|||
def _toolbar_button_defs(self) -> list[tuple[str, str, Any]]:
|
||||
return [
|
||||
("🔄", self._t("cs2.refresh_button"), self._refresh_data),
|
||||
("⬇", self._t("cs2.download_button"), self._download_selected),
|
||||
("⭳", self._t("cs2.download_button"), self._download_selected),
|
||||
("📁", self._t("cs2.browse_button"), self._browse_directory),
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue