Closed Armitage1982 closed 2 years ago
Hey.
I think C# support would be a nice addition but the code you provided is not enough, I also need the function definition and style
variable definition.
I will be searching for more C# examples and see what I can do.
Seems like the style definition should be:
var style = ImGuiNET.ImGui.GetStyle();
Seems like the style definition should be:
var style = ImGuiNET.ImGui.GetStyle();
You beat me to it 🙂 Indeed it's just : var style = ImGui.GetStyle();
All other methods are provided by ImGui https://github.com/mellinoe/ImGui.NET/blob/master/src/ImGui.NET.SampleProgram/ImGuiController.cs
Now I'm just copy & paste all that inside the SubmitUI static method. I don't know if there are any other features I may have missed but it works for me so 🙂
The .Net implementation lack of any C# version of imgui_demo.cpp. We are a bit left to ourselves to do the conversion from C++.
And what about the function definition? Would this work?
public static void SetupImGuiStyle()
{
// Soft Cherry style from ImThemes
var style = ImGuiNET.ImGui.GetStyle();
...
}
Yes
On Tue, Aug 16, 2022, 23:28 Patitotective @.***> wrote:
And what about the function definition? Would this work?
public static void SetupImGuiStyle() { // Soft Cherry style from ImThemes var style = ImGuiNET.ImGui.GetStyle(); ... }
— Reply to this email directly, view it on GitHub https://github.com/Patitotective/ImThemes/issues/4#issuecomment-1217184467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGXFUX2E36JYBYR4XX43O3VZQBXBANCNFSM56VZN5LA . You are receiving this because you authored the thread.Message ID: @.***>
Closing as implemented in the new v0.2.4 release. (Ignore that the assets say 0.2.3, little error :p)
Great! Really nice, thanks
Le ven. 19 août 2022 à 00:13, Patitotective @.***> a écrit :
Closed #4 https://github.com/Patitotective/ImThemes/issues/4 as completed.
— Reply to this email directly, view it on GitHub https://github.com/Patitotective/ImThemes/issues/4#event-7218006834, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGXFUQXU6PY37VVW4X7UATVZ2YRFANCNFSM56VZN5LA . You are receiving this because you authored the thread.Message ID: @.***>
Hi, Nice handy tool 😀
It would be nice to add a "C#" tab in the tool behind the "Get It" button.
I think the Soft Cherry theme C# code would look like this :