Add expand modes to TextureRect
This commit is contained in:
parent
caf94f244e
commit
dfc4367a47
13 changed files with 86 additions and 28 deletions
|
|
@ -178,7 +178,7 @@ void GradientTexture2DEditorRect::_notification(int p_what) {
|
|||
GradientTexture2DEditorRect::GradientTexture2DEditorRect() {
|
||||
checkerboard = memnew(TextureRect);
|
||||
checkerboard->set_stretch_mode(TextureRect::STRETCH_TILE);
|
||||
checkerboard->set_ignore_texture_size(true);
|
||||
checkerboard->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
|
||||
checkerboard->set_draw_behind_parent(true);
|
||||
add_child(checkerboard, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue