change lang button

This commit is contained in:
Insality 2019-09-25 23:46:37 +03:00
parent 6d8d0e822a
commit 6f37a1ec9a
3 changed files with 66 additions and 0 deletions

View File

@ -563,6 +563,69 @@ nodes {
template_node_child: false template_node_child: false
size_mode: SIZE_MODE_MANUAL 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 { nodes {
position { position {
x: 0.0 x: 0.0

View File

@ -12,6 +12,7 @@ local en = {
ui_section_radio = "Radio", ui_section_radio = "Radio",
ui_section_checkbox = "Checkbox", ui_section_checkbox = "Checkbox",
ui_text_example = "Translated", ui_text_example = "Translated",
ui_text_change_lang = "Change lang",
} }
local ru = { local ru = {
@ -24,6 +25,7 @@ local ru = {
ui_section_radio = "Выбор", ui_section_radio = "Выбор",
ui_section_checkbox = "Мн. выбор", ui_section_checkbox = "Мн. выбор",
ui_text_example = "Переведен", ui_text_example = "Переведен",
ui_text_change_lang = "Сменить язык",
} }

View File

@ -33,6 +33,7 @@ local function setup_texts(self)
self.druid:new_text("text_simple", "Simple") self.druid:new_text("text_simple", "Simple")
self.druid:new_text("text_translated", "ui_text_example", true) 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 end