This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joshua Hegedus
committed
Jan 22, 2023
1 parent
48932d0
commit a9a8724
Showing
6 changed files
with
197 additions
and
301 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
UNDERLINE = "(!u!)" | ||
BOLD = "(!b!)" | ||
RESET_ALL ="(!reset_all!)" | ||
RESET_STYLE ="(!reset_s!)" | ||
RESET_COLOR ="(!reset_c!)" | ||
|
||
BLACK = "(!black!)" | ||
RED = "(!red!)" | ||
GREEN = "(!green!)" | ||
YELLOW = "(!yellow!)" | ||
GRAY = "(!gray!)" | ||
PINK = "(!pink!)" | ||
|
||
ansi_dict = { | ||
RESET_ALL: "\033[0m", | ||
RESET_COLOR: "\033[39m", | ||
BLACK : "\033[30m", | ||
RED : "\033[31m", | ||
GREEN : "\033[32m", | ||
YELLOW : "\033[33m", | ||
"(!blue!)": "\033[34m", | ||
"(!purple!)": "\033[35m", | ||
"(!cyan!)": "\033[36m", | ||
"(!white!)": "\033[37m", | ||
PINK: "\033[38;5;213m", | ||
GRAY: "\033[90m", | ||
BOLD: "\033[1m", | ||
UNDERLINE: "\033[4m" } | ||
|
||
def colorize(text: str, opstional_style=''): | ||
full_str = f'{opstional_style}{text}' + RESET_ALL | ||
for code in ansi_dict: | ||
full_str = full_str.replace(code, ansi_dict[code]) | ||
return full_str |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from mod import ModManager | ||
from baselib import clear_dir, minecraft_path | ||
from baselib import minecraft_path | ||
from modoperations import copy_to_target | ||
|
||
manager = ModManager() | ||
pack, i = manager.select_mod_packs() | ||
pack = manager.select_mod_packs() | ||
if pack is not None: | ||
copy_to_target(manager, pack.pack_content, minecraft_path()) | ||
input("Press Enter to exit...") | ||
|
||
copy_to_target(manager, pack.pack_content, minecraft_path()) | ||
|
||
input("Press Enter to exit...") |
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
Oops, something went wrong.