mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Make small changes to the new connection info on script feature
This commit is contained in:
		
							parent
							
								
									80f91c9d36
								
							
						
					
					
						commit
						4bca3236d1
					
				
					 2 changed files with 3 additions and 4 deletions
				
			
		|  | @ -79,7 +79,6 @@ void ConnectionInfoDialog::popup_connections(String p_method, Vector<Node *> p_n | ||||||
| 
 | 
 | ||||||
| ConnectionInfoDialog::ConnectionInfoDialog() { | ConnectionInfoDialog::ConnectionInfoDialog() { | ||||||
| 	set_title(TTR("Connections to method:")); | 	set_title(TTR("Connections to method:")); | ||||||
| 	set_resizable(true); |  | ||||||
| 
 | 
 | ||||||
| 	VBoxContainer *vbc = memnew(VBoxContainer); | 	VBoxContainer *vbc = memnew(VBoxContainer); | ||||||
| 	vbc->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 8 * EDSCALE); | 	vbc->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 8 * EDSCALE); | ||||||
|  | @ -89,7 +88,6 @@ ConnectionInfoDialog::ConnectionInfoDialog() { | ||||||
| 	add_child(vbc); | 	add_child(vbc); | ||||||
| 
 | 
 | ||||||
| 	method = memnew(Label); | 	method = memnew(Label); | ||||||
| 	method->set_text(""); |  | ||||||
| 	method->set_align(Label::ALIGN_CENTER); | 	method->set_align(Label::ALIGN_CENTER); | ||||||
| 	vbc->add_child(method); | 	vbc->add_child(method); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -965,6 +965,7 @@ void TextEdit::_notification(int p_what) { | ||||||
| 
 | 
 | ||||||
| 						// draw info icons
 | 						// draw info icons
 | ||||||
| 						if (draw_info_gutter && text.has_info_icon(line)) { | 						if (draw_info_gutter && text.has_info_icon(line)) { | ||||||
|  | 							int vertical_gap = (get_row_height() * 40) / 100; | ||||||
| 							int horizontal_gap = (cache.info_gutter_width * 30) / 100; | 							int horizontal_gap = (cache.info_gutter_width * 30) / 100; | ||||||
| 							int gutter_left = cache.style_normal->get_margin(MARGIN_LEFT) + cache.breakpoint_gutter_width; | 							int gutter_left = cache.style_normal->get_margin(MARGIN_LEFT) + cache.breakpoint_gutter_width; | ||||||
| 
 | 
 | ||||||
|  | @ -979,8 +980,8 @@ void TextEdit::_notification(int p_what) { | ||||||
| 							} | 							} | ||||||
| 
 | 
 | ||||||
| 							Size2i icon_pos; | 							Size2i icon_pos; | ||||||
| 							int xofs = horizontal_gap - (info_icon->get_width()) / 2; | 							int xofs = horizontal_gap - (info_icon->get_width() / 4); | ||||||
| 							int yofs = (get_row_height() - info_icon->get_height()) / 2; | 							int yofs = vertical_gap - (info_icon->get_height() / 4); | ||||||
| 							icon_pos.x = gutter_left + xofs + ofs_x; | 							icon_pos.x = gutter_left + xofs + ofs_x; | ||||||
| 							icon_pos.y = ofs_y + yofs; | 							icon_pos.y = ofs_y + yofs; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Alexsander Silva Dias
						Michael Alexsander Silva Dias