You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Rename Control margin to offset
This commit is contained in:
@@ -67,8 +67,8 @@ public:
|
||||
SceneTree::init();
|
||||
|
||||
Panel *frame = memnew(Panel);
|
||||
frame->set_anchor(MARGIN_RIGHT, Control::ANCHOR_END);
|
||||
frame->set_anchor(MARGIN_BOTTOM, Control::ANCHOR_END);
|
||||
frame->set_anchor(SIDE_RIGHT, Control::ANCHOR_END);
|
||||
frame->set_anchor(SIDE_BOTTOM, Control::ANCHOR_END);
|
||||
frame->set_end(Point2(0, 0));
|
||||
|
||||
Ref<Theme> t = memnew(Theme);
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
|
||||
richtext->set_position(Point2(600, 210));
|
||||
richtext->set_size(Point2(180, 250));
|
||||
richtext->set_anchor_and_margin(MARGIN_RIGHT, Control::ANCHOR_END, -20);
|
||||
richtext->set_anchor_and_offset(SIDE_RIGHT, Control::ANCHOR_END, -20);
|
||||
|
||||
frame->add_child(richtext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user