Skip to content

Commit

Permalink
Move version number to constants
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Henderson <[email protected]>
  • Loading branch information
zbee committed Nov 1, 2023
1 parent 769f2c6 commit a119ab4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions hinter/data/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under GPLv3 - Refer to the LICENSE file for the complete text #

__all__ = [
'VERSION',
'URL_ASSETS_ZIP',
'URL_RANKED_EMBLEMS',
'URL_KERNEL_PROXY_ROUGH',
Expand Down Expand Up @@ -37,6 +38,8 @@
'PATH_FRIENDS_FILE',
]

VERSION = '0.0.0'

URL_ASSETS_ZIP = 'https://codeload.github.com/zbee/mobahinted/zip/refs/heads/master'
URL_RANKED_EMBLEMS = 'https://static.developer.riotgames.com/docs/lol/ranked-emblems-latest.zip'
URL_KERNEL_PROXY_ROUGH = 'mhk.zbee.dev'
Expand Down
20 changes: 13 additions & 7 deletions hinter/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@

# noinspection PySimplifyBooleanCheck
class Settings:
settings_file = hinter.data.constants.PATH_SETTINGS_FILE
settings_loaded = False
version = '0.0.0'

settings_file = hinter.data.constants.PATH_SETTINGS_FILE
version = hinter.data.constants.VERSION

x: int = 10 # Window Position
y: int = 10

default_width: int = 1780 # Default Window Size
default_height: int = 670
width: int = 1780 # Window Size
height: int = 670

# Settings Popup settings
# Overlays
overlay_milestones: bool = False
overlay_cs_tracker: bool = True
overlay_objectives: bool = False
Expand All @@ -34,6 +37,7 @@ class Settings:
overlay_trinket: bool = True
overlay_counter_items: bool = False

# Behavior
launch_on_startup: bool = False
automatic_updates: bool = True
close_to_tray: bool = False
Expand All @@ -56,16 +60,14 @@ class Settings:
auto_close_builds: bool = True
show_postgame_separate: bool = False

# Accounts
active_user: str = '' # TODO: What if this was scrapped and only detected the active user?
region: str = 'NA'

# Privacy
_pipeline_private = 'Private'
_pipeline_fast = 'Fast'

pipeline: str = _pipeline_fast

pipeline_defaulted: bool = False
# TODO: Add actual cassiopeia settings
pipelines = {
'Private': {
'description': 'Riot Data > Riot (must use your own key)',
Expand All @@ -74,6 +76,10 @@ class Settings:
'description': 'Riot Data > MobaHinted Proxy > Riot',
},
}

pipeline_defaulted: bool = False

pipeline: str = _pipeline_fast
telemetry: bool = False

def load_settings(self, refresh: bool = False):
Expand Down

0 comments on commit a119ab4

Please sign in to comment.