mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Tables: Allow hot-reload of settings (merge policy), tidying up settings code
This commit is contained in:
parent
9b6d0fdb7a
commit
95c273618e
3 changed files with 91 additions and 50 deletions
10
imgui.cpp
10
imgui.cpp
|
|
@ -3970,15 +3970,7 @@ void ImGui::Initialize(ImGuiContext* context)
|
|||
|
||||
#ifdef IMGUI_HAS_TABLE
|
||||
// Add .ini handle for ImGuiTable type
|
||||
{
|
||||
ImGuiSettingsHandler ini_handler;
|
||||
ini_handler.TypeName = "Table";
|
||||
ini_handler.TypeHash = ImHashStr("Table");
|
||||
ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen;
|
||||
ini_handler.ReadLineFn = TableSettingsHandler_ReadLine;
|
||||
ini_handler.WriteAllFn = TableSettingsHandler_WriteAll;
|
||||
g.SettingsHandlers.push_back(ini_handler);
|
||||
}
|
||||
TableInstallSettingsHandler(context);
|
||||
#endif // #ifdef IMGUI_HAS_TABLE
|
||||
|
||||
#ifdef IMGUI_HAS_DOCK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue