Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
高级设置和部分修改
  • Loading branch information
Goodjooy authored May 24, 2020
1 parent eaf7751 commit 8d73356
Show file tree
Hide file tree
Showing 24 changed files with 4,081 additions and 766 deletions.
34 changes: 33 additions & 1 deletion Main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
import os
import sys
import time

from core.src.frame_classes.main_frame import MainFrame


class LogHolder(object):
def __init__(self, work_path, stream=sys.stdout,name=""):
self.stream = stream
self.work_path = work_path
self.t = time.localtime()
self.file_name=os.path.join(path, f"core\\assets\\{name}.txt")
self.is_last_n=True

def write(self, message):
if self.is_last_n:
message=f"\n\t{time.asctime(self.t)}\n--------------\n{message}"
self.is_last_n=False
if message.endswith("\n"):
message=f"{message}\n--------------\n"
self.is_last_n=True
self.stream.write(message)

with open(self.file_name,'a')as file:
file.write(message)

def flush(self):
pass


if __name__ == '__main__':
MainFrame.run()
path = os.path.split(os.path.realpath(sys.argv[0]))[0]
sys.stderr = LogHolder(path, sys.stderr,"error_logs")
sys.stdout = LogHolder(path, sys.stdout, "output_logs")
MainFrame.run(path)
3,276 changes: 2,629 additions & 647 deletions core/assets/frame_design.fbp

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions core/assets/height_setting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"mash_match": [
"Mesh",
""
],
"texture_match": [
"Texture2D",
""
],
"local_data": {
"OSSSY152": "https://raw.githubusercontent.com/OSSSY152/AzurLanePaintingLocalization/master/chs/names.json"
}
}
Loading

0 comments on commit 8d73356

Please sign in to comment.