Rename Control margin to offset

This commit is contained in:
Marcel Admiraal 2020-12-22 16:24:29 +00:00
parent 30d469a5e0
commit 4b8b803931
106 changed files with 1278 additions and 1278 deletions

View file

@ -825,10 +825,10 @@ void RendererCanvasCull::canvas_item_add_nine_patch(RID p_item, const Rect2 &p_r
style->source = p_source;
style->draw_center = p_draw_center;
style->color = p_modulate;
style->margin[MARGIN_LEFT] = p_topleft.x;
style->margin[MARGIN_TOP] = p_topleft.y;
style->margin[MARGIN_RIGHT] = p_bottomright.x;
style->margin[MARGIN_BOTTOM] = p_bottomright.y;
style->margin[SIDE_LEFT] = p_topleft.x;
style->margin[SIDE_TOP] = p_topleft.y;
style->margin[SIDE_RIGHT] = p_bottomright.x;
style->margin[SIDE_BOTTOM] = p_bottomright.y;
style->axis_x = p_x_axis_mode;
style->axis_y = p_y_axis_mode;
}