This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wait signle frame | |
await get_tree().physics_frame | |
# signal emit deferred | |
SignalManager.emit_signal.call_deferred("minimap_set_target", main_camera, 1) | |
(func(): SignalManager.minimap_set_target.emit(main_camera, 1)).call_deferred() | |
# signal connect deferred | |
SignalManager.minimap_set_target.connect(on_minimap_set_target, Object.CONNECT_DEFERRED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tabSize": 2, | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
"files.trimTrailingWhitespace": true, | |
"editor.renderWhitespace": "all", | |
"files.insertFinalNewline": true, | |
"editor.rulers": [ | |
120 | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const buildPropertyWritables = <TFormData extends object>(data: TFormData) => { | |
const writables: Record<string, Writable<any>> = {}; | |
Object.keys(data).forEach((key) => { | |
writables[key] = writable(data[key as keyof TFormData]); | |
}) | |
return writables as Record<keyof TFormData, Writable<any>>; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |