Rename 'ImGui Sincerely' to 'Dear ImGui'
This commit is contained in:
+24
-24
@@ -9,7 +9,7 @@ function IM_INCLUDE(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imgui.lua'] = function()
|
__FILES['imgui.lua'] = function()
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Core Code)
|
-- (Core Code)
|
||||||
|
|
||||||
--- Flags:
|
--- Flags:
|
||||||
@@ -101,7 +101,7 @@ IM_INCLUDE"imgui_tables.lua"
|
|||||||
|
|
||||||
|
|
||||||
do --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
do --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- Drag and drop: 1:1 port of imgui.cpp [SECTION] DRAG AND DROP (docking branch)
|
-- Drag and drop: 1:1 port of imgui.cpp [SECTION] DRAG AND DROP (docking branch)
|
||||||
-- Payload `Data` is any Lua value (no copy is made). `data_size` is optional and only kept for API parity.
|
-- Payload `Data` is any Lua value (no copy is made). `data_size` is optional and only kept for API parity.
|
||||||
|
|
||||||
@@ -391,7 +391,7 @@ function ImGui.PayloadIsDataType(payload, t) return ImGuiPayload_IsDataType(payl
|
|||||||
end --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
end --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
||||||
|
|
||||||
do --[[ [SECTION] imgui_docking (was imgui_docking.lua) ]]
|
do --[[ [SECTION] imgui_docking (was imgui_docking.lua) ]]
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- Docking: 1:1 port of imgui.cpp [SECTION] DOCKING (docking branch, 1.93 WIP)
|
-- Docking: 1:1 port of imgui.cpp [SECTION] DOCKING (docking branch, 1.93 WIP)
|
||||||
--
|
--
|
||||||
-- Port notes:
|
-- Port notes:
|
||||||
@@ -4301,7 +4301,7 @@ local function ImGuiLocEntry(key, text)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local GLocalizationEntriesEnUS = {
|
local GLocalizationEntriesEnUS = {
|
||||||
ImGuiLocEntry(ImGuiLocKey.VersionStr, "ImGui Sincerely WIP"),
|
ImGuiLocEntry(ImGuiLocKey.VersionStr, "Dear ImGui WIP"),
|
||||||
ImGuiLocEntry(ImGuiLocKey.TableSizeOne, "Size column to fit###SizeOne"),
|
ImGuiLocEntry(ImGuiLocKey.TableSizeOne, "Size column to fit###SizeOne"),
|
||||||
ImGuiLocEntry(ImGuiLocKey.TableSizeAllFit, "Size all columns to fit###SizeAll"),
|
ImGuiLocEntry(ImGuiLocKey.TableSizeAllFit, "Size all columns to fit###SizeAll"),
|
||||||
ImGuiLocEntry(ImGuiLocKey.TableSizeAllDefault, "Size all columns to default###SizeAll"),
|
ImGuiLocEntry(ImGuiLocKey.TableSizeAllDefault, "Size all columns to default###SizeAll"),
|
||||||
@@ -17511,7 +17511,7 @@ function ImGui.ShowDebugLogWindow(p_open)
|
|||||||
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 12.0), ImGuiCond.FirstUseEver)
|
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 12.0), ImGuiCond.FirstUseEver)
|
||||||
end
|
end
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely Debug Log", p_open)
|
p_open, visible = ImGui.Begin("Dear ImGui Debug Log", p_open)
|
||||||
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
||||||
ImGui.End()
|
ImGui.End()
|
||||||
return p_open
|
return p_open
|
||||||
@@ -17671,7 +17671,7 @@ function ImGui.ShowIDStackToolWindow(p_open)
|
|||||||
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 8.0), ImGuiCond.FirstUseEver)
|
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 8.0), ImGuiCond.FirstUseEver)
|
||||||
end
|
end
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely ID Stack Tool", p_open)
|
p_open, visible = ImGui.Begin("Dear ImGui ID Stack Tool", p_open)
|
||||||
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
||||||
ImGui.End()
|
ImGui.End()
|
||||||
return p_open
|
return p_open
|
||||||
@@ -18146,7 +18146,7 @@ function ImGui.ShowMetricsWindow(p_open)
|
|||||||
if cfg.ShowIDStackTool then cfg.ShowIDStackTool = ImGui.ShowIDStackToolWindow(cfg.ShowIDStackTool) end
|
if cfg.ShowIDStackTool then cfg.ShowIDStackTool = ImGui.ShowIDStackToolWindow(cfg.ShowIDStackTool) end
|
||||||
|
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely Metrics/Debugger", p_open)
|
p_open, visible = ImGui.Begin("Dear ImGui Metrics/Debugger", p_open)
|
||||||
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
||||||
ImGui.End()
|
ImGui.End()
|
||||||
return p_open
|
return p_open
|
||||||
@@ -18472,7 +18472,7 @@ __FILES['imgui_demo.lua'] = function()
|
|||||||
-- dear imgui demo (Luau port of imgui_demo.cpp). Optional: the library never calls into this file.
|
-- dear imgui demo (Luau port of imgui_demo.cpp). Optional: the library never calls into this file.
|
||||||
|
|
||||||
do --[[ imgui_demo.lua ]]
|
do --[[ imgui_demo.lua ]]
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Demo Code) Port of imgui_demo.cpp (docking branch)
|
-- (Demo Code) Port of imgui_demo.cpp (docking branch)
|
||||||
-- This file: shared demo helpers, ShowDemoWindow(), DemoWindowMenuBar(), DemoWindowWidgets() dispatcher, example tree/image viewer helpers.
|
-- This file: shared demo helpers, ShowDemoWindow(), DemoWindowMenuBar(), DemoWindowWidgets() dispatcher, example tree/image viewer helpers.
|
||||||
-- Other parts (all global functions, loaded from the same bundle):
|
-- Other parts (all global functions, loaded from the same bundle):
|
||||||
@@ -18907,7 +18907,7 @@ local function DemoWindowMenuBar(data)
|
|||||||
ImGui.SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable some extra features to avoid casual users crashing the application.")
|
ImGui.SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable some extra features to avoid casual users crashing the application.")
|
||||||
end
|
end
|
||||||
_, data.ShowStyleEditor = ImGui.MenuItem("Style Editor", nil, data.ShowStyleEditor)
|
_, data.ShowStyleEditor = ImGui.MenuItem("Style Editor", nil, data.ShowStyleEditor)
|
||||||
_, data.ShowAbout = ImGui.MenuItem("About ImGui Sincerely", nil, data.ShowAbout)
|
_, data.ShowAbout = ImGui.MenuItem("About Dear ImGui", nil, data.ShowAbout)
|
||||||
|
|
||||||
ImGui.EndMenu()
|
ImGui.EndMenu()
|
||||||
end
|
end
|
||||||
@@ -19169,7 +19169,7 @@ function ImGui.ShowDemoWindow(p_open)
|
|||||||
if data.ShowAbout then RunApp(ImGui.ShowAboutWindow, "ShowAbout") end
|
if data.ShowAbout then RunApp(ImGui.ShowAboutWindow, "ShowAbout") end
|
||||||
if data.ShowStyleEditor then
|
if data.ShowStyleEditor then
|
||||||
local visible
|
local visible
|
||||||
data.ShowStyleEditor, visible = ImGui.Begin("ImGui Sincerely Style Editor", data.ShowStyleEditor)
|
data.ShowStyleEditor, visible = ImGui.Begin("Dear ImGui Style Editor", data.ShowStyleEditor)
|
||||||
if visible then
|
if visible then
|
||||||
ImGui.ShowStyleEditor()
|
ImGui.ShowStyleEditor()
|
||||||
end
|
end
|
||||||
@@ -19199,7 +19199,7 @@ function ImGui.ShowDemoWindow(p_open)
|
|||||||
|
|
||||||
-- Main body of the Demo window starts here.
|
-- Main body of the Demo window starts here.
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely Demo", p_open, window_flags)
|
p_open, visible = ImGui.Begin("Dear ImGui Demo", p_open, window_flags)
|
||||||
if no_close then p_open = nil end
|
if no_close then p_open = nil end
|
||||||
if not visible then
|
if not visible then
|
||||||
-- Early out if the window is collapsed, as an optimization.
|
-- Early out if the window is collapsed, as an optimization.
|
||||||
@@ -19216,7 +19216,7 @@ function ImGui.ShowDemoWindow(p_open)
|
|||||||
-- Menu Bar
|
-- Menu Bar
|
||||||
DemoWindowMenuBar(data)
|
DemoWindowMenuBar(data)
|
||||||
|
|
||||||
ImGui.Text("ImGui Sincerely says hello! (%s) (%d)", IMGUI_VERSION or "WIP", IMGUI_VERSION_NUM or 0)
|
ImGui.Text("Dear ImGui says hello! (%s) (%d)", IMGUI_VERSION or "WIP", IMGUI_VERSION_NUM or 0)
|
||||||
ImGui.Spacing()
|
ImGui.Spacing()
|
||||||
|
|
||||||
if ImGui.CollapsingHeader("Help") then
|
if ImGui.CollapsingHeader("Help") then
|
||||||
@@ -19398,7 +19398,7 @@ end
|
|||||||
end --[[ imgui_demo.lua ]]
|
end --[[ imgui_demo.lua ]]
|
||||||
|
|
||||||
do --[[ imgui_demo_2.lua ]]
|
do --[[ imgui_demo_2.lua ]]
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Demo Code, part 2): DemoWindowLayout(), DemoWindowPopups(), DemoWindowTables(), DemoWindowColumns(),
|
-- (Demo Code, part 2): DemoWindowLayout(), DemoWindowPopups(), DemoWindowTables(), DemoWindowColumns(),
|
||||||
-- DemoWindowInputs() and all ShowExampleAppXXX() example apps.
|
-- DemoWindowInputs() and all ShowExampleAppXXX() example apps.
|
||||||
-- Port of imgui_demo.cpp (docking branch). Globals are shared with imgui_demo.lua (HelpMarker, ShowExampleMenuFile, ...)
|
-- Port of imgui_demo.cpp (docking branch). Globals are shared with imgui_demo.lua (HelpMarker, ShowExampleMenuFile, ...)
|
||||||
@@ -25671,7 +25671,7 @@ local _
|
|||||||
local show_config_info = false
|
local show_config_info = false
|
||||||
function ImGui.ShowAboutWindow(p_open)
|
function ImGui.ShowAboutWindow(p_open)
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("About ImGui Sincerely", p_open, ImGuiWindowFlags.AlwaysAutoResize)
|
p_open, visible = ImGui.Begin("About Dear ImGui", p_open, ImGuiWindowFlags.AlwaysAutoResize)
|
||||||
if not visible then ImGui.End(); return p_open end
|
if not visible then ImGui.End(); return p_open end
|
||||||
ImGui.Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM)
|
ImGui.Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM)
|
||||||
ImGui.TextLinkOpenURL("Homepage", "https://github.com/ocornut/imgui"); ImGui.SameLine()
|
ImGui.TextLinkOpenURL("Homepage", "https://github.com/ocornut/imgui"); ImGui.SameLine()
|
||||||
@@ -25754,7 +25754,7 @@ return true
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imgui_draw.lua'] = function()
|
__FILES['imgui_draw.lua'] = function()
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Draw Code)
|
-- (Draw Code)
|
||||||
|
|
||||||
FONT_ATLAS_DEFAULT_TEX_DATA_W = 122
|
FONT_ATLAS_DEFAULT_TEX_DATA_W = 122
|
||||||
@@ -30992,7 +30992,7 @@ return true -- [Roblox] ModuleScripts must return exactly one value
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imgui_h.lua'] = function()
|
__FILES['imgui_h.lua'] = function()
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Definitions)
|
-- (Definitions)
|
||||||
|
|
||||||
--- @meta
|
--- @meta
|
||||||
@@ -40719,7 +40719,7 @@ ffff001300090013001d002700310033003d004a0054005e00680072007c00860090009a00a400ae
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imgui_internal.lua'] = function()
|
__FILES['imgui_internal.lua'] = function()
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (internal structures/api)
|
-- (internal structures/api)
|
||||||
|
|
||||||
--- @meta
|
--- @meta
|
||||||
@@ -43891,7 +43891,7 @@ return true -- [Roblox] ModuleScripts must return exactly one value
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imgui_tables.lua'] = function()
|
__FILES['imgui_tables.lua'] = function()
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Tables and Columns Code)
|
-- (Tables and Columns Code)
|
||||||
-- 1:1 port of imgui_tables.cpp (docking branch, 1.93 WIP)
|
-- 1:1 port of imgui_tables.cpp (docking branch, 1.93 WIP)
|
||||||
--
|
--
|
||||||
@@ -48238,7 +48238,7 @@ return true -- [Roblox] ModuleScripts must return exactly one value
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imgui_widgets.lua'] = function()
|
__FILES['imgui_widgets.lua'] = function()
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Widgets Code)
|
-- (Widgets Code)
|
||||||
|
|
||||||
--- @type ImGuiContext?
|
--- @type ImGuiContext?
|
||||||
@@ -56811,7 +56811,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
do --[[ [SECTION] Widgets: BeginTabBar, EndTabBar, etc. (was imgui_tabs.lua) ]]
|
do --[[ [SECTION] Widgets: BeginTabBar, EndTabBar, etc. (was imgui_tabs.lua) ]]
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- Tab bars & tab items: 1:1 port of imgui_widgets.cpp [SECTION] Widgets: BeginTabBar/BeginTabItem (docking branch)
|
-- Tab bars & tab items: 1:1 port of imgui_widgets.cpp [SECTION] Widgets: BeginTabBar/BeginTabItem (docking branch)
|
||||||
--
|
--
|
||||||
-- Port notes:
|
-- Port notes:
|
||||||
@@ -57979,7 +57979,7 @@ return true -- [Roblox] ModuleScripts must return exactly one value
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imstb_rectpack.lua'] = function()
|
__FILES['imstb_rectpack.lua'] = function()
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a Lua port of original `imstb_rectpack.h`
|
-- This is a Lua port of original `imstb_rectpack.h`
|
||||||
|
|
||||||
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
||||||
@@ -58425,7 +58425,7 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imstb_textedit.lua'] = function()
|
__FILES['imstb_textedit.lua'] = function()
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a Lua port of original `imstb_textedit.h`
|
-- This is a Lua port of original `imstb_textedit.h`
|
||||||
|
|
||||||
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
||||||
@@ -59666,7 +59666,7 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imstb_truetype.lua'] = function()
|
__FILES['imstb_truetype.lua'] = function()
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a Lua port of original `imstb_truetype.h`
|
-- This is a Lua port of original `imstb_truetype.h`
|
||||||
|
|
||||||
--- STBTT_RASTERIZER_VERSION == 2
|
--- STBTT_RASTERIZER_VERSION == 2
|
||||||
@@ -62134,7 +62134,7 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
__FILES['imstd_minstdio.lua'] = function()
|
__FILES['imstd_minstdio.lua'] = function()
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a minimal Lua impl of C-like sscanf, sprintf sub-set
|
-- This is a minimal Lua impl of C-like sscanf, sprintf sub-set
|
||||||
|
|
||||||
-- Supports:
|
-- Supports:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Core Code)
|
-- (Core Code)
|
||||||
|
|
||||||
--- Flags:
|
--- Flags:
|
||||||
@@ -90,7 +90,7 @@ IM_INCLUDE"imgui_tables.lua"
|
|||||||
|
|
||||||
|
|
||||||
do --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
do --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- Drag and drop: 1:1 port of imgui.cpp [SECTION] DRAG AND DROP (docking branch)
|
-- Drag and drop: 1:1 port of imgui.cpp [SECTION] DRAG AND DROP (docking branch)
|
||||||
-- Payload `Data` is any Lua value (no copy is made). `data_size` is optional and only kept for API parity.
|
-- Payload `Data` is any Lua value (no copy is made). `data_size` is optional and only kept for API parity.
|
||||||
|
|
||||||
@@ -380,7 +380,7 @@ function ImGui.PayloadIsDataType(payload, t) return ImGuiPayload_IsDataType(payl
|
|||||||
end --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
end --[[ [SECTION] imgui_dragdrop (was imgui_dragdrop.lua) ]]
|
||||||
|
|
||||||
do --[[ [SECTION] imgui_docking (was imgui_docking.lua) ]]
|
do --[[ [SECTION] imgui_docking (was imgui_docking.lua) ]]
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- Docking: 1:1 port of imgui.cpp [SECTION] DOCKING (docking branch, 1.93 WIP)
|
-- Docking: 1:1 port of imgui.cpp [SECTION] DOCKING (docking branch, 1.93 WIP)
|
||||||
--
|
--
|
||||||
-- Port notes:
|
-- Port notes:
|
||||||
@@ -4290,7 +4290,7 @@ local function ImGuiLocEntry(key, text)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local GLocalizationEntriesEnUS = {
|
local GLocalizationEntriesEnUS = {
|
||||||
ImGuiLocEntry(ImGuiLocKey.VersionStr, "ImGui Sincerely WIP"),
|
ImGuiLocEntry(ImGuiLocKey.VersionStr, "Dear ImGui WIP"),
|
||||||
ImGuiLocEntry(ImGuiLocKey.TableSizeOne, "Size column to fit###SizeOne"),
|
ImGuiLocEntry(ImGuiLocKey.TableSizeOne, "Size column to fit###SizeOne"),
|
||||||
ImGuiLocEntry(ImGuiLocKey.TableSizeAllFit, "Size all columns to fit###SizeAll"),
|
ImGuiLocEntry(ImGuiLocKey.TableSizeAllFit, "Size all columns to fit###SizeAll"),
|
||||||
ImGuiLocEntry(ImGuiLocKey.TableSizeAllDefault, "Size all columns to default###SizeAll"),
|
ImGuiLocEntry(ImGuiLocKey.TableSizeAllDefault, "Size all columns to default###SizeAll"),
|
||||||
@@ -17500,7 +17500,7 @@ function ImGui.ShowDebugLogWindow(p_open)
|
|||||||
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 12.0), ImGuiCond.FirstUseEver)
|
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 12.0), ImGuiCond.FirstUseEver)
|
||||||
end
|
end
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely Debug Log", p_open)
|
p_open, visible = ImGui.Begin("Dear ImGui Debug Log", p_open)
|
||||||
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
||||||
ImGui.End()
|
ImGui.End()
|
||||||
return p_open
|
return p_open
|
||||||
@@ -17660,7 +17660,7 @@ function ImGui.ShowIDStackToolWindow(p_open)
|
|||||||
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 8.0), ImGuiCond.FirstUseEver)
|
ImGui.SetNextWindowSize(ImVec2(0.0, ImGui.GetFontSize() * 8.0), ImGuiCond.FirstUseEver)
|
||||||
end
|
end
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely ID Stack Tool", p_open)
|
p_open, visible = ImGui.Begin("Dear ImGui ID Stack Tool", p_open)
|
||||||
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
||||||
ImGui.End()
|
ImGui.End()
|
||||||
return p_open
|
return p_open
|
||||||
@@ -18135,7 +18135,7 @@ function ImGui.ShowMetricsWindow(p_open)
|
|||||||
if cfg.ShowIDStackTool then cfg.ShowIDStackTool = ImGui.ShowIDStackToolWindow(cfg.ShowIDStackTool) end
|
if cfg.ShowIDStackTool then cfg.ShowIDStackTool = ImGui.ShowIDStackToolWindow(cfg.ShowIDStackTool) end
|
||||||
|
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely Metrics/Debugger", p_open)
|
p_open, visible = ImGui.Begin("Dear ImGui Metrics/Debugger", p_open)
|
||||||
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
if not visible or ImGui.GetCurrentWindow().BeginCount > 1 then
|
||||||
ImGui.End()
|
ImGui.End()
|
||||||
return p_open
|
return p_open
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
-- dear imgui demo (Luau port of imgui_demo.cpp). Optional: the library never calls into this file.
|
-- dear imgui demo (Luau port of imgui_demo.cpp). Optional: the library never calls into this file.
|
||||||
|
|
||||||
do --[[ imgui_demo.lua ]]
|
do --[[ imgui_demo.lua ]]
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Demo Code) Port of imgui_demo.cpp (docking branch)
|
-- (Demo Code) Port of imgui_demo.cpp (docking branch)
|
||||||
-- This file: shared demo helpers, ShowDemoWindow(), DemoWindowMenuBar(), DemoWindowWidgets() dispatcher, example tree/image viewer helpers.
|
-- This file: shared demo helpers, ShowDemoWindow(), DemoWindowMenuBar(), DemoWindowWidgets() dispatcher, example tree/image viewer helpers.
|
||||||
-- Other parts (all global functions, loaded from the same bundle):
|
-- Other parts (all global functions, loaded from the same bundle):
|
||||||
@@ -436,7 +436,7 @@ local function DemoWindowMenuBar(data)
|
|||||||
ImGui.SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable some extra features to avoid casual users crashing the application.")
|
ImGui.SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable some extra features to avoid casual users crashing the application.")
|
||||||
end
|
end
|
||||||
_, data.ShowStyleEditor = ImGui.MenuItem("Style Editor", nil, data.ShowStyleEditor)
|
_, data.ShowStyleEditor = ImGui.MenuItem("Style Editor", nil, data.ShowStyleEditor)
|
||||||
_, data.ShowAbout = ImGui.MenuItem("About ImGui Sincerely", nil, data.ShowAbout)
|
_, data.ShowAbout = ImGui.MenuItem("About Dear ImGui", nil, data.ShowAbout)
|
||||||
|
|
||||||
ImGui.EndMenu()
|
ImGui.EndMenu()
|
||||||
end
|
end
|
||||||
@@ -698,7 +698,7 @@ function ImGui.ShowDemoWindow(p_open)
|
|||||||
if data.ShowAbout then RunApp(ImGui.ShowAboutWindow, "ShowAbout") end
|
if data.ShowAbout then RunApp(ImGui.ShowAboutWindow, "ShowAbout") end
|
||||||
if data.ShowStyleEditor then
|
if data.ShowStyleEditor then
|
||||||
local visible
|
local visible
|
||||||
data.ShowStyleEditor, visible = ImGui.Begin("ImGui Sincerely Style Editor", data.ShowStyleEditor)
|
data.ShowStyleEditor, visible = ImGui.Begin("Dear ImGui Style Editor", data.ShowStyleEditor)
|
||||||
if visible then
|
if visible then
|
||||||
ImGui.ShowStyleEditor()
|
ImGui.ShowStyleEditor()
|
||||||
end
|
end
|
||||||
@@ -728,7 +728,7 @@ function ImGui.ShowDemoWindow(p_open)
|
|||||||
|
|
||||||
-- Main body of the Demo window starts here.
|
-- Main body of the Demo window starts here.
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("ImGui Sincerely Demo", p_open, window_flags)
|
p_open, visible = ImGui.Begin("Dear ImGui Demo", p_open, window_flags)
|
||||||
if no_close then p_open = nil end
|
if no_close then p_open = nil end
|
||||||
if not visible then
|
if not visible then
|
||||||
-- Early out if the window is collapsed, as an optimization.
|
-- Early out if the window is collapsed, as an optimization.
|
||||||
@@ -745,7 +745,7 @@ function ImGui.ShowDemoWindow(p_open)
|
|||||||
-- Menu Bar
|
-- Menu Bar
|
||||||
DemoWindowMenuBar(data)
|
DemoWindowMenuBar(data)
|
||||||
|
|
||||||
ImGui.Text("ImGui Sincerely says hello! (%s) (%d)", IMGUI_VERSION or "WIP", IMGUI_VERSION_NUM or 0)
|
ImGui.Text("Dear ImGui says hello! (%s) (%d)", IMGUI_VERSION or "WIP", IMGUI_VERSION_NUM or 0)
|
||||||
ImGui.Spacing()
|
ImGui.Spacing()
|
||||||
|
|
||||||
if ImGui.CollapsingHeader("Help") then
|
if ImGui.CollapsingHeader("Help") then
|
||||||
@@ -927,7 +927,7 @@ end
|
|||||||
end --[[ imgui_demo.lua ]]
|
end --[[ imgui_demo.lua ]]
|
||||||
|
|
||||||
do --[[ imgui_demo_2.lua ]]
|
do --[[ imgui_demo_2.lua ]]
|
||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Demo Code, part 2): DemoWindowLayout(), DemoWindowPopups(), DemoWindowTables(), DemoWindowColumns(),
|
-- (Demo Code, part 2): DemoWindowLayout(), DemoWindowPopups(), DemoWindowTables(), DemoWindowColumns(),
|
||||||
-- DemoWindowInputs() and all ShowExampleAppXXX() example apps.
|
-- DemoWindowInputs() and all ShowExampleAppXXX() example apps.
|
||||||
-- Port of imgui_demo.cpp (docking branch). Globals are shared with imgui_demo.lua (HelpMarker, ShowExampleMenuFile, ...)
|
-- Port of imgui_demo.cpp (docking branch). Globals are shared with imgui_demo.lua (HelpMarker, ShowExampleMenuFile, ...)
|
||||||
@@ -7200,7 +7200,7 @@ local _
|
|||||||
local show_config_info = false
|
local show_config_info = false
|
||||||
function ImGui.ShowAboutWindow(p_open)
|
function ImGui.ShowAboutWindow(p_open)
|
||||||
local visible
|
local visible
|
||||||
p_open, visible = ImGui.Begin("About ImGui Sincerely", p_open, ImGuiWindowFlags.AlwaysAutoResize)
|
p_open, visible = ImGui.Begin("About Dear ImGui", p_open, ImGuiWindowFlags.AlwaysAutoResize)
|
||||||
if not visible then ImGui.End(); return p_open end
|
if not visible then ImGui.End(); return p_open end
|
||||||
ImGui.Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM)
|
ImGui.Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM)
|
||||||
ImGui.TextLinkOpenURL("Homepage", "https://github.com/ocornut/imgui"); ImGui.SameLine()
|
ImGui.TextLinkOpenURL("Homepage", "https://github.com/ocornut/imgui"); ImGui.SameLine()
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Draw Code)
|
-- (Draw Code)
|
||||||
|
|
||||||
FONT_ATLAS_DEFAULT_TEX_DATA_W = 122
|
FONT_ATLAS_DEFAULT_TEX_DATA_W = 122
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Definitions)
|
-- (Definitions)
|
||||||
|
|
||||||
--- @meta
|
--- @meta
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (internal structures/api)
|
-- (internal structures/api)
|
||||||
|
|
||||||
--- @meta
|
--- @meta
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Tables and Columns Code)
|
-- (Tables and Columns Code)
|
||||||
-- 1:1 port of imgui_tables.cpp (docking branch, 1.93 WIP)
|
-- 1:1 port of imgui_tables.cpp (docking branch, 1.93 WIP)
|
||||||
--
|
--
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely WIP
|
--- Dear ImGui WIP
|
||||||
-- (Widgets Code)
|
-- (Widgets Code)
|
||||||
|
|
||||||
--- @type ImGuiContext?
|
--- @type ImGuiContext?
|
||||||
@@ -8571,7 +8571,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
do --[[ [SECTION] Widgets: BeginTabBar, EndTabBar, etc. (was imgui_tabs.lua) ]]
|
do --[[ [SECTION] Widgets: BeginTabBar, EndTabBar, etc. (was imgui_tabs.lua) ]]
|
||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- Tab bars & tab items: 1:1 port of imgui_widgets.cpp [SECTION] Widgets: BeginTabBar/BeginTabItem (docking branch)
|
-- Tab bars & tab items: 1:1 port of imgui_widgets.cpp [SECTION] Widgets: BeginTabBar/BeginTabItem (docking branch)
|
||||||
--
|
--
|
||||||
-- Port notes:
|
-- Port notes:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a Lua port of original `imstb_rectpack.h`
|
-- This is a Lua port of original `imstb_rectpack.h`
|
||||||
|
|
||||||
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a Lua port of original `imstb_textedit.h`
|
-- This is a Lua port of original `imstb_textedit.h`
|
||||||
|
|
||||||
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
-- ALL TABLES IN THIS FILE ARE 1-BASED!
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a Lua port of original `imstb_truetype.h`
|
-- This is a Lua port of original `imstb_truetype.h`
|
||||||
|
|
||||||
--- STBTT_RASTERIZER_VERSION == 2
|
--- STBTT_RASTERIZER_VERSION == 2
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
--- ImGui Sincerely
|
--- Dear ImGui
|
||||||
-- This is a minimal Lua impl of C-like sscanf, sprintf sub-set
|
-- This is a minimal Lua impl of C-like sscanf, sprintf sub-set
|
||||||
|
|
||||||
-- Supports:
|
-- Supports:
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ game:GetService("RunService").Stepped:Connect(function()
|
|||||||
G.ImGui_ImplRoblox.NewFrame()
|
G.ImGui_ImplRoblox.NewFrame()
|
||||||
io.DeltaTime = 1 / 60
|
io.DeltaTime = 1 / 60
|
||||||
io:AddMousePosEvent(300 + (frame * 37) % 300, 100 + (frame * 53) % 500)
|
io:AddMousePosEvent(300 + (frame * 37) % 300, 100 + (frame * 53) % 500)
|
||||||
local dw = ImGui.FindWindowByName("ImGui Sincerely Demo")
|
local dw = ImGui.FindWindowByName("Dear ImGui Demo")
|
||||||
if dw and frame % 3 == 0 then io:AddMousePosEvent(dw.Pos.x + 200, dw.Pos.y + 300); io:AddMouseWheelEvent(0, (frame % 30 < 18) and -1 or 1) end
|
if dw and frame % 3 == 0 then io:AddMousePosEvent(dw.Pos.x + 200, dw.Pos.y + 300); io:AddMouseWheelEvent(0, (frame % 30 < 18) and -1 or 1) end
|
||||||
ImGui.NewFrame()
|
ImGui.NewFrame()
|
||||||
ImGui.ShowDemoWindow(true)
|
ImGui.ShowDemoWindow(true)
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ game:GetService("RunService").Stepped:Connect(function()
|
|||||||
io.DeltaTime = 1 / 60
|
io.DeltaTime = 1 / 60
|
||||||
if MODE == "drag" then
|
if MODE == "drag" then
|
||||||
local t = math.abs((frame % 200) - 100) -- triangle wave, smooth back and forth
|
local t = math.abs((frame % 200) - 100) -- triangle wave, smooth back and forth
|
||||||
if frame == 5 then local w = ImGui.FindWindowByName("ImGui Sincerely Demo"); bx, by = w.Pos.x + 80, w.Pos.y + 8; io:AddMousePosEvent(bx, by) elseif frame == 6 then io:AddMouseButtonEvent(0, true)
|
if frame == 5 then local w = ImGui.FindWindowByName("Dear ImGui Demo"); bx, by = w.Pos.x + 80, w.Pos.y + 8; io:AddMousePosEvent(bx, by) elseif frame == 6 then io:AddMouseButtonEvent(0, true)
|
||||||
elseif frame > 6 then io:AddMousePosEvent(bx - t * 5, by + t * 2) end
|
elseif frame > 6 then io:AddMousePosEvent(bx - t * 5, by + t * 2) end
|
||||||
elseif MODE == "scroll" then
|
elseif MODE == "scroll" then
|
||||||
local w = ImGui.FindWindowByName("ImGui Sincerely Demo"); if w then io:AddMousePosEvent(w.Pos.x + w.Size.x * 0.5, w.Pos.y + w.Size.y * 0.5) end
|
local w = ImGui.FindWindowByName("Dear ImGui Demo"); if w then io:AddMousePosEvent(w.Pos.x + w.Size.x * 0.5, w.Pos.y + w.Size.y * 0.5) end
|
||||||
io:AddMouseWheelEvent(0, (frame % 20 < 10) and -1 or 1)
|
io:AddMouseWheelEvent(0, (frame % 20 < 10) and -1 or 1)
|
||||||
else
|
else
|
||||||
io:AddMousePosEvent(60 + (frame * 7) % 200, 80 + (frame * 5) % 200)
|
io:AddMousePosEvent(60 + (frame * 7) % 200, 80 + (frame * 5) % 200)
|
||||||
@@ -39,7 +39,7 @@ game:GetService("RunService").Stepped:Connect(function()
|
|||||||
ImGui.Render()
|
ImGui.Render()
|
||||||
G.ImGui_ImplRoblox.RenderDrawData(ImGui.GetDrawData())
|
G.ImGui_ImplRoblox.RenderDrawData(ImGui.GetDrawData())
|
||||||
if frame == ARG_FRAMES - 1 and MODE == "drag" then
|
if frame == ARG_FRAMES - 1 and MODE == "drag" then
|
||||||
local w = ImGui.FindWindowByName("ImGui Sincerely Demo")
|
local w = ImGui.FindWindowByName("Dear ImGui Demo")
|
||||||
assert(w.Pos.y > 25, "window was not dragged")
|
assert(w.Pos.y > 25, "window was not dragged")
|
||||||
print("DRAG OK", w.Pos.x, w.Pos.y, w.Collapsed, ImGui.GetDrawData().TotalVtxCount)
|
print("DRAG OK", w.Pos.x, w.Pos.y, w.Collapsed, ImGui.GetDrawData().TotalVtxCount)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ local frame = 0
|
|||||||
RunService.Stepped:Connect(function()
|
RunService.Stepped:Connect(function()
|
||||||
frame += 1
|
frame += 1
|
||||||
G.ImGui_ImplRoblox.NewFrame()
|
G.ImGui_ImplRoblox.NewFrame()
|
||||||
local w0 = ImGui.FindWindowByName("ImGui Sincerely Demo")
|
local w0 = ImGui.FindWindowByName("Dear ImGui Demo")
|
||||||
if w0 and frame > 2 then
|
if w0 and frame > 2 then
|
||||||
local io = ImGui.GetIO()
|
local io = ImGui.GetIO()
|
||||||
-- sweep the mouse over the window so hover-only paths (tooltips etc.) run
|
-- sweep the mouse over the window so hover-only paths (tooltips etc.) run
|
||||||
@@ -32,7 +32,7 @@ RunService.Stepped:Connect(function()
|
|||||||
ImGui.ShowDemoWindow(true)
|
ImGui.ShowDemoWindow(true)
|
||||||
ImGui.Begin("Hello, world!"); ImGui.Checkbox("Demo Window", true); ImGui.SliderFloat("float", 0, 0, 1); ImGui.Button("Button"); ImGui.End()
|
ImGui.Begin("Hello, world!"); ImGui.Checkbox("Demo Window", true); ImGui.SliderFloat("float", 0, 0, 1); ImGui.Button("Button"); ImGui.End()
|
||||||
ImGui.EndFrame()
|
ImGui.EndFrame()
|
||||||
local w = ImGui.FindWindowByName("ImGui Sincerely Demo")
|
local w = ImGui.FindWindowByName("Dear ImGui Demo")
|
||||||
|
|
||||||
ImGui.Render()
|
ImGui.Render()
|
||||||
G.ImGui_ImplRoblox.RenderDrawData(ImGui.GetDrawData())
|
G.ImGui_ImplRoblox.RenderDrawData(ImGui.GetDrawData())
|
||||||
|
|||||||
Reference in New Issue
Block a user