Commit Graph
71 Commits
Author SHA1 Message Date
4DBug aabd8eb4ba Fix: ImDrawList:PushClipRectFullScreen() was missing (drop target outside the window clip rect crashed); CalcItemSize() no longer writes to the caller's size (by value like upstream; fixes BeginTable UserOuterSize), scalar _CalcItemSizeXY for internal callers; t_fixes covers both 2026-10-15 02:05:43 -05:00
4DBug be49dbeb81 tools/test: check_all.sh (CI mirror + all scripted tests + demo forced open + LÖVE), hashes.sh (draw checksums vs a git rev), t_libhash (library-only draw checksum); regenerate PORT_STATUS 2026-10-15 02:03:40 -05:00
4DBug baa672eb38 0.2.0 2026-10-15 01:06:11 -05:00
4DBug 26ca4cbdfd Roblox backend: redraw budget is opt-in (SetRedrawBudget default 0 = every changed tile drawn the same frame) 2026-10-15 00:55:43 -05:00
4DBug 19d30a3df7 bundle.py: build-time Luau optimizations (draw-data identical; IMGUI_BUNDLE_NOOPT=1 disables): hot library globals as bundle locals, enum/constant folding (values dumped by the luau CLI; IMGUI_BUNDLE_STRICT=1 in CI), --@hoist pure helpers to inlinable bundle-level local functions, statement IM_ASSERT -> assert; builtin type instead of ImGui._GetTypeFunc() alias (GETGLOBAL 15903 -> 540) 2026-10-15 00:23:20 -05:00
4DBug e63badf810 Library perf (draw-data identical): layout core (no ImVec2 __index in ItemSize, inlined ID/style/clip stacks, scalar ItemAdd/IsClippedEx/CalcItemSize/GetColorU32), text + widgets (scalar TextEx/ButtonEx/Checkbox/Slider/Drag/Selectable/TreeNode, word-wrap memo), tables (in-place clip rects, no per-row/cell temporaries, @native cell functions, scalar ClipWith), draw list (PrimRectXY, scalar AddRect/AddRectFilled/AddLine/PathRect/arcs) 2026-10-14 23:27:23 -05:00
4DBug 91b5cd9742 Roblox backend perf (pixel-identical): redraw budget (SetRedrawBudget, default 1.5 ms; RenderRate default 0), exact in-place draw list compare + whole-pixel move fast path, partial tile redraws, flat rects hashed by in-tile rect, quads hashed by TL/BR, no full redraw on texture updates, @native CopyTexturePixels, reused partial upload buffers; imgui_draw: @native word wrap, ImStrByte/classifier inlined, text size cache covers wrapped text; t_pixels pixel oracle; run.py RUN_FLAGS 2026-10-14 22:26:38 -05:00
4DBug c2438ca877 tools/compare_upstream.py: port coverage + code similarity vs upstream, writes docs/PORT_STATUS.txt 2026-10-14 22:26:38 -05:00
4DBug dc1914d214 0.1.4 2026-10-14 10:32:10 -05:00
4DBug d1e52642da InputText: fix clipboard paste (filter was inverted, then off-by-one in the filtered buffer); ImParseFormatTrimDecorations: return [start, end) like upstream (Ctrl+click temp input showed decorations / crashed on "%d%%"); ShrinkWidths: tie order by Index descending like upstream; t_fixes test 2026-10-14 10:32:10 -05:00
4DBug 40374f82d7 Comments: mirror upstream imgui.cpp/.h, imgui_internal.h, widgets/draw/tables/demo and imstb_* comments (comment-only, code tokens unchanged) 2026-10-14 10:23:55 -05:00
4DBug 81ed4f3a5e CI: minified builds (ImGui.min.luau, ImGui-nodemo.min.luau, imgui_love.min.lua, imgui_love-nodemo.min.lua) via tools/minify.py; checks + release assets; run.py MINIFY=1 2026-10-14 10:23:55 -05:00
4DBug d366da6516 0.1.3 2026-10-14 06:26:28 -05:00
4DBug f1ae6ee803 Docking: set node.LastBgColor (closing dock hosts drew white bodies), host skips own bg, fix SetNextWindowBgAlpha; Roblox backend: frames skipped by the render rate cap are drawn later (UI could freeze when the app stopped rendering); t_dock_close test 2026-10-14 06:26:28 -05:00
4DBug ea210b9b63 0.1.2 2026-10-09 02:24:21 -05:00
4DBug 59e27653e4 Roblox backend: text proxy is opt-in (SetTextProxy), remove SetTextProxyDebug; new example main.client.luau 2026-10-09 02:22:30 -05:00
4DBug 94028a8791 README: move 'How it works' below Getting Started 2026-10-08 20:57:31 -05:00
4DBug b00c794307 README: Wally package link; 0.1.1 2026-10-08 20:54:31 -05:00
4DBug 3f55056501 Wally: scope 4dbug (must match the GitHub account) 2026-10-08 20:52:52 -05:00
4DBug 86cdc37417 SetNextWindowCached(key): opt-in cached windows on top of the refresh policy (skip contents while idle), t_cached_window test, README snippet 2026-10-08 20:43:56 -05:00
4DBug 7af08490da Luau types: generated typed entry module build/ImGuiTyped.luau (requires the bundle as child Impl); Rojo/Wally use it 2026-10-08 20:36:27 -05:00
4DBug 1eb4be116e Wally package (bug/imgui-luau), published by CI on v* tags 2026-10-08 20:30:22 -05:00
4DBug fec8b17a5e README: AI disclosure wording; .gitignore 2026-10-08 20:29:29 -05:00
4DBug 1cde08a2ad README: AI disclosure 2026-10-08 19:43:06 -05:00
4DBug 8520da3126 GitHub-only mirror notice (.github/README.md, synced from README.md), 'latest' is a full release 2026-10-08 19:40:49 -05:00
4DBug 03acd21401 GitHub Actions: build Roblox/LÖVE bundles (with and without demo), check, publish to Releases (latest + v* tags) 2026-10-08 19:34:40 -05:00
4DBug e87d2f465a README: 'Dear ImGui for Roblox (and more)', Backends section/table, multi-backend wording 2026-10-08 19:31:22 -05:00
4DBug c64664f415 README: in-depth Roblox backend explanation; FAQ: why this exists, vs Iris, trade-offs 2026-10-08 19:31:22 -05:00
4DBug 3512a28d48 Move LuaJIT compat shims into backends/imgui_impl_love.lua (COMPAT section); remove compat/ 2026-10-08 19:31:22 -05:00
4DBug b88d8167cc LÖVE backend + build target (compat/luajit.lua shims, Roblox build unchanged), examples/example_love, examples/example_shared (same app on Roblox and LÖVE), LuaJIT checksum tests 2026-10-08 19:31:22 -05:00
4DBug cc13b086c3 Roblox backend: hidden TextBox proxy for text input
A single off-screen TextBox holds focus while an imgui text field is active, so the OS
delivers typing (any layout/unicode), paste and copy/cut. Its text mirrors imgui selection
(fully selected) so Ctrl+C/X copy exactly that; deletions apply as an imgui Backspace;
Ctrl is released around pasted characters. Focus is captured after the click is released,
kept on clicks inside imgui, ends on clicks outside. KeyCode text kept as fallback.
SetTextProxyDebug for logging.
2026-10-08 19:31:22 -05:00
4DBug 0501e8f4ff Decal Viewer: try thumbnail pixels, fall back to an ImageLabel thumbnail when the asset's pixels can't be read 2026-10-08 17:42:15 -05:00
4DBug 3a98e9d97f Decal Viewer example (decal/image id -> imgui texture, demo image viewer with grid); backend CreateTexture/DestroyTexture 2026-10-08 17:38:33 -05:00
4DBug cf8dd2028e Embed widget example (Instances inside imgui windows, one Frame per id, hidden when not submitted, EmbedFlags) + backend SetOverlay 2026-10-08 17:28:13 -05:00
4DBug bf42b2414e README: credit GrayWolf64/imgui-lua 2026-10-08 17:17:46 -05:00
4DBug a50c5364bb README modelled on upstream with rendered screenshots/GIF, docs/TODO.txt, screenshot tooling, t_readme snippet test, ImGui.NewTextBuffer helpers 2026-10-08 17:15:54 -05:00
4DBug faccd859ad Rename 'ImGui Sincerely' to 'Dear ImGui' 2026-10-08 17:00:00 -05:00
4DBug 59c3e6ba69 Reorganize like upstream: library at root (docking/dragdrop/debug tools merged into imgui.lua, tabs into imgui_widgets.lua), single imgui_demo.lua, backends/, fonts/, examples/, docs/; --no-demo build 2026-10-08 16:47:42 -05:00
4DBug 7d2be69434 Style Editor Colors tab: ListClipper so only visible rows are submitted 2026-10-08 13:18:29 -05:00
4DBug 5b269aa9ae Perf: ColorEdit4 layout-only fast path for fully clipped rows, cached drag/slider value text, @native on color/group widgets; t_widget_cost + t_colors_hash 2026-10-08 12:31:10 -05:00
4DBug 930a9a8fad Perf: ImDrawList vertices in a flat buffer (f64 pos/uv + u32 col); backend reads it directly and skips draw lists identical to last frame 2026-10-08 12:11:36 -05:00
4DBug 0dc886dc22 Roblox backend: window content in its own clipped layer at the scroll origin (scrolling moves pixels instead of redrawing), 128px tiles 2026-10-08 11:52:42 -05:00
4DBug 782a3aeaf8 Roblox backend: optional SetBusyRenderRate (lower redraw rate while scrolling/resizing/moving) 2026-10-08 11:43:31 -05:00
4DBug 4aae03805e Roblox backend: clear/upload only each tile's dirty region; scroll benchmark in t_drag, scrolling in t_composite 2026-10-08 11:33:28 -05:00
4DBug 1859a9d576 Roblox backend: one layer (Frame + tiles) per draw list so moving windows costs no redraw; gradient rect fast path; t_drag/t_composite checks 2026-10-08 11:10:53 -05:00
4DBug 464f0312db Perf: allocation-free ItemSize/ItemAdd/IsMouseHoveringRect/GetColorU32/RenderArrow, @native on hot UI paths; t_drawhash output-equivalence check 2026-10-08 10:41:15 -05:00
4DBug a2fc63e931 Fix StyleCopy for named-field vectors (Style Editor assert) 2026-10-08 10:33:05 -05:00
4DBug cf3b017420 Perf: memoize ImHashStr per seed, inline glyph lookup in ImFont:RenderText 2026-10-08 10:21:16 -05:00
4DBug f404626783 Perf: ImVec2/ImVec4/ImRect store named fields (no metamethod per .x/.Min), bench flags --roblox/--open-only 2026-10-08 10:16:40 -05:00
4DBug 888ffce0d5 Perf: cache text sizes per baked font, AddRect fast path as 4 rects; run.py --profile + prof.py 2026-10-08 10:03:18 -05:00