mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Allow negative indexes in ItemList and PopupMenu
This commit is contained in:
		
							parent
							
								
									d5076439e4
								
							
						
					
					
						commit
						42078dec9f
					
				
					 25 changed files with 163 additions and 59 deletions
				
			
		|  | @ -579,7 +579,7 @@ void ScriptTextEditor::_update_bookmark_list() { | |||
| 		} | ||||
| 
 | ||||
| 		bookmarks_menu->add_item(String::num((int)bookmark_list[i] + 1) + " - `" + line + "`"); | ||||
| 		bookmarks_menu->set_item_metadata(bookmarks_menu->get_item_count() - 1, bookmark_list[i]); | ||||
| 		bookmarks_menu->set_item_metadata(-1, bookmark_list[i]); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  | @ -731,7 +731,7 @@ void ScriptTextEditor::_update_breakpoint_list() { | |||
| 		} | ||||
| 
 | ||||
| 		breakpoints_menu->add_item(String::num((int)breakpoint_list[i] + 1) + " - `" + line + "`"); | ||||
| 		breakpoints_menu->set_item_metadata(breakpoints_menu->get_item_count() - 1, breakpoint_list[i]); | ||||
| 		breakpoints_menu->set_item_metadata(-1, breakpoint_list[i]); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kobewi
						kobewi