[Scene] Add SceneStringNames::item_selected
This commit is contained in:
@@ -640,7 +640,7 @@ EditorProfiler::EditorProfiler() {
|
||||
display_mode->add_item(TTR("Average Time (ms)"));
|
||||
display_mode->add_item(TTR("Frame %"));
|
||||
display_mode->add_item(TTR("Physics Frame %"));
|
||||
display_mode->connect("item_selected", callable_mp(this, &EditorProfiler::_combo_changed));
|
||||
display_mode->connect(SceneStringName(item_selected), callable_mp(this, &EditorProfiler::_combo_changed));
|
||||
|
||||
hb->add_child(display_mode);
|
||||
|
||||
@@ -652,7 +652,7 @@ EditorProfiler::EditorProfiler() {
|
||||
// TRANSLATORS: This is an option in the profiler to display the time spent in a function, exincluding the time spent in other functions called by that function.
|
||||
display_time->add_item(TTR("Self"));
|
||||
display_time->set_tooltip_text(TTR("Inclusive: Includes time from other functions called by this function.\nUse this to spot bottlenecks.\n\nSelf: Only count the time spent in the function itself, not in other functions called by that function.\nUse this to find individual functions to optimize."));
|
||||
display_time->connect("item_selected", callable_mp(this, &EditorProfiler::_combo_changed));
|
||||
display_time->connect(SceneStringName(item_selected), callable_mp(this, &EditorProfiler::_combo_changed));
|
||||
|
||||
hb->add_child(display_time);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user