Skip to content

Commit 313676d

Browse files
committed
Settings: omit outputing Collapsed=0 in .ini file. Changelog + docs tweaks
1 parent 8ee8513 commit 313676d

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

docs/CHANGELOG.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ Breaking changes:
6767

6868
Other changes:
6969

70-
- Nav: Tabbing always enable nav highlight when ImGuiConfigFlags_NavEnableKeyboard is set.
71-
Previously was inconsistent and only enabled when stepping through a non-input item.
72-
(#6802, #3092, #5759, #787)
7370
- Windows:
7471
- BeginChild(): Internal name used by child windows now omits the hash/id if the child
7572
window is submitted in root of id stack of parent window. Makes debugging/metrics easier
@@ -80,9 +77,8 @@ Other changes:
8077
- Double-clicking bottom or right window border auto-resize on a singles axis.
8178
- Separators:
8279
- Altered end-points to use more standard boundaries. (#205, #4787, #1643)
83-
Left position is always current cursor X position.
84-
Right position is always work-rect rightmost edge.
85-
- Effectively means that:
80+
Left position is always current cursor X position, right position is always work-rect
81+
rightmost edge. It effectively means that:
8682
- A separator in the root of a window will end up a little more distant from edges
8783
than previously (essentially following WindowPadding instead of clipping edges).
8884
- A separator inside a table cell end up a little distance from edges instead of
@@ -100,8 +96,8 @@ Other changes:
10096
- Made is possible to combine ImGuiHoveredFlags_ForTooltip with a ImGuiHoveredFlags_DelayXXX
10197
override. (#1485)
10298
- Drag and Drop:
103-
- Reworked drop target highlight: reduce rectangle to its visible portion, and
104-
then expand slightly. A full rectangle is always visible and it may protrude slightly. (#4281, #3272)
99+
- Reworked drop target highlight: reduce rectangle to its visible portion, and then expand
100+
slightly. A full rectangle is always visible and it may protrude slightly. (#4281, #3272)
105101
- Fixed submitting a tooltip from drop target location when using AcceptDragDropPayload()
106102
with ImGuiDragDropFlags_AcceptNoPreviewTooltip and submitting a tooltip manually.
107103
- Tables:
@@ -126,27 +122,31 @@ Other changes:
126122
- MenuBar: Fixed an issue where layouting an item in the menu-bar would erroneously
127123
register contents size in a way that would affect the scrolling layer.
128124
Was most often noticable when using an horizontal scrollbar. (#6789)
125+
- InputText:
126+
- InputTextMultiline: Fixed a crash pressing Down on last empty line of a multiline buffer.
127+
(regression from 1.89.2, only happened in some states). (#6783, #6000)
128+
- InputTextMultiline: Fixed Tabbing cycle leading to a situation where Enter key wouldn't
129+
be accepted by the widget when navigation highlight is visible. (#6802, #3092, #5759, #787)
130+
- Nav: Tabbing always enable nav highlight when ImGuiConfigFlags_NavEnableKeyboard is set.
131+
Previously was inconsistent and only enabled when stepping through a non-input item.
132+
(#6802, #3092, #5759, #787)
129133
- TreeNode: Added ImGuiTreeNodeFlags_SpanAllColumns for use in tables. (#3151, #3565, #2451, #2438)
130134
- TabBar: Fixed position of unsaved document marker (ImGuiTabItemFlags_UnsavedDocument) which was
131135
accidentally offset in 1.89.9. (#6862) [@alektron]
132-
- InputTextMultiline: Fixed a crash pressing Down on last empty line of a multiline buffer.
133-
(regression from 1.89.2, only happened in some states). (#6783, #6000)
134-
- InputTextMultiline: Fixed Tabbing cycle leading to a situation where Enter key wouldn't
135-
be accepted by the widget when navigation highlight is visible. (#6802, #3092, #5759, #787)
136136
- BeginGroup(): Fixed a bug pushing line lower extent too far down when called after a call
137137
to SameLine() followed by manual cursor manipulation.
138138
- BeginCombo(): Added ImGuiComboFlags_WidthFitPreview flag. (#6881) [@mpv-enjoyer]
139139
- BeginListBox(): Fixed not consuming SetNextWindowXXX data when returning false.
140140
- Fonts:
141-
- Arument 'float size_pixels' passed to AddFontXXX() functions is now rounded to lowest integer.
141+
- Argument 'float size_pixels' passed to AddFontXXX() functions is now rounded to lowest integer.
142142
This is because our layout/font system currently doesn't fully support non-integer sizes. Until
143143
it does, this has been a common pitfall leading to more or less subtle issues. (#3164, #3309, #6800)
144144
- Better assert during load when passing truncated font data or wrong data size. (#6822)
145145
- Ensure calling AddFontXXX function doesn't invalidates ImFont's ConfigData pointers
146146
prior to building again. (#6825)
147147
- imgui_freetype: Fixed a warning and leak in IMGUI_ENABLE_FREETYPE_LUNASVG support. (#6842, #6591)
148148
- Inputs: Added IsKeyChordPressed() helper function e.g. IsKeyChordPressed(ImGuiMod_Ctrl | ImGuiKey_S).
149-
(Note that ImGuiMod_Shortcut may be used as an alias for Cmd on OSX and Ctrl on other systems).
149+
(note that ImGuiMod_Shortcut may be used as an alias for Cmd on OSX and Ctrl on other systems).
150150
- Misc: Most text functions also treat "%.*s" (along with "%s") specially to avoid formatting. (#3466, #6846)
151151
- IO: Add extra keys to ImGuiKey enum: ImGuiKey_F13 to ImGuiKey_F24. (#6891, #4921)
152152
- IO: Add extra keys to ImGuiKey enum: ImGuiKey_AppBack, ImGuiKey_AppForward. (#4921)

docs/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Dear ImGui is designed to **enable fast iterations** and to **empower programmer
2727
Dear ImGui is particularly suited to integration in game engines (for tooling), real-time 3D applications, fullscreen applications, embedded applications, or any applications on console platforms where operating system features are non-standard.
2828

2929
- Minimize state synchronization.
30-
- Minimize state storage on user side.
30+
- Minimize UI-related state storage on user side.
3131
- Minimize setup and maintenance.
3232
- Easy to use to create dynamic UI which are the reflection of a dynamic data set.
3333
- Easy to use to create code-driven and data-driven tools.
@@ -133,7 +133,7 @@ Officially maintained backends/bindings (in repository):
133133
- Many bindings are auto-generated (by good old [cimgui](https://github.com/cimgui/cimgui) or newer/experimental [dear_bindings](https://github.com/dearimgui/dear_bindings)), you can use their metadata output to generate bindings for other languages.
134134

135135
[Useful Extensions/Widgets](https://github.com/ocornut/imgui/wiki/Useful-Extensions) wiki page:
136-
- Automation/testing, Text editors, node editors, timeline editors, plotting, software renderers, remote network access, memory editors, gizmos, etc. One of the most notable and well supported extension is [ImPlot](https://github.com/epezent/implot).
136+
- Automation/testing, Text editors, node editors, timeline editors, plotting, software renderers, remote network access, memory editors, gizmos, etc. Notable and well supported extensions include [ImPlot](https://github.com/epezent/implot) and [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine).
137137

138138
Also see [Wiki](https://github.com/ocornut/imgui/wiki) for more links and ideas.
139139

@@ -160,7 +160,7 @@ See: [Upcoming Changes](https://github.com/ocornut/imgui/wiki/Upcoming-Changes).
160160

161161
See: [Dear ImGui Test Engine + Test Suite](https://github.com/ocornut/imgui_test_engine) for Automation & Testing.
162162

163-
Getting started? For first-time users having issues compiling/linking/running or issues loading fonts, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). For other questions, bug reports, requests, feedback, you may post on [GitHub Issues](https://github.com/ocornut/imgui/issues). Please read and fill the New Issue template carefully.
163+
Getting started? For first-time users having issues compiling/linking/running or issues loading fonts, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). For ANY other questions, bug reports, requests, feedback, please post on [GitHub Issues](https://github.com/ocornut/imgui/issues). Please read and fill the New Issue template carefully.
164164

165165
Private support is available for paying business customers (E-mail: _contact @ dearimgui dot com_).
166166

@@ -177,10 +177,10 @@ How to help
177177

178178
**How can I help?**
179179

180-
- See [GitHub Forum/Issues](https://github.com/ocornut/imgui/issues) and [GitHub Discussions](https://github.com/ocornut/imgui/discussions).
180+
- See [GitHub Forum/Issues](https://github.com/ocornut/imgui/issues).
181181
- You may help with development and submit pull requests! Please understand that by submitting a PR you are also submitting a request for the maintainer to review your code and then take over its maintenance forever. PR should be crafted both in the interest of the end-users and also to ease the maintainer into understanding and accepting it.
182182
- See [Help wanted](https://github.com/ocornut/imgui/wiki/Help-Wanted) on the [Wiki](https://github.com/ocornut/imgui/wiki/) for some more ideas.
183-
- Have your company financially support this project with invoiced sponsoring/support contracts or by buying a license for [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine) (please reach out: omar AT dearimgui DOT com).
183+
- Be a [sponsor](https://github.com/ocornut/imgui/wiki/Sponsors)! Have your company financially support this project via invoiced sponsors/maintenance or by buying a license for [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine) (please reach out: omar AT dearimgui DOT com).
184184

185185
Sponsors
186186
--------
@@ -201,9 +201,9 @@ Credits
201201

202202
Developed by [Omar Cornut](https://www.miracleworld.net) and every direct or indirect [contributors](https://github.com/ocornut/imgui/graphs/contributors) to the GitHub. The early version of this library was developed with the support of [Media Molecule](https://www.mediamolecule.com) and first used internally on the game [Tearaway](https://tearaway.mediamolecule.com) (PS Vita).
203203

204-
Recurring contributors (2022): Omar Cornut [@ocornut](https://github.com/ocornut), Rokas Kupstys [@rokups](https://github.com/rokups) (a good portion of work on automation system and regression tests now available in [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine)).
204+
Recurring contributors include Rokas Kupstys [@rokups](https://github.com/rokups) (2020-2022): a good portion of work on automation system and regression tests now available in [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine).
205205

206-
Sponsoring, support contracts and other B2B transactions are hosted and handled by [Disco Hello](https://www.discohello.com).
206+
Sponsoring, maintenance/support contracts and other B2B transactions are hosted and handled by [Disco Hello](https://www.discohello.com).
207207

208208
Omar: "I first discovered the IMGUI paradigm at [Q-Games](https://www.q-games.com) where Atman Binstock had dropped his own simple implementation in the codebase, which I spent quite some time improving and thinking about. It turned out that Atman was exposed to the concept directly by working with Casey. When I moved to Media Molecule I rewrote a new library trying to overcome the flaws and limitations of the first one I've worked with. It became this library and since then I have spent an unreasonable amount of time iterating and improving it."
209209

imgui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13351,7 +13351,8 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandl
1335113351
buf->appendf("[%s][%s]\n", handler->TypeName, settings_name);
1335213352
buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y);
1335313353
buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y);
13354-
buf->appendf("Collapsed=%d\n", settings->Collapsed);
13354+
if (settings->Collapsed)
13355+
buf->appendf("Collapsed=1\n");
1335513356
buf->append("\n");
1335613357
}
1335713358
}

0 commit comments

Comments
 (0)