first Prototype
This commit is contained in:
parent
e11825c698
commit
35ce267482
481 changed files with 17315 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue