mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Use a different icon for the debugger tab with both warnings and errors
This makes it possible to see if both errors and warnings were pushed without having to open the tab.
This commit is contained in:
		
							parent
							
								
									1c6b1838b9
								
							
						
					
					
						commit
						564f8ccc13
					
				
					 3 changed files with 11 additions and 6 deletions
				
			
		|  | @ -261,10 +261,12 @@ void EditorDebuggerNode::_notification(int p_what) { | |||
| 			debugger_button->set_icon(Ref<Texture2D>()); | ||||
| 		} else { | ||||
| 			debugger_button->set_text(TTR("Debugger") + " (" + itos(error_count + warning_count) + ")"); | ||||
| 			if (error_count == 0) { | ||||
| 				debugger_button->set_icon(get_theme_icon("Warning", "EditorIcons")); | ||||
| 			} else { | ||||
| 			if (error_count >= 1 && warning_count >= 1) { | ||||
| 				debugger_button->set_icon(get_theme_icon("ErrorWarning", "EditorIcons")); | ||||
| 			} else if (error_count >= 1) { | ||||
| 				debugger_button->set_icon(get_theme_icon("Error", "EditorIcons")); | ||||
| 			} else { | ||||
| 				debugger_button->set_icon(get_theme_icon("Warning", "EditorIcons")); | ||||
| 			} | ||||
| 		} | ||||
| 		last_error_count = error_count; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hugo Locurcio
						Hugo Locurcio