Engy69 said:Hello! Can anyone help me with this error? I would be grateful if someone would tell me how I could solve
C2440: '=' : cannot convert from 'ImVec2' to 'ImGuiAlign'
line 221: style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
style.WindowTitleAlign = (ImGuiAlign)ImVec2(0.5f, 0.5f);
style.WindowTitleAlign = ImGuiAlign_Center;
monday said:I haveno idea what is the expected value of "style.WindowTitleAlign" and what is the return of "ImVec2" function but you could try casting it to desired type
Code:style.WindowTitleAlign = (ImGuiAlign)ImVec2(0.5f, 0.5f);
or try to use
https://github.com/ocornut/imgui/issues/222#issuecomment-249415864Code:style.WindowTitleAlign = ImGuiAlign_Center;
idk if these will work though
thanks for the involvement, but unfortunately I still have not solved, I tried both codes and I get this error
Engy69 said:monday said:I haveno idea what is the expected value of "style.WindowTitleAlign" and what is the return of "ImVec2" function but you could try casting it to desired type
Code:style.WindowTitleAlign = (ImGuiAlign)ImVec2(0.5f, 0.5f);
or try to use
https://github.com/ocornut/imgui/issues/222#issuecomment-249415864Code:style.WindowTitleAlign = ImGuiAlign_Center;
idk if these will work though
thanks for the involvement, but unfortunately I still have not solved, I tried both codes and I get this error