Skip to content

Commit

Permalink
7.35
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyz512 committed Dec 19, 2023
1 parent de30a25 commit f4bfc30
Show file tree
Hide file tree
Showing 323 changed files with 20 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ venv/
ENV/
env.bak/
venv.bak/
bin/modpaths/urls.txt
bin/modpaths/urls.txt
Binary file added bin/images/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed bin/images/screenshot-1.png
Binary file not shown.
Binary file added bin/images/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed bin/images/screenshot-2.png
Binary file not shown.
Binary file added bin/images/screenshot-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed bin/images/screenshot-3.png
Binary file not shown.
Binary file added bin/images/screenshot-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed bin/images/screenshot-4.png
Binary file not shown.
Binary file added bin/images/screenshot-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed bin/images/screenshot-5.png
Binary file not shown.
Binary file modified bin/maps/dota.vpk
Binary file not shown.
16 changes: 5 additions & 11 deletions gui.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@ import subprocess
import tkinter as tk
from tkinter.messagebox import askyesno
from functools import partial
from idlelib.tooltip import Hovertip
from shutil import copytree, ignore_patterns

import mpaths
import validatefiles
import helper

version = "1.06"
version = "1.06b"

# widget vars
btnXpad = 8
btnYpad = 8
btnW = 8
hoverDelay = 250

patching = False
checkboxes = {}
Expand All @@ -40,6 +38,7 @@ styling_dictionary = {}
def welcomeMsg():
print(r"""
Github: https://github.com/robbyz512/dota2-minify
Donations: https://www.buymeacoffee.com/dota2minify
-------------------------------------------------
""")

Expand Down Expand Up @@ -129,7 +128,6 @@ class App():
self.helpBtn.grid(row=10, column=1, pady=btnYpad, padx=btnXpad, sticky='w')
self.updateBtn = tk.Button(self.buttonsFrame, text='Update', state=tk.NORMAL, width=btnW, takefocus=False, command=lambda:threading.Thread(target=helper.urlDispatcher(mpaths.update_url), daemon=True).start())
self.updateBtn.grid(row=11, column=0, pady=btnYpad, padx=btnXpad, sticky='w')
self.updateBtnTip = Hovertip(self.updateBtn, text='')
self.uninstallBtn = tk.Button(self.buttonsFrame, text='Uninstall', width=btnW, takefocus=False, command=lambda:threading.Thread(target=self.uninstaller, daemon=True).start())
self.uninstallBtn.grid(row=11, column=1, pady=btnYpad, padx=btnXpad, sticky='w')
self.versionLabel = tk.Label(self.buttonsFrame, font=("None", 8), width=20)
Expand All @@ -151,7 +149,7 @@ class App():
self.devLabel.grid(row=1, column=0, sticky='e')
self.devbtn = tk.Button(self.consoleFrame, text='Preview', width=22, height=1, font=("None", 8, "bold"), takefocus=False, command=lambda:threading.Thread(target=helper.urlDispatcher(mpaths.dev_version), daemon=True).start())
self.devbtn.grid(row=2, column=0, sticky='e')

# redirects stdout and stderror to text box widget, which means print statements will not appear in the gui until these two lines are ran
sys.stdout = TextRedirector(self.consoleText, "stdout")
sys.stderr = TextRedirector(self.consoleText, "stderr")
Expand Down Expand Up @@ -188,13 +186,9 @@ class App():
if version == mpaths.latest_version_url:
self.updateBtn.config(state='disabled')
self.versionLabel.config(fg="#0cb6b3")
self.versionLabel.config(text=f"Latest version {version}")
self.updateBtnTip.text = 'You are using the latest version'
self.updateBtnTip.hover_delay = hoverDelay
self.versionLabel.config(text=f"Using Latest version {version}")
else:
self.updateBtn.config(state='normal', fg='#0cb6b3', activeforeground='#0cb6b3')
self.updateBtnTip.text = ''
self.updateBtnTip.hover_delay = 500000 # .text='' showing pixelated whitespace, just set hover delay to forever

self.newVersionLabel.config(fg='red')
self.newVersionLabel.config(text=f"New version! {mpaths.latest_version_url}")
Expand Down Expand Up @@ -261,7 +255,7 @@ class App():
if box.var.get() == 1 and checkboxes[box] == folder: # step into folders that have ticked checkboxes only
print("→ Installing " + folder)

if checkboxes[box] == 'Dark Terrain [7.34]' or checkboxes[box] == 'Remove Foilage [7.34]':
if checkboxes[box] == 'Dark Terrain [7.35]' or checkboxes[box] == 'Remove Foilage [7.35]':
shutil.copytree(mpaths.maps_dir, os.path.join(mpaths.dota_minify, os.path.basename(mpaths.maps_dir)), dirs_exist_ok=True)
# ----------------------------------- files ---------------------------------- #
# if files_total == 0: pass
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@@https://raw.githubusercontent.com/robbyz512/dota2-minify/stable/bin/modpaths/Dark%20Terrain%20%5B7.34%5D/blacklist.txt
@@https://raw.githubusercontent.com/robbyz512/dota2-minify/stable/bin/modpaths/Dark%20Terrain%20%5B7.341%5D/blacklist.txt
Loading

0 comments on commit f4bfc30

Please sign in to comment.