Commit graph

36 commits

Author SHA1 Message Date
3286f7e070 removed mkwf sort for testing 2022-02-10 14:52:16 +01:00
8e5f690358 improved the behaviour of the installer when a Pack does not provide some value in file_process
Many "x[y] if y in x else d" have been replaced by "x.get(y, d)"
2022-02-10 09:22:03 +01:00
2aa84b8fab arenas are now supported by the installer 2022-02-08 19:24:17 +01:00
44c2fbc9fc fixed disabling "keep_original_track" : bmg are now correct 2022-02-01 15:53:50 +01:00
438e303b3b added add_original_track_prefix, swap_original_order, enable_random_cup and keep_original_track option to the ct_config. The last one have bmg issue. 2022-02-01 00:19:50 +01:00
a55ed656d9 added a weight notion to track (a track with a weight of 4 will be duplicated 4 times) 2022-01-29 13:02:06 +01:00
e5fefd0624 optimised get_track_possibilities and fixed some sorting issue ? 2022-01-26 00:11:07 +01:00
b5da151c73 fixed the track sorting, added a way to save and load track configuration, track configuration is now keeped when closing and reopening the track configuration menu 2022-01-25 19:45:46 +01:00
7b134a88a3 fixed the track sorting 2022-01-25 14:19:46 +01:00
b3d5af63ed readded a better track selection filter (advanced menu), fixed an issue 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 2022-01-25 12:59:51 +01:00
03e85fb442 Random track group are now supported in ct_config.json, cup icons can now be named by the cup name, custom track cup now start at 001 2022-01-21 16:39:29 +01:00
7986d9eef1 the code now support multiple Pack, allow a better image generator (used for the bootscreen image in MKWF), customisable directory for the generated ct_icons, patched bmg, directory with all the icons, directory with lecode. 2022-01-19 17:46:45 +01:00
6042ca441a implemented a very experimental function for packs 2022-01-18 14:04:51 +01:00
af68a17782 (not functionnal for now) moved some mod part into a Pack folder to allow multiple mod to be installed, track menu now allow almost all the possibility 2022-01-17 20:34:08 +01:00
3f8fad07fd using load_from_json return self 2022-01-17 09:46:12 +01:00
2096b93540 default_track is now supported, color of the original track are now handled by the tags_color of the ct_config.json file 2022-01-17 09:43:42 +01:00
824281f5ab the program now use sha1 instead of prefix + name + suffix to find a tracks. Prefix, suffix and new have been replaced by tags (some part of the code need to be "cleaned") 2022-01-16 19:54:12 +01:00
56752f8f36 cup are now stored in a list instead of a dictionary with useless index, and random + original cup have been removed because useless 2022-01-13 16:25:51 +01:00
61b54936b3 custom region shoule now be supported by the installer 2022-01-13 13:40:57 +01:00
b7f87d6a31 removed some MKWFaraphel specific non-modulable text 2022-01-11 19:39:51 +01:00
7852e1f7ea CT_Config now can have a name and a nickname for the mod 2022-01-11 18:09:35 +01:00
632fe34296 track.get doesn't exist, replaced by getattr(track, ..., ...) 2021-10-25 12:25:59 +02:00
69f4e7872b added a menu to sort tracks by name, author, score and version 2021-10-25 12:25:58 +02:00
0f8a6d86ae renamed id to cup_id because of built-in function id 2021-07-28 20:47:26 +02:00
738e0b101b Splitted wszst.py into a module, removed "utf-8 support for path" with cwd because wiimm's tools already support many non-ascii caracter, this simplify the code. 2021-07-26 22:57:45 +02:00
fc3030532b added doctype and type hint to all function, replaced copyfile function by shutil.copyfile 2021-07-25 17:53:29 +02:00
ee8fea9c5f reimplemented track selection by star 2021-07-23 21:30:56 +02:00
53ee294915 track highlight functionnality weren't implemented since code rework 2021-07-21 22:52:49 +02:00
1b8dc36fac - fixed missing last 10 cup icon
- simplified get_cup_icon function by using stroke_width and stroke_fill argument
- fixed track download
2021-07-19 21:34:22 +02:00
01ac79f623 added in_thread decorator, wszst module is now always used to edit file, ctconfig is now property of Game class and no more Gui 2021-07-18 22:17:03 +02:00
014e4fe259 fixed error and remerged directory into a single file, it is way easier to read, navigate, and code 2021-07-18 14:46:33 +02:00
a01b390ce0 splitted all class in source into directory 2021-07-18 11:03:35 +02:00
57efdf2da3 edited source to use CT_Config, Game, Cup and Track 2021-07-17 19:30:51 +02:00
c041f55cb9 added ctfile code, fixed issue, load from json function 2021-07-16 22:44:41 +02:00
42a96db471 added ctfile creation for CT_Config, Cup, Track 2021-07-16 11:29:44 +02:00
af67bffafe started reworking the code to have a CT_Config, Cup, Game and Track class to make the code way, way more easier to understand and to read 2021-07-16 00:32:12 +02:00