mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Replace GUI anchor type by a float between 0 and 1
This commit is contained in:
		
							parent
							
								
									9575dbdf78
								
							
						
					
					
						commit
						0d35d4d53b
					
				
					 27 changed files with 117 additions and 169 deletions
				
			
		|  | @ -2485,7 +2485,7 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed | |||
| 
 | ||||
| 	preview_camera = memnew(Button); | ||||
| 	preview_camera->set_toggle_mode(true); | ||||
| 	preview_camera->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_END, 90 * EDSCALE); | ||||
| 	preview_camera->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_END, -90 * EDSCALE); | ||||
| 	preview_camera->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 10 * EDSCALE); | ||||
| 	preview_camera->set_text("preview"); | ||||
| 	surface->add_child(preview_camera); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gilles Roudiere
						Gilles Roudiere