

Description
<span style="font-family: verdana, geneva, sans-serif; font-size: 12pt;">You can support me on Patreon:
</span>
<span style="font-size: 14pt;">Description</span>
<span style="font-size: 12pt;">This is a library that brings Dear ImGui to Vintage Story</span>
<span style="font-size: 12pt;">To increase/decrease font size (and GUI size as a result), use hotkeys (CTRL + - and CTRL + = by default)</span>
<span style="font-size: 12pt;">From Dear ImGui git repository:</span>
<span style="font-size: 12pt;">Dear ImGui is designed to enable fast iterations and to empower programmers to create content creation tools and visualization / debug tools (as opposed to UI for the average end-user). It favors simplicity and productivity toward this goal and lacks certain features commonly found in more high-level libraries.</span>
<span style="font-size: 12pt;">Wrapper for ImGui.NET which in it self is wrapper for Dear ImGui - graphical user interface library. In order to use this wrapper you just need to add reference on ImGui.NET (<span style="text-decoration: underline;">1.89.7.1</span>) and the mod dll itself (like with other mods dependencies, both are in this mod's archive), and add your methods for constructing ImGui windows to VSImGuiModSystem.SetUpImGuiWindows event. Another example: github.com/maltiez2/vsmod_configlib/blob/master/configlib/src/GUI/ConfigWindow.cs</span>
<span style="font-size: 12pt;"><span style="text-decoration: line-through;">Supports also</span> Not actually (working on it, it seems I need to follow this procedure, if somebody will provide this binaries I'll inculde them in mod):</span>
- <span style="font-size: 12pt;">ImGuizmo</span>
- <span style="font-size: 12pt;">ImPlot</span>
- <span style="font-size: 12pt;">ImNodes</span>
<span style="font-size: 12pt;">This mod will allow you to make development tools like tfedit or simple throw away debug/visualisation tools for working on your mod. It would not require your mod to depend on this library if you need it only for debugging. Just wrapp all the code you dont want to ship in #if DEBUG #endif . Bulding such tools is as easy as adding logs.</span>
You might want to take a look at: ToastLib for additional functionality
<span style="font-size: 14pt;">Features</span>
- <span style="font-size: 12pt;">Quick and easy small debug tools - you can display and edit in real time any value in any part of your code no matter how deep it is with just a one line (static methods of
DebugWindowclass fromVSImGuinamespace)</span> - <span style="font-size: 12pt;">No dependencies required for debug tools - just wrap all the ImGui and VSImGui methods calls you add in '
#if DEBUG #endif'</span> - <span style="font-size: 12pt;">Easy to build debug tools - add more sophisticated dev tools specific to your mod to speed up development and ease debugging (for example, Animation Manager library has in-game animation editor in its dev build)</span>
- <span style="font-size: 12pt;">Easy and quick to layout GUI with docking and a lot of built-in functionality like color pickers</span>
- <span style="font-size: 12pt;">Styles - you can change every color and size and even tile your window with a texture with a simple
StyleandWindowStyleclasses, you can serialize style into json and load it from json</span>
<span style="font-size: 14pt;">Examples and docs (outdated)
</span>
<span style="font-size: 12pt;">ImGui manual for C++, but .NET methods should have same names and similar arguments: https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html</span>
<span style="font-size: 12pt;">ImGui wiki: https://github.com/ocornut/imgui/wiki</span>
<span style="font-size: 12pt;">Example of showing demo window: api.ModLoader.GetModSystem<VSImGuiModSystem>().SetUpImGuiWindows += ImGuiNET.ImGui.ShowDemoWindow;</span>
Ratings & reviews
Sign in to leave a rating or comment.

