This commit is contained in:
2026-01-21 08:30:02 +08:00
parent 5a97f7959e
commit c1ba5d1888
942 changed files with 17671 additions and 843 deletions
+12 -11
View File
@@ -1,9 +1,10 @@
extends Node
class_name Config
## Global configuration for the Tekton Launcher
# itch.io Configuration
const ITCH_GAME_URL := "https://your-username.itch.io/tekton-local"
const ITCH_DEVLOG_URL := "https://itch.io/api/1/your-key/game/your-game-id/devlog" # Replace with actual
const ITCH_DEVLOG_URL := "https://itch.io/api/1/your-key/game/your-game-id/devlog" # Replace with actual
# Version manifest URL (hosted on itch.io or alongside game files)
const VERSION_MANIFEST_URL := "https://your-username.itch.io/tekton-local/data/version.json"
@@ -14,7 +15,7 @@ const LOCAL_VERSION_FILE := "user://version.txt"
const BACKUP_DIRECTORY := "user://backup/"
# Platform detection
enum Platform { WINDOWS, LINUX, MACOS }
enum Platform {WINDOWS, LINUX, MACOS}
static func get_current_platform() -> Platform:
var os_name := OS.get_name()
@@ -61,12 +62,12 @@ static func get_platform_name() -> String:
return "unknown"
# UI Colors (Cyberpunk/Tech theme matching game aesthetic)
const COLOR_PRIMARY := Color("#00d4ff") # Cyan
const COLOR_SECONDARY := Color("#ff00aa") # Magenta
const COLOR_BACKGROUND := Color("#0a0a1a") # Dark blue-black
const COLOR_SURFACE := Color("#141428") # Slightly lighter
const COLOR_SUCCESS := Color("#00ff88") # Green
const COLOR_WARNING := Color("#ffaa00") # Orange
const COLOR_ERROR := Color("#ff4444") # Red
const COLOR_TEXT := Color("#ffffff") # White
const COLOR_TEXT_DIM := Color("#888899") # Dim text
const COLOR_PRIMARY := Color("#00d4ff") # Cyan
const COLOR_SECONDARY := Color("#ff00aa") # Magenta
const COLOR_BACKGROUND := Color("#0a0a1a") # Dark blue-black
const COLOR_SURFACE := Color("#141428") # Slightly lighter
const COLOR_SUCCESS := Color("#00ff88") # Green
const COLOR_WARNING := Color("#ffaa00") # Orange
const COLOR_ERROR := Color("#ff4444") # Red
const COLOR_TEXT := Color("#ffffff") # White
const COLOR_TEXT_DIM := Color("#888899") # Dim text