MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _instance_starting

Method _instance_starting

editor/run/game_view_plugin.cpp:333–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void GameView::_instance_starting(int p_idx, List<String> &r_arguments) {
334 if (!is_feature_enabled) {
335 return;
336 }
337
338 if (p_idx == 0 && embed_on_play && make_floating_on_play && window_wrapper->is_window_available() && !window_wrapper->get_window_enabled() && _get_embed_available() == EMBED_AVAILABLE) {
339 // Set the Floating Window default title. Always considered in DEBUG mode, same as in Window::set_title.
340 String appname = GLOBAL_GET("application/config/name");
341 appname = vformat("%s (DEBUG)", TranslationServer::get_singleton()->translate(appname));
342 window_wrapper->set_window_title(appname);
343
344 _show_update_window_wrapper();
345
346 embedded_process->grab_focus();
347 }
348
349 _update_arguments_for_instance(p_idx, r_arguments);
350}
351
352bool GameView::_instance_rq_screenshot_static(const Callable &p_callback) {
353 ERR_FAIL_NULL_V(singleton, false);

Callers 1

Calls 6

vformatFunction · 0.85
is_window_availableMethod · 0.80
get_window_enabledMethod · 0.80
set_window_titleMethod · 0.80
translateMethod · 0.45
grab_focusMethod · 0.45

Tested by

no test coverage detected