first Prototype

This commit is contained in:
Exobyt 2025-08-28 01:55:38 +02:00
parent e11825c698
commit 35ce267482
481 changed files with 17315 additions and 1 deletions

View file

@ -0,0 +1,27 @@
# Translations key UI for LocalizationEditor : MIT License
# @author Vladimir Petrenko
@tool
extends MarginContainer
var _key
var _data: LocalizationData
@onready var _del_ui = $HBoxContainer/Del as Button
@onready var _key_ui = $HBoxContainer/Key as LineEdit
func _ready() -> void:
_del_ui.connect("pressed", _on_del_pressed)
func _on_del_pressed() -> void:
_data.del_placeholder(_key)
func key():
return _key
func set_data(key, data: LocalizationData):
_key = key
_data = data
_draw_view()
func _draw_view() -> void:
_key_ui.text = _key