You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Merge pull request #82894 from Quimisagi/label-align-values-discarded
Add compatibility rename of `(v)align` properties of `Label`
This commit is contained in:
@@ -813,6 +813,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 {
|
int Label::get_line_count() const {
|
||||||
if (!is_inside_tree()) {
|
if (!is_inside_tree()) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ private:
|
|||||||
protected:
|
protected:
|
||||||
void _notification(int p_what);
|
void _notification(int p_what);
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
#ifndef DISABLE_DEPRECATED
|
||||||
|
bool _set(const StringName &p_name, const Variant &p_value);
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Size2 get_minimum_size() const override;
|
virtual Size2 get_minimum_size() const override;
|
||||||
|
|||||||
Reference in New Issue
Block a user