forked from Faraphel/Atlas-Install
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readded a better track selection filter (advanced menu), fixed an iss…
…ue with tracks always renormalizing, added a default sort in ct_config, added a Common class to reunite all component with more readability and less weird code, splited the Gui into a directory
- Loading branch information
Showing
10 changed files
with
463 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1804,6 +1804,7 @@ | |
] | ||
} | ||
], | ||
"default_sort": "name", | ||
"tracks_list":[ | ||
{ | ||
"name":"4IT Clown's Road", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from source.Gui import Gui | ||
from source.Common import Common | ||
|
||
gui = Gui() | ||
gui.root.mainloop() | ||
common = Common() | ||
common.mainloop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from source.CT_Config import CT_Config | ||
from source.Option import Option | ||
from source.Game import Game | ||
from source.Gui.Main import Main | ||
from source.Gui.TrackSelection import TrackSelection | ||
|
||
class Common: | ||
def __init__(self): | ||
""" | ||
Common allow to store multiple object that need each other and still make the code readable enough without | ||
having to access an object with some obscure way | ||
""" | ||
|
||
self.option = Option().load_from_file("./option.json") | ||
self.ct_config = CT_Config() | ||
self.game = Game(common=self) | ||
|
||
self.gui_main = Main(common=self) | ||
|
||
def show_gui_track_configuration(self): TrackSelection(common=self) | ||
def mainloop(self): self.gui_main.mainloop() |
Oops, something went wrong.