mirror of
https://github.com/ApfelTeeSaft/SplitNotes.git
synced 2026-08-26 19:33:39 +00:00
Added initial files that were created without version control. A number of .py files and a resource folder with a couple of icons.
51 lines
1.1 KiB
Python
51 lines
1.1 KiB
Python
#CONFIG FILE WITH CONSTANTS
|
|
|
|
DEBUG = True
|
|
|
|
#Livesplit connection
|
|
HOST = "localhost"
|
|
PORT = 16834
|
|
|
|
#In network communication, time out after this time. (in seconds)
|
|
COM_TIMEOUT = 0.5
|
|
|
|
#Possible commands to send to LiveSplit
|
|
LS_COMMANDS = {
|
|
"best_possible": "getbestpossibletime\r\n",
|
|
"cur_split_index": "getsplitindex\r\n",
|
|
"cur_split_name": "getcurrentsplitname\r\n"
|
|
}
|
|
|
|
#Default Window Size
|
|
DEFAULT_WINDOW = {"WIDTH": 200, "HEIGHT": 500, "TITLE": "SplitNotes"}
|
|
|
|
#Color Scheme
|
|
COLOR_SCHEME = {}
|
|
|
|
#Default Welcome Message
|
|
DEFAULT_MSG = "Right Click to Open Notes."
|
|
|
|
#Update time for polling livesplit and other actions (in seconds)
|
|
POLLING_TIME = 0.5
|
|
|
|
#file names and path of icons
|
|
ICON_FOLDER = "resources"
|
|
ICONS= {"GREEN": "green.png", "RED": "red.png"}
|
|
|
|
#Popup menu options
|
|
MENU_OPTIONS = {
|
|
"SINGLE": "Set Single Layout",
|
|
"DOUBLE": "Set Double Layout",
|
|
"LOAD": "Load Notes"
|
|
}
|
|
|
|
#Error messages
|
|
ERRORS = {"NOTES_EMPTY": ("Error", "Notes empty or can not be loaded!")}
|
|
|
|
#Max file size for notes
|
|
MAX_FILE_SIZE = 1000000000 #1 Giga-Byte
|
|
|
|
#TO be added to title to alert user that timer is running
|
|
RUNNING_ALERT = "RUNNING"
|
|
|