|
@@ -495,7 +495,7 @@ CODE
|
|
- 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully breakage should be minimal.
|
|
- 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully breakage should be minimal.
|
|
- 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore.
|
|
- 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore.
|
|
If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar.
|
|
If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar.
|
|
- This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color:
|
|
|
|
|
|
+ This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color:
|
|
ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); }
|
|
ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); }
|
|
If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color.
|
|
If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color.
|
|
- 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext().
|
|
- 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext().
|
|
@@ -775,8 +775,8 @@ CODE
|
|
==============
|
|
==============
|
|
|
|
|
|
Q: How can I help?
|
|
Q: How can I help?
|
|
- A: - Businesses: please reach out to "contact AT dearimgui.org" if you work in a place using Dear ImGui!
|
|
|
|
- We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts.
|
|
|
|
|
|
+ A: - Businesses: please reach out to "contact AT dearimgui.org" if you work in a place using Dear ImGui!
|
|
|
|
+ We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts.
|
|
This is among the most useful thing you can do for Dear ImGui. With increased funding we can hire more people working on this project.
|
|
This is among the most useful thing you can do for Dear ImGui. With increased funding we can hire more people working on this project.
|
|
- Individuals: you can support continued development via PayPal donations. See README.
|
|
- Individuals: you can support continued development via PayPal donations. See README.
|
|
- If you are experienced with Dear ImGui and C++, look at the github issues, look at the Wiki, read docs/TODO.txt
|
|
- If you are experienced with Dear ImGui and C++, look at the github issues, look at the Wiki, read docs/TODO.txt
|
|
@@ -1354,8 +1354,8 @@ const char* ImStrSkipBlank(const char* str)
|
|
#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
|
|
#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
|
|
|
|
|
|
// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h)
|
|
// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h)
|
|
-// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
|
|
|
|
-// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are
|
|
|
|
|
|
+// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
|
|
|
|
+// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are
|
|
// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.)
|
|
// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.)
|
|
//#define IMGUI_USE_STB_SPRINTF
|
|
//#define IMGUI_USE_STB_SPRINTF
|
|
#ifdef IMGUI_USE_STB_SPRINTF
|
|
#ifdef IMGUI_USE_STB_SPRINTF
|
|
@@ -1480,7 +1480,7 @@ ImU32 ImHashStr(const char* data_p, size_t data_size, ImU32 seed)
|
|
ImFileHandle ImFileOpen(const char* filename, const char* mode)
|
|
ImFileHandle ImFileOpen(const char* filename, const char* mode)
|
|
{
|
|
{
|
|
#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__)
|
|
#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__)
|
|
- // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames.
|
|
|
|
|
|
+ // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames.
|
|
const int filename_wsize = ImTextCountCharsFromUtf8(filename, NULL) + 1;
|
|
const int filename_wsize = ImTextCountCharsFromUtf8(filename, NULL) + 1;
|
|
const int mode_wsize = ImTextCountCharsFromUtf8(mode, NULL) + 1;
|
|
const int mode_wsize = ImTextCountCharsFromUtf8(mode, NULL) + 1;
|
|
ImVector<ImWchar> buf;
|
|
ImVector<ImWchar> buf;
|
|
@@ -3875,7 +3875,7 @@ void ImGui::Initialize(ImGuiContext* context)
|
|
ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll;
|
|
ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll;
|
|
g.SettingsHandlers.push_back(ini_handler);
|
|
g.SettingsHandlers.push_back(ini_handler);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
#ifdef IMGUI_HAS_TABLE
|
|
#ifdef IMGUI_HAS_TABLE
|
|
// Add .ini handle for ImGuiTable type
|
|
// Add .ini handle for ImGuiTable type
|
|
{
|
|
{
|
|
@@ -10119,7 +10119,7 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
ImGui::TreePop();
|
|
ImGui::TreePop();
|
|
}
|
|
}
|
|
#endif // #define IMGUI_HAS_DOCK
|
|
#endif // #define IMGUI_HAS_DOCK
|
|
-
|
|
|
|
|
|
+
|
|
// Misc Details
|
|
// Misc Details
|
|
if (ImGui::TreeNode("Internal state"))
|
|
if (ImGui::TreeNode("Internal state"))
|
|
{
|
|
{
|