summaryrefslogtreecommitdiffstats
path: root/scene/gui/label.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r--scene/gui/label.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 0d48cb1549..d9177c75ba 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -673,6 +673,19 @@ Size2 Label::get_minimum_size() const {
}
}
+#ifndef DISABLE_DEPRECATED
+bool Label::_set(const StringName &p_name, const Variant &p_value) {
+ if (p_name == SNAME("valign")) {
+ set_vertical_alignment((VerticalAlignment)p_value.operator int());
+ return true;
+ } else if (p_name == SNAME("align")) {
+ set_horizontal_alignment((HorizontalAlignment)p_value.operator int());
+ return true;
+ }
+ return false;
+}
+#endif
+
int Label::get_line_count() const {
if (!is_inside_tree()) {
return 1;