mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-22 23:17:26 -04:00
enable audio input, add debug color consts
This commit is contained in:
parent
2b652faf54
commit
aae602aa11
3 changed files with 9 additions and 3 deletions
|
@ -20,6 +20,10 @@ boot_splash/show_image=false
|
|||
config/icon="res://app_icon/icon_64.png"
|
||||
config/windows_native_icon="res://app_icon/icon.ico"
|
||||
|
||||
[audio]
|
||||
|
||||
driver/enable_input=true
|
||||
|
||||
[autoload]
|
||||
|
||||
DataSaver="*res://scripts/data_saver.gd"
|
||||
|
|
|
@ -3,6 +3,10 @@ extends Node
|
|||
signal logged(msg: String)
|
||||
signal error(msg: String)
|
||||
|
||||
const ERROR_CLR = Color.RED
|
||||
const WARN_CLR = Color.YELLOW
|
||||
const SILENT_CLR = Color.DIM_GRAY
|
||||
|
||||
|
||||
func logr(msg) -> void:
|
||||
print_rich(str(msg))
|
||||
|
@ -20,5 +24,3 @@ func logclr(msg, color: Color) -> void:
|
|||
var rich_clr = "[color=%s]%s[/color]" % [color.to_html(), str(msg)]
|
||||
print_rich(rich_clr)
|
||||
logged.emit(rich_clr)
|
||||
|
||||
# TODO: log category with defined color
|
||||
|
|
|
@ -20,7 +20,7 @@ func _ready() -> void:
|
|||
var viewport_height = ProjectSettings.get_setting("display/window/size/viewport_height", 648)
|
||||
scale_width = float(render_result.width) / viewport_width
|
||||
scale_height = float(render_result.height) / viewport_height
|
||||
Debug.logclr("Mouse position scale: %fx%f" % [scale_width, scale_height], Color.DIM_GRAY)
|
||||
Debug.logclr("Mouse position scale: %.2fx%.2f" % [scale_width, scale_height], Color.DIM_GRAY)
|
||||
|
||||
|
||||
func start_server() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue