ImGui::CreateContext();
ImGui_ImplWin32_Init(GetActiveWindow());
ImGui_ImplDX9_Init(SF->getRender()->getD3DDevice());
ImGuiIO& IO = ImGui::GetIO();
if (!bChangeFont) {
ImFontConfig font_config;
TCHAR path[MAX_PATH];
HRESULT hr = SHGetFolderPathA(NULL, CSIDL_FONTS, NULL, SHGFP_TYPE_CURRENT, path);
std::string fPath = std::string(path).append("\\arialbd.ttf");
IO.Fonts->AddFontFromFileTTF(fPath.c_str(), 14.0f, &font_config, IO.Fonts->GetGlyphRangesCyrillic());
smallFont = IO.Fonts->AddFontFromFileTTF(fPath.c_str(), 12.0f, &font_config, IO.Fonts->GetGlyphRangesCyrillic());
bChangeFont = true;
}
ImGuiStyle* style = &ImGui::GetStyle();