|
@@ -168,6 +168,10 @@ void godot_icall_Internal_EditorRunStop() {
|
|
|
EditorRunBar::get_singleton()->stop_playing();
|
|
|
}
|
|
|
|
|
|
+void godot_icall_Internal_EditorPlugin_AddControlToEditorRunBar(Control *p_control) {
|
|
|
+ EditorRunBar::get_singleton()->get_buttons_container()->add_child(p_control);
|
|
|
+}
|
|
|
+
|
|
|
void godot_icall_Internal_ScriptEditorDebugger_ReloadScripts() {
|
|
|
EditorDebuggerNode *ed = EditorDebuggerNode::get_singleton();
|
|
|
if (ed) {
|
|
@@ -199,12 +203,25 @@ void godot_icall_Globals_EditorDef(const godot_string *p_setting, const godot_va
|
|
|
memnew_placement(r_result, Variant(result));
|
|
|
}
|
|
|
|
|
|
-void godot_icall_Globals_EditorShortcut(const godot_string *p_setting, godot_variant *r_result) {
|
|
|
+void godot_icall_Globals_EditorDefShortcut(const godot_string *p_setting, const godot_string *p_name, Key p_keycode, bool p_physical, godot_variant *r_result) {
|
|
|
+ String setting = *reinterpret_cast<const String *>(p_setting);
|
|
|
+ String name = *reinterpret_cast<const String *>(p_name);
|
|
|
+ Ref<Shortcut> result = ED_SHORTCUT(setting, name, p_keycode, p_physical);
|
|
|
+ memnew_placement(r_result, Variant(result));
|
|
|
+}
|
|
|
+
|
|
|
+void godot_icall_Globals_EditorGetShortcut(const godot_string *p_setting, Ref<Shortcut> *r_result) {
|
|
|
String setting = *reinterpret_cast<const String *>(p_setting);
|
|
|
Ref<Shortcut> result = ED_GET_SHORTCUT(setting);
|
|
|
memnew_placement(r_result, Variant(result));
|
|
|
}
|
|
|
|
|
|
+void godot_icall_Globals_EditorShortcutOverride(const godot_string *p_setting, const godot_string *p_feature, Key p_keycode, bool p_physical) {
|
|
|
+ String setting = *reinterpret_cast<const String *>(p_setting);
|
|
|
+ String feature = *reinterpret_cast<const String *>(p_feature);
|
|
|
+ ED_SHORTCUT_OVERRIDE(setting, feature, p_keycode, p_physical);
|
|
|
+}
|
|
|
+
|
|
|
void godot_icall_Globals_TTR(const godot_string *p_text, godot_string *r_dest) {
|
|
|
String text = *reinterpret_cast<const String *>(p_text);
|
|
|
memnew_placement(r_dest, String(TTR(text)));
|
|
@@ -251,12 +268,15 @@ static const void *unmanaged_callbacks[]{
|
|
|
(void *)godot_icall_Internal_EditorNodeShowScriptScreen,
|
|
|
(void *)godot_icall_Internal_EditorRunPlay,
|
|
|
(void *)godot_icall_Internal_EditorRunStop,
|
|
|
+ (void *)godot_icall_Internal_EditorPlugin_AddControlToEditorRunBar,
|
|
|
(void *)godot_icall_Internal_ScriptEditorDebugger_ReloadScripts,
|
|
|
(void *)godot_icall_Internal_CodeCompletionRequest,
|
|
|
(void *)godot_icall_Globals_EditorScale,
|
|
|
(void *)godot_icall_Globals_GlobalDef,
|
|
|
(void *)godot_icall_Globals_EditorDef,
|
|
|
- (void *)godot_icall_Globals_EditorShortcut,
|
|
|
+ (void *)godot_icall_Globals_EditorDefShortcut,
|
|
|
+ (void *)godot_icall_Globals_EditorGetShortcut,
|
|
|
+ (void *)godot_icall_Globals_EditorShortcutOverride,
|
|
|
(void *)godot_icall_Globals_TTR,
|
|
|
(void *)godot_icall_Utils_OS_GetPlatformName,
|
|
|
(void *)godot_icall_Utils_OS_UnixFileHasExecutableAccess,
|