raiguard / EditorExtensions

Extends the Factorio map editor with new features, testing tools, and other utilities to aid with sandbox play and scenario creation.
https://mods.factorio.com/mod/EditorExtensions
Other
28 stars 11 forks source link

Editor window now adjusts position to avoid overlapping with mod_gui elements #198

Open MonoToasts opened 1 week ago

MonoToasts commented 1 week ago

Description

image image

In recent versions of Factorio, the editor window automatically adjusts its position to avoid overlapping with any mod_gui elements. This behavior eliminates the need for manual adjustments to address such conflicts.

From my testing, removing the following lines of code resolves the issue depicted in the first screenshot, allowing the interface to correctly appear as shown in the second screenshot.

https://github.com/raiguard/EditorExtensions/blob/bd3546bbb9f359c85434ca109e2e3f3d8bc8a11b/scripts/editor.lua#L53-L55

Reproduction

Install the Editor Extensions and Factory Planner mods. Load a saved game. Open the map editor mode. Observe the location of the editor window.