You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename Control margin to offset
This commit is contained in:
@@ -225,16 +225,16 @@ TextureLayeredEditor::TextureLayeredEditor() {
|
||||
layer->set_step(1);
|
||||
layer->set_max(100);
|
||||
add_child(layer);
|
||||
layer->set_anchor(MARGIN_RIGHT, 1);
|
||||
layer->set_anchor(MARGIN_LEFT, 1);
|
||||
layer->set_anchor(SIDE_RIGHT, 1);
|
||||
layer->set_anchor(SIDE_LEFT, 1);
|
||||
layer->set_h_grow_direction(GROW_DIRECTION_BEGIN);
|
||||
layer->set_modulate(Color(1, 1, 1, 0.8));
|
||||
info = memnew(Label);
|
||||
add_child(info);
|
||||
info->set_anchor(MARGIN_RIGHT, 1);
|
||||
info->set_anchor(MARGIN_LEFT, 1);
|
||||
info->set_anchor(MARGIN_BOTTOM, 1);
|
||||
info->set_anchor(MARGIN_TOP, 1);
|
||||
info->set_anchor(SIDE_RIGHT, 1);
|
||||
info->set_anchor(SIDE_LEFT, 1);
|
||||
info->set_anchor(SIDE_BOTTOM, 1);
|
||||
info->set_anchor(SIDE_TOP, 1);
|
||||
info->set_h_grow_direction(GROW_DIRECTION_BEGIN);
|
||||
info->set_v_grow_direction(GROW_DIRECTION_BEGIN);
|
||||
info->add_theme_color_override("font_color", Color(1, 1, 1, 1));
|
||||
|
||||
Reference in New Issue
Block a user