@@ -16,6 +16,7 @@ import imgui.ImGui.calcItemWidth
1616import imgui.ImGui.calcTextSize
1717import imgui.ImGui.colorButton
1818import imgui.ImGui.contentRegionMax
19+ import imgui.ImGui.end
1920import imgui.ImGui.endChildFrame
2021import imgui.ImGui.endGroup
2122import imgui.ImGui.endTooltip
@@ -122,7 +123,7 @@ interface imgui_internal {
122123 if (! it.accessed) it.active = false
123124 }
124125
125- ImGui . end()
126+ end()
126127
127128 // Click to focus window and start moving (after we're done with all our widgets)
128129 if (g.activeId == 0 && g.hoveredId == 0 && IO .mouseClicked[0 ]) {
@@ -175,8 +176,7 @@ interface imgui_internal {
175176 }
176177
177178 fun keepAliveId (id : Int ) {
178- if (g.activeId == id)
179- g.activeIdIsAlive = true
179+ if (g.activeId == id) g.activeIdIsAlive = true
180180 }
181181
182182 /* * Advance cursor given item size for layout. */
@@ -335,7 +335,7 @@ interface imgui_internal {
335335 /* * setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). */
336336 fun beginColumns (id : String? , columnsCount : Int , flags : Int ) {
337337
338- with (ImGui . currentWindow) {
338+ with (currentWindow) {
339339
340340 assert (columnsCount > 1 )
341341 assert (dc.columnsCount == 1 ) // Nested columns are currently not supported
@@ -365,11 +365,11 @@ interface imgui_internal {
365365 dc.cursorPos.x = (pos.x + dc.indentX + dc.columnsOffsetX).i.f
366366
367367 // Cache column offsets
368- dc.columnsData.add(ColumnData ())
368+ for (i in 0 .. columnsCount) dc.columnsData.add(ColumnData ())
369369 for (columnIndex in 0 .. columnsCount) {
370370
371371 val columnId = dc.columnsSetId + columnIndex
372- ImGui . keepAliveId(columnId)
372+ keepAliveId(columnId)
373373 val defaultT = columnIndex / dc.columnsCount.f
374374 var t = dc.stateStorage.float(columnId, defaultT)
375375 if (dc.columnsFlags hasnt ColumnsFlags .NoForceWithinWindow )
@@ -1835,7 +1835,7 @@ interface imgui_internal {
18351835 } else {
18361836 /* We treat ImGuiSetCondition_Once and ImGuiSetCondition_FirstUseEver the same because tree node state
18371837 are not saved persistently. */
1838- val storedValue = storage.intaaaaa (id, - 1 )
1838+ val storedValue = storage.intaaaaaaaaa (id, - 1 )
18391839 if (storedValue == - 1 ) {
18401840 isOpen = g.setNextTreeNodeOpenVal
18411841 storage[id] = isOpen
@@ -1844,7 +1844,7 @@ interface imgui_internal {
18441844 }
18451845 g.setNextTreeNodeOpenCond = 0
18461846 } else
1847- isOpen = storage.intaaaaa (id, if (flags has TreeNodeFlags .DefaultOpen ) 1 else 0 ) != 0 // TODO rename back
1847+ isOpen = storage.intaaaaaaaaa (id, if (flags has TreeNodeFlags .DefaultOpen ) 1 else 0 ) != 0 // TODO rename back
18481848
18491849 /* When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like
18501850 sensible behavior).
0 commit comments