01ea3af253
Apply Godot 4.6 automated conversion: renames Spatial.translate->position, margin_*->offset_*, tool->@tool, .empty()->.is_empty(), DynamicFont->FontFile, onready->@onready, export()->@export, and many more. 127 files changed by the tool. Manual fixes still required for: - godot_db_manager plugin (incompatible APIs: WindowDialog, Tabs, etc.) - lod plugin (Spatial -> Node3D renames) - ResourceLoader.load_interactive removed -> load_threaded_request - OS.set_window_fullscreen removed -> DisplayServer - Viewport.set_size_override removed Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
732 B
GDScript
39 lines
732 B
GDScript
@tool
|
|
"""
|
|
class GDDBConstants
|
|
"""
|
|
|
|
class_name GDDBConstants
|
|
|
|
extends Node
|
|
|
|
# GDDB signature
|
|
const c_gddb_signature = "GDDB_ver"
|
|
|
|
# GDDB ver
|
|
const c_gddb_ver = "2.0"
|
|
|
|
# invalid id to initialize integer properties
|
|
const c_invalid_id = -1
|
|
|
|
# maximum database name length
|
|
const c_max_db_name_len = 16
|
|
|
|
# maximum table name length
|
|
const c_max_table_name_len = 16
|
|
|
|
# characters that should not be part of the database name
|
|
const c_invalid_characters = "`~!@#$%^&*()=+[]{}\\|;:'\",<.>/?"
|
|
|
|
# addon main path
|
|
const c_addon_main_path = "res://addons/godot_db_manager/"
|
|
|
|
# maximum tables list width
|
|
const c_max_tables_list_width = 400.0
|
|
|
|
# minimum cell width
|
|
const c_min_cell_width = 150.0
|
|
|
|
# maximum cell width
|
|
const c_max_cell_width = 400.0
|