You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change how _make_visible is called involving _edit and _handles
#14541
I've been making my own editor plugin that's essentially an alternative script editor. I've been trying to implement a "pop out window" feature similar to the default script editor, but I'm finding some issues with how the editor plugin system is handling it.
I've overridden the _handles and _edit methods of the EditorPlugin, and when my plugin is docked it feels great
func_handles(object: Object) ->bool:
returnobjectisScriptfunc_edit(object: Object):
ifobject==null:
return# code that opens the file in my plugin
However on the implementation of the pop out window, I'm finding this really annoying irk when opening a file in the editor. Because calls to _edit are preceded by a call to the prior main screen's _make_visible(false), it changes the main screen, ruining the flow of the editing experience.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been making my own editor plugin that's essentially an alternative script editor. I've been trying to implement a "pop out window" feature similar to the default script editor, but I'm finding some issues with how the editor plugin system is handling it.
I've overridden the
_handlesand_editmethods of the EditorPlugin, and when my plugin is docked it feels greatHowever on the implementation of the pop out window, I'm finding this really annoying irk when opening a file in the editor. Because calls to _edit are preceded by a call to the prior main screen's
_make_visible(false), it changes the main screen, ruining the flow of the editing experience.2026-03-25_12-16-55.mp4
The default script editor doesn't have this problem because it cheats while it's floating.
I'm not entirely sure on what would be a good approach, but it would have to be backwards compatible. Maybe another virtual method?
All reactions