-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading an .ini file during runtime loads windows without docking. #6263
Comments
That might be important and is very easy to find out. Version information is at the top of your In general, manual .ini file loading should happen between |
In theory we support loading .ini files within the same context but e.g. #2573, #3215 seems to has issue whereas my test-bed did work (#2573 (comment)). Also maybe see e.g. #4033. I'm unlikely to be able to provide support for that soon, docking has been tricky to deal with. I would say your best-bet is to narrow down simpler repro and test-beds based on examples and then experimenting with that. |
Sorry for the delay, i am currently busy with work. When loading a new .ini file. Will any existing elements that match the contents of the file get updated upon load? I have done some research as to how the loading and saving .ini files works and i have not really grasped how the system works. |
Alright. After some testing and some refactoring, i managed to successfully load an .ini file before |
Version: v1.89.2
Branch: docking
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
Operating System: Windows 10
I am trying to load a .ini file during runtime in order to implement a editor ui layout system silimar to Unity's. Where the end user would be able to save and load the below IMGUI Window Layout
Since each window element in my editor implementation is an instance of classes inheriting from a base Editor Class, i need to store each type of class in a separate .json file and create said instances in the same order they are saved. This however causes the .ini file to load incorrectly when calling the
ImGui::LoadIniSettingsFromDisk()
function:Here is the following implementation that i have concluded to thus far:
Loading Functions:
Saving Functions:
The text was updated successfully, but these errors were encountered: