Fix missing argument names in bindings
While at it, tweak some boolean setters to use `p_enabled` for the bool. Also renames `draw_minimap()` to `set_draw_minimap()`.
This commit is contained in:
@@ -427,9 +427,9 @@ Ref<Texture2D> Button::get_icon() const {
|
||||
return icon;
|
||||
}
|
||||
|
||||
void Button::set_expand_icon(bool p_expand_icon) {
|
||||
if (expand_icon != p_expand_icon) {
|
||||
expand_icon = p_expand_icon;
|
||||
void Button::set_expand_icon(bool p_enabled) {
|
||||
if (expand_icon != p_enabled) {
|
||||
expand_icon = p_enabled;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
}
|
||||
@@ -439,9 +439,9 @@ bool Button::is_expand_icon() const {
|
||||
return expand_icon;
|
||||
}
|
||||
|
||||
void Button::set_flat(bool p_flat) {
|
||||
if (flat != p_flat) {
|
||||
flat = p_flat;
|
||||
void Button::set_flat(bool p_enabled) {
|
||||
if (flat != p_enabled) {
|
||||
flat = p_enabled;
|
||||
update();
|
||||
}
|
||||
}
|
||||
@@ -450,9 +450,9 @@ bool Button::is_flat() const {
|
||||
return flat;
|
||||
}
|
||||
|
||||
void Button::set_clip_text(bool p_clip_text) {
|
||||
if (clip_text != p_clip_text) {
|
||||
clip_text = p_clip_text;
|
||||
void Button::set_clip_text(bool p_enabled) {
|
||||
if (clip_text != p_enabled) {
|
||||
clip_text = p_enabled;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
}
|
||||
@@ -553,7 +553,7 @@ void Button::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_text_align"), &Button::get_text_align);
|
||||
ClassDB::bind_method(D_METHOD("set_icon_align", "icon_align"), &Button::set_icon_align);
|
||||
ClassDB::bind_method(D_METHOD("get_icon_align"), &Button::get_icon_align);
|
||||
ClassDB::bind_method(D_METHOD("set_expand_icon"), &Button::set_expand_icon);
|
||||
ClassDB::bind_method(D_METHOD("set_expand_icon", "enabled"), &Button::set_expand_icon);
|
||||
ClassDB::bind_method(D_METHOD("is_expand_icon"), &Button::is_expand_icon);
|
||||
|
||||
BIND_ENUM_CONSTANT(ALIGN_LEFT);
|
||||
|
||||
Reference in New Issue
Block a user