mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
change lang button
This commit is contained in:
parent
6d8d0e822a
commit
6f37a1ec9a
@ -563,6 +563,69 @@ nodes {
|
||||
template_node_child: false
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: 0.0
|
||||
y: 5.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
rotation {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
scale {
|
||||
x: 0.7
|
||||
y: 0.7
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
size {
|
||||
x: 150.0
|
||||
y: 100.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
color {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
type: TYPE_TEXT
|
||||
blend_mode: BLEND_MODE_ALPHA
|
||||
text: "Change Lang"
|
||||
font: "game"
|
||||
id: "text_button_lang"
|
||||
xanchor: XANCHOR_NONE
|
||||
yanchor: YANCHOR_NONE
|
||||
pivot: PIVOT_CENTER
|
||||
outline {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
shadow {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
adjust_mode: ADJUST_MODE_FIT
|
||||
line_break: true
|
||||
parent: "button_simple"
|
||||
layer: ""
|
||||
inherit_alpha: true
|
||||
alpha: 1.0
|
||||
outline_alpha: 1.0
|
||||
shadow_alpha: 0.0
|
||||
template_node_child: false
|
||||
text_leading: 0.8
|
||||
text_tracking: 0.0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: 0.0
|
||||
|
@ -12,6 +12,7 @@ local en = {
|
||||
ui_section_radio = "Radio",
|
||||
ui_section_checkbox = "Checkbox",
|
||||
ui_text_example = "Translated",
|
||||
ui_text_change_lang = "Change lang",
|
||||
}
|
||||
|
||||
local ru = {
|
||||
@ -24,6 +25,7 @@ local ru = {
|
||||
ui_section_radio = "Выбор",
|
||||
ui_section_checkbox = "Мн. выбор",
|
||||
ui_text_example = "Переведен",
|
||||
ui_text_change_lang = "Сменить язык",
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,6 +33,7 @@ local function setup_texts(self)
|
||||
|
||||
self.druid:new_text("text_simple", "Simple")
|
||||
self.druid:new_text("text_translated", "ui_text_example", true)
|
||||
self.druid:new_text("text_button_lang", "ui_text_change_lang", true, 150 * 0.7)
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user