mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
Rename Control margin to offset
This commit is contained in:
parent
30d469a5e0
commit
4b8b803931
106 changed files with 1278 additions and 1278 deletions
|
|
@ -69,12 +69,12 @@ Camera3DEditor::Camera3DEditor() {
|
|||
|
||||
preview->set_text(TTR("Preview"));
|
||||
preview->set_toggle_mode(true);
|
||||
preview->set_anchor(MARGIN_LEFT, Control::ANCHOR_END);
|
||||
preview->set_anchor(MARGIN_RIGHT, Control::ANCHOR_END);
|
||||
preview->set_margin(MARGIN_LEFT, -60);
|
||||
preview->set_margin(MARGIN_RIGHT, 0);
|
||||
preview->set_margin(MARGIN_TOP, 0);
|
||||
preview->set_margin(MARGIN_BOTTOM, 10);
|
||||
preview->set_anchor(SIDE_LEFT, Control::ANCHOR_END);
|
||||
preview->set_anchor(SIDE_RIGHT, Control::ANCHOR_END);
|
||||
preview->set_offset(SIDE_LEFT, -60);
|
||||
preview->set_offset(SIDE_RIGHT, 0);
|
||||
preview->set_offset(SIDE_TOP, 0);
|
||||
preview->set_offset(SIDE_BOTTOM, 10);
|
||||
preview->connect("pressed", callable_mp(this, &Camera3DEditor::_pressed));
|
||||
}
|
||||
|
||||
|
|
@ -100,12 +100,12 @@ Camera3DEditorPlugin::Camera3DEditorPlugin(EditorNode *p_node) {
|
|||
/* camera_editor = memnew( CameraEditor );
|
||||
editor->get_viewport()->add_child(camera_editor);
|
||||
|
||||
camera_editor->set_anchor(MARGIN_LEFT,Control::ANCHOR_END);
|
||||
camera_editor->set_anchor(MARGIN_RIGHT,Control::ANCHOR_END);
|
||||
camera_editor->set_margin(MARGIN_LEFT,60);
|
||||
camera_editor->set_margin(MARGIN_RIGHT,0);
|
||||
camera_editor->set_margin(MARGIN_TOP,0);
|
||||
camera_editor->set_margin(MARGIN_BOTTOM,10);
|
||||
camera_editor->set_anchor(SIDE_LEFT,Control::ANCHOR_END);
|
||||
camera_editor->set_anchor(SIDE_RIGHT,Control::ANCHOR_END);
|
||||
camera_editor->set_offset(SIDE_LEFT,60);
|
||||
camera_editor->set_offset(SIDE_RIGHT,0);
|
||||
camera_editor->set_offset(SIDE_TOP,0);
|
||||
camera_editor->set_offset(SIDE_BOTTOM,10);
|
||||
|
||||
|
||||
camera_editor->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue