├── assets └── logo.png ├── sample-scripts ├── example-for-fetch.lua ├── fetch.lua ├── preferences.lua ├── sample-ui.lua ├── world_saver.lua └── calculator.lua ├── dumps └── imgui.lua ├── ImGui_Function_List.lua ├── annotations ├── growlauncher.lua └── imgui.lua ├── Readme.md └── README.md /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PowerKuy/Growlauncher-Documentation/HEAD/assets/logo.png -------------------------------------------------------------------------------- /sample-scripts/example-for-fetch.lua: -------------------------------------------------------------------------------- 1 | LogToConsole("Hello im from Fetch script!") 2 | var = {} 3 | var.v1 = "OnAddNotification" 4 | var.v2 = "interface/large/adventure.rttex" 5 | 6 | var.v3 = "Omgg it works!, Fetch is working!" 7 | var.v4 = "audio/gong.wav" 8 | sendVariant(var) 9 | 10 | -------------------------------------------------------------------------------- /sample-scripts/fetch.lua: -------------------------------------------------------------------------------- 1 | local res, err = fetch( 2 | "https://raw.githubusercontent.com/PowerKuy/Growlauncher-Documentation/refs/heads/main/sample-scripts/example-for-fetch.lua") 3 | 4 | if not res then 5 | LogToConsole(err) 6 | return 7 | 8 | end 9 | 10 | local chunk, loadErr = load(res) 11 | if not chunk then 12 | LogToConsole(loadErr) 13 | return 14 | end 15 | 16 | chunk() 17 | -------------------------------------------------------------------------------- /sample-scripts/preferences.lua: -------------------------------------------------------------------------------- 1 | local Preferences = require("Preferences") 2 | 3 | -- 1. Initialize (Loads existing data or creates a new instance) 4 | local userPrefs = Preferences:new("user_settings.json") 5 | 6 | -- 2. Get a value (with a default fallback if not found) 7 | local volume = userPrefs:get("music_volume", 100) 8 | print("Current Volume:", volume) 9 | 10 | -- 3. Set new values 11 | userPrefs:set("music_volume", 80) 12 | userPrefs:set("username", "PlayerOne") 13 | 14 | -- 4. Save to disk (Must be called manually to persist changes) 15 | userPrefs:save() 16 | -------------------------------------------------------------------------------- /sample-scripts/sample-ui.lua: -------------------------------------------------------------------------------- 1 | local ui = UserInterface.new("FullUIExample", "Verified") 2 | 3 | ui:addLabel("Hello World") 4 | ui:addLabelApp("GrowLauncher UI", "Verified") 5 | ui:addToggle("Enable Feature", true, "feat_toggle", true) 6 | ui:addToggleButton("Power Button", false, "power_btn") 7 | ui:addButton("Click Me", "btn_click") 8 | 9 | local expand = ui:addExpandableToggle("Advanced Settings", false, "adv_toggle", true, true) 10 | ui:addChildToggle(expand.list_child,"Enable Child", true, "child_toggle") 11 | ui:addChildSlider(expand.list_child,"Child Slider", 0, 100, 50, 1, false, "child_slider") 12 | ui:addChildTooltip(expand.list_child,"Tooltip Title", "Support text here", "Verified", true) 13 | ui:addChildItemPicker(expand.list_child,"Pick Item", "Dirt", "2", "child_item") 14 | ui:addChildInputInt(expand.list_child,"Child Int", "1", "Label", "Enter number", "Verified", "child_int") 15 | ui:addChildInputString(expand.list_child,"Child String", "abc", "Label", "Type text", "Home", "child_str") 16 | ui:addChildButton(expand.list_child,"Child Button", "child_btn") 17 | 18 | ui:addSlider("Main Slider", 0, 100, 50, 1, false, "main_slider") 19 | ui:addInputInt("Enter Number", "10", "Label", "Type..", "Verified", "int_alias") 20 | ui:addInputString("Enter Text", "abc", "Label", "Type..", "Verified", "str_alias") 21 | ui:addTooltip("Info Tooltip", "Support text", "Verified", true) 22 | ui:addItemPicker("Choose Item", "Dirt", "2", "picker") 23 | ui:addDivider() 24 | ui:addDisplayList("List Example", "Default", "list_alias") 25 | ui:addTileSelect("Tile Select", "Default", "tile_alias", 5) 26 | 27 | local dialog = ui:addDialog("Dialog Title", "Sub text", {}) 28 | ui:addChildToggle(dialog.menu,"Enable Child", true, "child_toggle") 29 | ui:addChildSlider(dialog.menu,"Child Slider", 0, 100, 50, 1, false, "child_slider") 30 | ui:addChildTooltip(dialog.menu,"Tooltip Title", "Support text here", "Verified", true) 31 | ui:addChildItemPicker(dialog.menu,"Pick Item", "Dirt", "2", "child_item") 32 | ui:addChildInputInt(dialog.menu,"Child Int", "1", "Label", "Enter number", "Verified", "child_int") 33 | ui:addChildInputString(dialog.menu,"Child String", "abc", "Label", "Type text", "Home", "child_str") 34 | ui:addChildButton(dialog.menu,"Child Button", "child_btn") 35 | 36 | local json = ui:generateJSON() 37 | 38 | require("IniEy") 39 | addIntoModule(json,"IniEy") -------------------------------------------------------------------------------- /sample-scripts/world_saver.lua: -------------------------------------------------------------------------------- 1 | local pref = require("preferences") 2 | local json = require("json") 3 | local saved = pref:new("world_saver.json") 4 | 5 | local worldSavers = saved:get("saved_world", {}) 6 | local enabled = saved:get("opened", false) 7 | local buf_title = "" 8 | local buf_door = "" 9 | 10 | function RefreshGui() 11 | local list = {} 12 | for _, entry in ipairs(worldSavers) do 13 | table.insert(list, {entry.title, "Door: " .. entry.door}) 14 | end 15 | editValue("world_saver_list", json:encode(list)) 16 | end 17 | 18 | function GoToWorld(entry) 19 | sendPacket(3, "action|join_request\nname|".. entry.title .. "|".. entry.door .. "\ninvitedWorld|1\n") 20 | end 21 | 22 | function OnDrawImGui(delta) 23 | if enabled then 24 | ImGui.Begin("World Saver") 25 | 26 | -- Input Title 27 | ImGui.Text("Title:") 28 | local contentX = ImGui.GetContentRegionAvail().x 29 | ImGui.PushItemWidth(contentX) -- set width 200px 30 | 31 | local changed, newVal = ImGui.InputText("##title", buf_title, 256) 32 | if changed then 33 | buf_title = newVal 34 | end 35 | if ImGui.Button("Current World") then 36 | buf_title = getCurrentWorldName() or "" 37 | end 38 | -- Input DoorID 39 | ImGui.Text("Door ID:") 40 | changed, newVal = ImGui.InputText("##door", buf_door, 256) 41 | if changed then 42 | buf_door = newVal 43 | end 44 | -- Create Button 45 | if ImGui.Button("Create", ImVec2(contentX, 0)) then 46 | if buf_title ~= "" and buf_door ~= "" then 47 | table.insert(worldSavers, { 48 | title = buf_title, 49 | door = buf_door 50 | }) 51 | saved:set("saved_world", worldSavers) 52 | saved:save() 53 | RefreshGui() 54 | buf_title, buf_door = "", "" 55 | end 56 | end 57 | 58 | ImGui.Separator() 59 | 60 | -- List saved worlds 61 | if ImGui.BeginTable("WorldTable", 3) then 62 | ImGui.TableSetupColumn("World", ImGuiTableColumnFlags_WidthStretch) 63 | ImGui.TableSetupColumn("Go", 1 << 4, 90) 64 | ImGui.TableSetupColumn("Delete", 1 << 4, 120) 65 | ImGui.TableHeadersRow() 66 | 67 | for i, entry in ipairs(worldSavers) do 68 | ImGui.TableNextRow() 69 | 70 | -- Column 1: World text 71 | ImGui.TableSetColumnIndex(0) 72 | ImGui.Text(entry.title .. " (Door: " .. entry.door .. ")") 73 | 74 | -- Column 2: Go button 75 | ImGui.TableSetColumnIndex(1) 76 | if ImGui.Button("Go##" .. i, 50, 25) then 77 | GoToWorld(entry) 78 | end 79 | 80 | -- Column 3: Delete button 81 | ImGui.TableSetColumnIndex(2) 82 | if ImGui.Button("Delete##" .. i, ImGui.GetContentRegionAvail().x, 25) then 83 | table.remove(worldSavers, i) 84 | saved:save() 85 | RefreshGui() 86 | end 87 | end 88 | 89 | ImGui.EndTable() 90 | end 91 | 92 | ImGui.PopItemWidth() 93 | 94 | ImGui.End() 95 | end 96 | end 97 | 98 | local ui = UserInterface.new("Navigator", "Navigation") 99 | ui:addLabelApp("Navigator", "Navigation") 100 | ui:addTooltip("Information", "To easily navigate between worlds", "Info", false) 101 | ui:addToggle("Enable ImGui", saved:get("opened", false), "enable_navigator", false) 102 | ui:addButton("Refresh", "world_saver_refresh") 103 | ui:addDisplayList("Saved List", "[]", "world_saver_list") 104 | 105 | function OnDraw(d) 106 | removeHook("ondraw") 107 | runCoroutine(function() 108 | sleep(6000) 109 | addCategory("ImGui", "Wysiwyg") 110 | addIntoModule(ui:generateJSON(), "ImGui") 111 | RefreshGui() 112 | end) 113 | end 114 | 115 | function OnValue(type, name, value) 116 | if name == "enable_navigator" then 117 | saved:set("opened", value) 118 | saved:save() 119 | enabled = value 120 | end 121 | if name == "world_saver_refresh" then 122 | RefreshGui() 123 | end 124 | end 125 | 126 | applyHook() 127 | -------------------------------------------------------------------------------- /sample-scripts/calculator.lua: -------------------------------------------------------------------------------- 1 | -- ---@type Preferences 2 | local pref = require("preferences") 3 | local saved = pref:new("calculator_prefs.json") 4 | 5 | local CALC = { 6 | title = "Calculator", 7 | opened = saved:get("opened", false), 8 | expr = "", 9 | result = "", 10 | err = nil 11 | } 12 | 13 | local function safe_eval(s) 14 | if s == "" then 15 | return "" 16 | end 17 | if s:find("[^%d%+%-%*/%%%^%(%). eE]") then 18 | return nil, "Invalid char" 19 | end 20 | 21 | local chunk_src = "return (" .. s .. ")" 22 | local f, err 23 | if _VERSION == "Lua 5.1" then 24 | f, err = loadstring(chunk_src) 25 | if not f then 26 | return nil, err 27 | end 28 | local env = { 29 | math = math 30 | } 31 | setfenv(f, env) 32 | else 33 | f, err = load(chunk_src, "calc", "t", { 34 | math = math 35 | }) 36 | if not f then 37 | return nil, err 38 | end 39 | end 40 | 41 | local ok, val = pcall(f) 42 | if not ok then 43 | return nil, val 44 | end 45 | return val 46 | end 47 | 48 | local function push(ch) 49 | CALC.expr = CALC.expr .. ch 50 | end 51 | local function backspace() 52 | local len = #CALC.expr 53 | if len > 0 then 54 | CALC.expr = CALC.expr:sub(1, len - 1) 55 | end 56 | end 57 | 58 | local function clear_all() 59 | CALC.expr = "" 60 | CALC.result = "" 61 | CALC.err = nil 62 | end 63 | 64 | local function compute() 65 | local v, err = safe_eval(CALC.expr) 66 | if v == nil then 67 | CALC.err = tostring(err) 68 | CALC.result = "" 69 | else 70 | CALC.err = nil 71 | CALC.result = tostring(v) 72 | end 73 | end 74 | 75 | function OnDrawImGui(delta) 76 | if CALC.opened then 77 | ImGui.SetNextWindowSize(ImVec2(320, 420), ImGui.Cond.Once) 78 | ImGui.Begin(CALC.title) 79 | 80 | ImGui.Text("Expr:") 81 | ImGui.TextWrapped(CALC.expr == "" and " " or CALC.expr) 82 | 83 | ImGui.Separator() 84 | ImGui.Text("Result:") 85 | if CALC.err then 86 | ImGui.TextColored(1.0, 0.3, 0.3, 1.0) 87 | ImGui.TextWrapped(CALC.err) 88 | else 89 | ImGui.TextWrapped(CALC.result == "" and " " or CALC.result) 90 | end 91 | ImGui.Separator() 92 | local btnX = math.floor(ImGui.GetContentRegionAvail().x * 0.25) 93 | local function B(label, onClick) 94 | if ImGui.Button(label, ImVec2(btnX - 5, 0)) then 95 | onClick() 96 | end 97 | end 98 | local function Row(buttons) 99 | for i, b in ipairs(buttons) do 100 | B(b[1], b[2]) 101 | if i < #buttons then 102 | ImGui.SameLine() 103 | end 104 | end 105 | end 106 | 107 | Row({{"C", function() 108 | clear_all() 109 | end}, {"\xef\x95\x9a", function() 110 | backspace() 111 | end}, {"%", function() 112 | push("%") 113 | end}, {"^", function() 114 | push("^") 115 | end}}) 116 | 117 | Row({{"7", function() 118 | push("7") 119 | end}, {"8", function() 120 | push("8") 121 | end}, {"9", function() 122 | push("9") 123 | end}, {"/", function() 124 | push("/") 125 | end}}) 126 | 127 | Row({{"4", function() 128 | push("4") 129 | end}, {"5", function() 130 | push("5") 131 | end}, {"6", function() 132 | push("6") 133 | end}, {"*", function() 134 | push("*") 135 | end}}) 136 | 137 | Row({{"1", function() 138 | push("1") 139 | end}, {"2", function() 140 | push("2") 141 | end}, {"3", function() 142 | push("3") 143 | end}, {"-", function() 144 | push("-") 145 | end}}) 146 | 147 | Row({{"0", function() 148 | push("0") 149 | end}, {".", function() 150 | push(".") 151 | end}, {"(", function() 152 | push("(") 153 | end}, {")", function() 154 | push(")") 155 | end}}) 156 | 157 | Row({{"pi", function() 158 | push(tostring(math.pi)) 159 | end}, {"e", function() 160 | push(tostring(math.exp(1))) 161 | end}, {"=", function() 162 | compute() 163 | end}, {"+", function() 164 | push("+") 165 | end}}) 166 | 167 | ImGui.End() 168 | end 169 | end 170 | 171 | local ui = UserInterface.new("Calculator", "Calculate") 172 | ui:addLabelApp("Calculator", "Calculate") 173 | ui:addTooltip("Information", "Calculator for basic arithmetic operations", "Info", false) 174 | ui:addToggle("Enable", saved:get("opened", false), "enable_calculator", false) 175 | 176 | function OnDraw(d) 177 | removeHook("ondraw") 178 | runCoroutine(function() 179 | sleep(6000) 180 | addCategory("ImGui", "Wysiwyg") 181 | addIntoModule(ui:generateJSON(), "ImGui") 182 | end) 183 | end 184 | 185 | function OnValue(type, name, value) 186 | if name == "enable_calculator" then 187 | CALC.opened = value 188 | saved:set("opened", CALC.opened) 189 | saved:save() 190 | end 191 | end 192 | 193 | applyHook() -------------------------------------------------------------------------------- /dumps/imgui.lua: -------------------------------------------------------------------------------- 1 | -- Grownlauncher API Dump 2 | -- Generated: 2025-09-07 10:56:24 3 | 4 | local ImGui = { 5 | DataType = { 6 | S16 = 2, 7 | COUNT = 10, 8 | U32 = 5, 9 | Float = 8, 10 | U64 = 7, 11 | Double = 9, 12 | S64 = 6, 13 | S8 = 0, 14 | U8 = 1, 15 | S32 = 4, 16 | U16 = 3, 17 | }, 18 | PushButtonRepeat = function() end, 19 | EndMenuBar = function() end, 20 | GetFrameHeightWithSpacing = function() end, 21 | LogText = function() end, 22 | SetCursorPos = function() end, 23 | IsItemVisible = function() end, 24 | GetCursorPosY = function() end, 25 | ShowDemoWindow = function() end, 26 | InputInt = function() end, 27 | BeginPopupModal = function() end, 28 | BeginListBox = function() end, 29 | SetNextWindowScroll = function() end, 30 | IsMouseDragging = function() end, 31 | CollapsingHeader = function() end, 32 | CalcItemWidth = function() end, 33 | TableHeadersRow = function() end, 34 | SetCursorPosY = function() end, 35 | IsWindowHovered = function() end, 36 | ShowDebugLogWindow = function() end, 37 | IsAnyMouseDown = function() end, 38 | EndCombo = function() end, 39 | SetNextItemOpen = function() end, 40 | TreePush = function() end, 41 | TableSetupScrollFreeze = function() end, 42 | Dummy = function() end, 43 | GetFrameCount = function() end, 44 | TabItemButton = function() end, 45 | ShowStyleEditor = function() end, 46 | Cond = { 47 | Appearing = 8, 48 | Always = 1, 49 | FirstUseEver = 4, 50 | None = 0, 51 | Once = 2, 52 | }, 53 | InvisibleButton = function() end, 54 | DrawFlags = { 55 | RoundCornersLeft = 80, 56 | RoundCornersDefault_ = 240, 57 | RoundCornersMask_ = 496, 58 | RoundCornersBottom = 192, 59 | None = 0, 60 | RoundCornersTop = 48, 61 | RoundCornersBottomLeft = 64, 62 | RoundCornersRight = 160, 63 | RoundCornersTopRight = 32, 64 | RoundCornersAll = 240, 65 | RoundCornersTopLeft = 16, 66 | RoundCornersNone = 256, 67 | RoundCornersBottomRight = 128, 68 | Closed = 1, 69 | }, 70 | IsWindowCollapsed = function() end, 71 | EndMenu = function() end, 72 | GetMouseDragDelta = function() end, 73 | TableSetBgColor = function() end, 74 | ShowMetricsWindow = function() end, 75 | SetNextWindowBgAlpha = function() end, 76 | DragScalar = function() end, 77 | GetID = function() end, 78 | IsItemClicked = function() end, 79 | SetNextFrameWantCaptureMouse = function() end, 80 | EndTabItem = function() end, 81 | ShowAboutWindow = function() end, 82 | IsPopupOpen = function() end, 83 | GetCursorPos = function() end, 84 | Text = function() end, 85 | TreeNodeEx = function() end, 86 | ColorConvertHSVtoRGB = function() end, 87 | BeginChildFrame = function() end, 88 | SameLine = function() end, 89 | SmallButton = function() end, 90 | GetCursorPosX = function() end, 91 | TableHeader = function() end, 92 | ColorButton = function() end, 93 | EndChildFrame = function() end, 94 | SetScrollHereX = function() end, 95 | TableGetRowIndex = function() end, 96 | BeginTabBar = function() end, 97 | GetWindowContentRegionMax = function() end, 98 | NextColumn = function() end, 99 | SetMouseCursor = function() end, 100 | GetScrollY = function() end, 101 | SetNextWindowCollapsed = function() end, 102 | BeginMainMenuBar = function() end, 103 | GetMouseCursor = function() end, 104 | SetScrollY = function() end, 105 | SetScrollFromPosY = function() end, 106 | SetNextFrameWantCaptureKeyboard = function() end, 107 | Dir = { 108 | Right = 1, 109 | Down = 3, 110 | Left = 0, 111 | COUNT = 4, 112 | None = -1, 113 | Up = 2, 114 | }, 115 | GetWindowPos = function() end, 116 | BeginGroup = function() end, 117 | TextUnformatted = function() end, 118 | EndMainMenuBar = function() end, 119 | NewLine = function() end, 120 | PushStyleColor = function() end, 121 | Combo = function() end, 122 | PopButtonRepeat = function() end, 123 | GetTreeNodeToLabelSpacing = function() end, 124 | MouseButton = { 125 | Right = 1, 126 | Middle = 2, 127 | Left = 0, 128 | COUNT = 5, 129 | }, 130 | ColorConvertU32ToFloat4 = function() end, 131 | GetColumnOffset = function() end, 132 | ShowStyleSelector = function() end, 133 | IsMouseReleased = function() end, 134 | SetColumnOffset = function() end, 135 | SetWindowFocus = function() end, 136 | GetTextLineHeightWithSpacing = function() end, 137 | PopTextWrapPos = function() end, 138 | SortDirection = { 139 | Ascending = 1, 140 | None = 0, 141 | Descending = 2, 142 | }, 143 | LogButtons = function() end, 144 | InputFloat = function() end, 145 | SetTabItemClosed = function() end, 146 | Spacing = function() end, 147 | GetColumnWidth = function() end, 148 | ShowStackToolWindow = function() end, 149 | IsItemFocused = function() end, 150 | LabelText = function() end, 151 | EndPopup = function() end, 152 | SetColumnWidth = function() end, 153 | SetNextWindowFocus = function() end, 154 | Col = { 155 | ScrollbarBg = 14, 156 | ScrollbarGrabActive = 17, 157 | FrameBgHovered = 8, 158 | Border = 5, 159 | FrameBgActive = 9, 160 | ScrollbarGrabHovered = 16, 161 | CheckMark = 18, 162 | ScrollbarGrab = 15, 163 | TabUnfocusedActive = 37, 164 | MenuBarBg = 13, 165 | DragDropTarget = 48, 166 | TableBorderLight = 44, 167 | PlotHistogram = 40, 168 | NavWindowingHighlight = 50, 169 | ModalWindowDimBg = 52, 170 | SeparatorActive = 29, 171 | SliderGrabActive = 20, 172 | COUNT = 53, 173 | NavWindowingDimBg = 51, 174 | NavHighlight = 49, 175 | TextSelectedBg = 47, 176 | Separator = 27, 177 | TableHeaderBg = 42, 178 | ResizeGripHovered = 31, 179 | TableRowBg = 45, 180 | TableBorderStrong = 43, 181 | HeaderActive = 26, 182 | TableRowBgAlt = 46, 183 | PlotLinesHovered = 39, 184 | TabUnfocused = 36, 185 | PlotLines = 38, 186 | ResizeGrip = 30, 187 | ChildBg = 3, 188 | PlotHistogramHovered = 41, 189 | SeparatorHovered = 28, 190 | TabActive = 35, 191 | SliderGrab = 19, 192 | Tab = 33, 193 | ButtonHovered = 22, 194 | Text = 0, 195 | TabHovered = 34, 196 | TitleBg = 10, 197 | FrameBg = 7, 198 | Header = 24, 199 | PopupBg = 4, 200 | HeaderHovered = 25, 201 | TitleBgActive = 11, 202 | Button = 21, 203 | TextDisabled = 1, 204 | TitleBgCollapsed = 12, 205 | ResizeGripActive = 32, 206 | ButtonActive = 23, 207 | BorderShadow = 6, 208 | WindowBg = 2, 209 | }, 210 | PopAllowKeyboardFocus = function() end, 211 | IsWindowFocused = function() end, 212 | PushID = function() end, 213 | LogToTTY = function() end, 214 | OpenPopupOnItemClick = function() end, 215 | PopItemWidth = function() end, 216 | GetWindowHeight = function() end, 217 | PushTextWrapPos = function() end, 218 | IsRectVisible = function() end, 219 | SetColorEditOptions = function() end, 220 | CheckboxFlags = function() end, 221 | SetNextItemWidth = function() end, 222 | ColorEdit4 = function() end, 223 | IsItemToggledOpen = function() end, 224 | ColorConvertFloat4ToU32 = function() end, 225 | IsMouseDoubleClicked = function() end, 226 | BeginChild = function() end, 227 | GetStyleColorVec4 = function() end, 228 | End = function() end, 229 | PopStyleColor = function() end, 230 | SetWindowPos = function() end, 231 | TableGetColumnFlags = function() end, 232 | Unindent = function() end, 233 | TableBgTarget = { 234 | RowBg0 = 1, 235 | CellBg = 3, 236 | None = 0, 237 | RowBg1 = 2, 238 | }, 239 | BeginPopupContextItem = function() end, 240 | GetWindowSize = function() end, 241 | SliderScalar = function() end, 242 | InputTextMultiline = function() end, 243 | SetWindowSize = function() end, 244 | GetMouseClickedCount = function() end, 245 | GetItemRectMax = function() end, 246 | ImageButton = function() end, 247 | InputTextWithHint = function() end, 248 | EndChild = function() end, 249 | MouseCursor = { 250 | ResizeNS = 3, 251 | ResizeNWSE = 6, 252 | None = -1, 253 | ResizeAll = 2, 254 | ResizeNESW = 5, 255 | Arrow = 0, 256 | TextInput = 1, 257 | ResizeEW = 4, 258 | COUNT = 9, 259 | NotAllowed = 8, 260 | Hand = 7, 261 | }, 262 | PushItemWidth = function() end, 263 | FG = { 264 | ['Child'] = { 265 | AddRectFilled = function() end, 266 | __index = {}, 267 | P = 1, 268 | AddRectFilledMultiColor = function() end, 269 | AddRect = function() end, 270 | AddCircle = function() end, 271 | AddNgon = function() end, 272 | AddNgonFilled = function() end, 273 | AddCircleFilled = function() end, 274 | AddText = function() end, 275 | AddLine = function() end, 276 | }, 277 | }, 278 | DragFloat = function() end, 279 | IsAnyItemActive = function() end, 280 | BG = { 281 | ['Child'] = { 282 | AddRectFilled = function() end, 283 | __index = {}, 284 | P = 0, 285 | AddRectFilledMultiColor = function() end, 286 | AddRect = function() end, 287 | AddCircle = function() end, 288 | AddNgon = function() end, 289 | AddNgonFilled = function() end, 290 | AddCircleFilled = function() end, 291 | AddText = function() end, 292 | AddLine = function() end, 293 | }, 294 | }, 295 | BeginPopup = function() end, 296 | SetNextWindowSize = function() end, 297 | Begin = function() end, 298 | RadioButton = function() end, 299 | DragInt = function() end, 300 | GetFontSize = function() end, 301 | BeginTooltip = function() end, 302 | IsWindowAppearing = function() end, 303 | IsItemEdited = function() end, 304 | GetMousePosOnOpeningCurrentPopup = function() end, 305 | BeginCombo = function() end, 306 | GetScrollX = function() end, 307 | GetItemID = function() end, 308 | IsMouseDown = function() end, 309 | BeginDisabled = function() end, 310 | ColorConvertRGBtoHSV = function() end, 311 | GetColorU32 = function() end, 312 | TableSetColumnIndex = function() end, 313 | Bullet = function() end, 314 | IsItemDeactivatedAfterEdit = function() end, 315 | InputText = function() end, 316 | InputTextFlags = { 317 | CallbackCharFilter = 512, 318 | CharsUppercase = 4, 319 | CharsDecimal = 1, 320 | EscapeClearsAll = 1048576, 321 | EnterReturnsTrue = 32, 322 | AllowTabInput = 1024, 323 | AlwaysOverwrite = 8192, 324 | CallbackEdit = 524288, 325 | CallbackResize = 262144, 326 | CharsNoBlank = 8, 327 | None = 0, 328 | ReadOnly = 16384, 329 | CallbackCompletion = 64, 330 | NoUndoRedo = 65536, 331 | AutoSelectAll = 16, 332 | Password = 32768, 333 | CharsScientific = 131072, 334 | CallbackHistory = 128, 335 | CtrlEnterForNewLine = 2048, 336 | CallbackAlways = 256, 337 | NoHorizontalScroll = 4096, 338 | CharsHexadecimal = 2, 339 | }, 340 | SetCursorScreenPos = function() end, 341 | PopStyleVar = function() end, 342 | SetNextWindowContentSize = function() end, 343 | SetNextWindowPos = function() end, 344 | TableGetColumnIndex = function() end, 345 | CalcTextSize = function() end, 346 | Separator = function() end, 347 | TreeNode = function() end, 348 | ShowUserGuide = function() end, 349 | TableSetupColumn = function() end, 350 | WindowFlags = { 351 | NoBackground = 128, 352 | NoTitleBar = 1, 353 | Tooltip = 33554432, 354 | AlwaysUseWindowPadding = 65536, 355 | NoDecoration = 43, 356 | MenuBar = 1024, 357 | Popup = 67108864, 358 | NoMouseInputs = 512, 359 | Modal = 134217728, 360 | NoScrollWithMouse = 16, 361 | UnsavedDocument = 1048576, 362 | NavFlattened = 8388608, 363 | ChildMenu = 268435456, 364 | AlwaysHorizontalScrollbar = 32768, 365 | ChildWindow = 16777216, 366 | NoNavFocus = 524288, 367 | NoNav = 786432, 368 | NoFocusOnAppearing = 4096, 369 | NoScrollbar = 8, 370 | NoBringToFrontOnFocus = 8192, 371 | None = 0, 372 | NoCollapse = 32, 373 | NoInputs = 786944, 374 | HorizontalScrollbar = 2048, 375 | NoResize = 2, 376 | AlwaysVerticalScrollbar = 16384, 377 | NoNavInputs = 262144, 378 | NoMove = 4, 379 | AlwaysAutoResize = 64, 380 | NoSavedSettings = 256, 381 | }, 382 | PopClipRect = function() end, 383 | DrawListFlags = { 384 | AntiAliasedLines = 1, 385 | AllowVtxOffset = 8, 386 | None = 0, 387 | AntiAliasedFill = 4, 388 | AntiAliasedLinesUseTex = 2, 389 | }, 390 | StyleVar = { 391 | ItemInnerSpacing = 15, 392 | WindowRounding = 3, 393 | ItemSpacing = 14, 394 | ChildRounding = 7, 395 | WindowBorderSize = 4, 396 | ScrollbarRounding = 19, 397 | COUNT = 28, 398 | ScrollbarSize = 18, 399 | WindowPadding = 2, 400 | SelectableTextAlign = 24, 401 | TabRounding = 22, 402 | CellPadding = 17, 403 | IndentSpacing = 16, 404 | WindowTitleAlign = 6, 405 | FramePadding = 11, 406 | GrabMinSize = 20, 407 | PopupRounding = 9, 408 | Alpha = 0, 409 | ButtonTextAlign = 23, 410 | PopupBorderSize = 10, 411 | WindowMinSize = 5, 412 | FrameRounding = 12, 413 | ChildBorderSize = 8, 414 | GrabRounding = 21, 415 | DisabledAlpha = 1, 416 | FrameBorderSize = 13, 417 | }, 418 | BeginMenuBar = function() end, 419 | IsMouseHoveringRect = function() end, 420 | SetClipboardText = function() end, 421 | MenuItem = function() end, 422 | TextColored = function() end, 423 | Button = function() end, 424 | EndDisabled = function() end, 425 | GetCursorStartPos = function() end, 426 | VSliderFloat = function() end, 427 | GetItemRectMin = function() end, 428 | TreePop = function() end, 429 | SetNextWindowSizeConstraints = function() end, 430 | IsMouseClicked = function() end, 431 | SetCursorPosX = function() end, 432 | PushClipRect = function() end, 433 | GetWindowContentRegionMin = function() end, 434 | GetFontTexUvWhitePixel = function() end, 435 | GetColumnsCount = function() end, 436 | PushAllowKeyboardFocus = function() end, 437 | EndGroup = function() end, 438 | ResetMouseDragDelta = function() end, 439 | EndTabBar = function() end, 440 | GetClipboardText = function() end, 441 | GetScrollMaxY = function() end, 442 | SetScrollX = function() end, 443 | Indent = function() end, 444 | SliderFloat = function() end, 445 | GetContentRegionAvail = function() end, 446 | GetTextLineHeight = function() end, 447 | EndListBox = function() end, 448 | GetScrollMaxX = function() end, 449 | SetScrollFromPosX = function() end, 450 | GetFrameHeight = function() end, 451 | SliderAngle = function() end, 452 | PushStyleVar = function() end, 453 | LogToFile = function() end, 454 | GetContentRegionMax = function() end, 455 | TextDisabled = function() end, 456 | Checkbox = function() end, 457 | IsAnyItemHovered = function() end, 458 | EndTooltip = function() end, 459 | LogToClipboard = function() end, 460 | PopID = function() end, 461 | BeginTable = function() end, 462 | BeginMenu = function() end, 463 | SliderInt = function() end, 464 | SetTooltip = function() end, 465 | IsItemDeactivated = function() end, 466 | OpenPopup = function() end, 467 | IsAnyItemFocused = function() end, 468 | CloseCurrentPopup = function() end, 469 | BeginPopupContextWindow = function() end, 470 | BeginPopupContextVoid = function() end, 471 | GetVersion = function() end, 472 | IsItemHovered = function() end, 473 | EndTable = function() end, 474 | TableNextRow = function() end, 475 | TextWrapped = function() end, 476 | TableNextColumn = function() end, 477 | TableGetColumnCount = function() end, 478 | TableGetColumnName = function() end, 479 | GetWindowWidth = function() end, 480 | ProgressBar = function() end, 481 | Columns = function() end, 482 | GetCursorScreenPos = function() end, 483 | GetColumnIndex = function() end, 484 | SetScrollHereY = function() end, 485 | SetWindowFontScale = function() end, 486 | ShowFontSelector = function() end, 487 | BeginTabItem = function() end, 488 | BulletText = function() end, 489 | SetItemDefaultFocus = function() end, 490 | AlignTextToFramePadding = function() end, 491 | Selectable = function() end, 492 | SetWindowCollapsed = function() end, 493 | SetKeyboardFocusHere = function() end, 494 | IsItemActivated = function() end, 495 | GetItemRectSize = function() end, 496 | Image = function() end, 497 | SetItemAllowOverlap = function() end, 498 | GetTime = function() end, 499 | TableSetColumnEnabled = function() end, 500 | LogFinish = function() end, 501 | ArrowButton = function() end, 502 | VSliderInt = function() end, 503 | IsItemActive = function() end, 504 | GetMousePos = function() end, 505 | } 506 | 507 | return ImGui -------------------------------------------------------------------------------- /ImGui_Function_List.lua: -------------------------------------------------------------------------------- 1 | 2 | --ImGui table list by iniey 3 | 4 | 5 | 6 | ImGui = 7 | { 8 | ShowDemoWindow = 'function: 0x6424440', 9 | GetWindowContentRegionMax = 'function: 0x6426010', 10 | TextUnformatted = 'function: 0x6427c1c', 11 | GetMouseDragDelta = 'function: 0x64300f4', 12 | IsItemToggledOpen = 'function: 0x642e918', 13 | SetNextWindowBgAlpha = 'function: 0x64259b0', 14 | BulletText = 'function: 0x6427fd0', 15 | OpenPopup = 'function: 0x642c598', 16 | DrawListFlags = 17 | { 18 | AntiAliasedFill = '4', 19 | AntiAliasedLines = '1', 20 | None = '0', 21 | AllowVtxOffset = '8', 22 | AntiAliasedLinesUseTex = '2', 23 | }, 24 | NextColumn = 'function: 0x642d6a0', 25 | PopItemWidth = 'function: 0x64269d8', 26 | EndTooltip = 'function: 0x642c184', 27 | TabItemButton = 'function: 0x642ddf4', 28 | InputTextMultiline = 'function: 0x642a70c', 29 | GetStyleColorVec4 = 'function: 0x6426dc8', 30 | TableNextColumn = 'function: 0x642ceb4', 31 | Combo = 'function: 0x642928c', 32 | DragScalar = 'function: 0x64297d8', 33 | ShowMetricsWindow = 'function: 0x64244f0', 34 | IsMouseDragging = 'function: 0x6430030', 35 | IsMouseHoveringRect = 'function: 0x642fc84', 36 | TableGetColumnCount = 'function: 0x642d1d8', 37 | ResetMouseDragDelta = 'function: 0x643025c', 38 | DataType = 39 | { 40 | S32 = '4', 41 | S16 = '2', 42 | Float = '8', 43 | COUNT = '10', 44 | U32 = '5', 45 | U64 = '7', 46 | S8 = '0', 47 | Double = '9', 48 | U8 = '1', 49 | U16 = '3', 50 | S64 = '6', 51 | }, 52 | BeginPopupContextItem = 'function: 0x642c764', 53 | GetFrameCount = 'function: 0x642eedc', 54 | GetFrameHeightWithSpacing = 'function: 0x6427a9c', 55 | SetScrollHereX = 'function: 0x6426344', 56 | NewLine = 'function: 0x642704c', 57 | PopID = 'function: 0x6427b60', 58 | SetNextWindowFocus = 'function: 0x6425890', 59 | TableBgTarget = 60 | { 61 | CellBg = '3', 62 | RowBg0 = '1', 63 | None = '0', 64 | RowBg1 = '2', 65 | }, 66 | ArrowButton = 'function: 0x6428308', 67 | SetNextItemOpen = 'function: 0x642b6c4', 68 | SetWindowCollapsed = 'function: 0x6425c4c', 69 | PopStyleColor = 'function: 0x642666c', 70 | GetItemRectSize = 'function: 0x642ec80', 71 | LogFinish = 'function: 0x642e100', 72 | GetWindowPos = 'function: 0x6425054', 73 | SetCursorPosY = 'function: 0x642764c', 74 | ColorConvertU32ToFloat4 = 'function: 0x642f2d0', 75 | IsMouseDoubleClicked = 'function: 0x642fba0', 76 | SetScrollFromPosY = 'function: 0x642652c', 77 | GetMousePos = 'function: 0x642fe98', 78 | GetCursorPosY = 'function: 0x64274a4', 79 | TableSetupColumn = 'function: 0x642cf6c', 80 | Selectable = 'function: 0x642b770', 81 | BeginTabItem = 'function: 0x642dbbc', 82 | LogButtons = 'function: 0x642e148', 83 | Checkbox = 'function: 0x6428398', 84 | LogText = 'function: 0x642e190', 85 | IsItemDeactivatedAfterEdit = 'function: 0x642e8bc', 86 | GetItemID = 'function: 0x642ea88', 87 | Spacing = 'function: 0x6427094', 88 | ColorEdit4 = 'function: 0x642ae64', 89 | IsAnyMouseDown = 'function: 0x642fe3c', 90 | ShowDebugLogWindow = 'function: 0x64245a0', 91 | DragFloat = 'function: 0x642938c', 92 | IsWindowHovered = 'function: 0x6424fbc', 93 | PushTextWrapPos = 'function: 0x6426af0', 94 | Columns = 'function: 0x642d574', 95 | IsItemActivated = 'function: 0x642e804', 96 | TableGetColumnName = 'function: 0x642d2f8', 97 | ColorConvertHSVtoRGB = 'function: 0x642f790', 98 | CloseCurrentPopup = 'function: 0x642c71c', 99 | GetContentRegionAvail = 'function: 0x6425dac', 100 | GetWindowContentRegionMin = 'function: 0x6425f44', 101 | GetColumnIndex = 'function: 0x642d6e8', 102 | EndTabBar = 'function: 0x642db2c', 103 | TableGetRowIndex = 'function: 0x642d298', 104 | ShowFontSelector = 'function: 0x642486c', 105 | BeginTooltip = 'function: 0x642c13c', 106 | MouseCursor = 107 | { 108 | ResizeEW = '4', 109 | TextInput = '1', 110 | NotAllowed = '8', 111 | COUNT = '9', 112 | Hand = '7', 113 | None = '-1', 114 | ResizeAll = '2', 115 | ResizeNS = '3', 116 | ResizeNESW = '5', 117 | Arrow = '0', 118 | ResizeNWSE = '6', 119 | }, 120 | SetItemAllowOverlap = 'function: 0x642ed4c', 121 | IsItemHovered = 'function: 0x642e564', 122 | LogToFile = 'function: 0x642df94', 123 | RadioButton = 'function: 0x64284f8', 124 | ShowUserGuide = 'function: 0x64248cc', 125 | GetTreeNodeToLabelSpacing = 'function: 0x642b5a8', 126 | Button = 'function: 0x6428030', 127 | CalcTextSize = 'function: 0x642f184', 128 | InvisibleButton = 'function: 0x64281c4', 129 | SliderInt = 'function: 0x6429dc4', 130 | GetColumnOffset = 'function: 0x642d870', 131 | TableHeader = 'function: 0x642d178', 132 | IsAnyItemFocused = 'function: 0x642ea2c', 133 | InputInt = 'function: 0x642acf4', 134 | PopClipRect = 'function: 0x642e44c', 135 | GetColumnsCount = 'function: 0x642d998', 136 | BeginMenu = 'function: 0x642be28', 137 | SetColumnOffset = 'function: 0x642d910', 138 | PushItemWidth = 'function: 0x642696c', 139 | GetID = 'function: 0x6427ba8', 140 | GetTextLineHeightWithSpacing = 'function: 0x64279d4', 141 | SetColumnWidth = 'function: 0x642d7e8', 142 | BeginGroup = 'function: 0x64272e4', 143 | GetCursorScreenPos = 'function: 0x6427784', 144 | BeginChildFrame = 'function: 0x642ef3c', 145 | EndPopup = 'function: 0x642c508', 146 | ShowAboutWindow = 'function: 0x6424700', 147 | GetFontTexUvWhitePixel = 'function: 0x6426c34', 148 | SetWindowFontScale = 'function: 0x6425d40', 149 | GetColumnWidth = 'function: 0x642d748', 150 | IsWindowAppearing = 'function: 0x6424e6c', 151 | DragInt = 'function: 0x64295b4', 152 | TreeNodeEx = 'function: 0x642b448', 153 | LogToClipboard = 'function: 0x642e078', 154 | CollapsingHeader = 'function: 0x642b60c', 155 | Dir = 156 | { 157 | None = '-1', 158 | Down = '3', 159 | Right = '1', 160 | COUNT = '4', 161 | Left = '0', 162 | Up = '2', 163 | }, 164 | GetMousePosOnOpeningCurrentPopup = 'function: 0x642ff64', 165 | SetTabItemClosed = 'function: 0x642deac', 166 | IsPopupOpen = 'function: 0x642ca28', 167 | SetNextFrameWantCaptureKeyboard = 'function: 0x642f9a0', 168 | BeginPopupModal = 'function: 0x642c360', 169 | EndTabItem = 'function: 0x642dd64', 170 | EndListBox = 'function: 0x642bac8', 171 | EndChildFrame = 'function: 0x642f0f4', 172 | BeginTabBar = 'function: 0x642d9f8', 173 | StyleVar = 174 | { 175 | WindowTitleAlign = '6', 176 | PopupRounding = '9', 177 | ItemSpacing = '14', 178 | ChildBorderSize = '8', 179 | FrameBorderSize = '13', 180 | WindowPadding = '2', 181 | COUNT = '28', 182 | WindowRounding = '3', 183 | ButtonTextAlign = '23', 184 | FrameRounding = '12', 185 | WindowBorderSize = '4', 186 | IndentSpacing = '16', 187 | ItemInnerSpacing = '15', 188 | PopupBorderSize = '10', 189 | GrabRounding = '21', 190 | ChildRounding = '7', 191 | GrabMinSize = '20', 192 | ScrollbarRounding = '19', 193 | ScrollbarSize = '18', 194 | DisabledAlpha = '1', 195 | WindowMinSize = '5', 196 | CellPadding = '17', 197 | TabRounding = '22', 198 | Alpha = '0', 199 | SelectableTextAlign = '24', 200 | FramePadding = '11', 201 | }, 202 | ColorConvertFloat4ToU32 = 'function: 0x642f41c', 203 | InputTextFlags = 204 | { 205 | CtrlEnterForNewLine = '2048', 206 | AutoSelectAll = '16', 207 | CallbackHistory = '128', 208 | NoUndoRedo = '65536', 209 | CallbackCharFilter = '512', 210 | EscapeClearsAll = '1048576', 211 | AllowTabInput = '1024', 212 | CallbackEdit = '524288', 213 | CallbackResize = '262144', 214 | CharsScientific = '131072', 215 | Password = '32768', 216 | AlwaysOverwrite = '8192', 217 | CallbackCompletion = '64', 218 | ReadOnly = '16384', 219 | CallbackAlways = '256', 220 | CharsUppercase = '4', 221 | None = '0', 222 | CharsHexadecimal = '2', 223 | CharsDecimal = '1', 224 | EnterReturnsTrue = '32', 225 | CharsNoBlank = '8', 226 | NoHorizontalScroll = '4096', 227 | }, 228 | EndTable = 'function: 0x642cd38', 229 | EndMenu = 'function: 0x642bf60', 230 | Col = 231 | { 232 | HeaderActive = '26', 233 | PlotHistogram = '40', 234 | PopupBg = '4', 235 | SeparatorActive = '29', 236 | TitleBgActive = '11', 237 | PlotLines = '38', 238 | TitleBg = '10', 239 | ResizeGripActive = '32', 240 | TableRowBgAlt = '46', 241 | TextDisabled = '1', 242 | HeaderHovered = '25', 243 | Text = '0', 244 | NavHighlight = '49', 245 | PlotHistogramHovered = '41', 246 | FrameBgActive = '9', 247 | ResizeGripHovered = '31', 248 | CheckMark = '18', 249 | COUNT = '53', 250 | ModalWindowDimBg = '52', 251 | NavWindowingDimBg = '51', 252 | TableHeaderBg = '42', 253 | ScrollbarGrabHovered = '16', 254 | DragDropTarget = '48', 255 | TextSelectedBg = '47', 256 | TabActive = '35', 257 | ChildBg = '3', 258 | Border = '5', 259 | MenuBarBg = '13', 260 | ScrollbarGrab = '15', 261 | TableBorderLight = '44', 262 | BorderShadow = '6', 263 | TableBorderStrong = '43', 264 | ResizeGrip = '30', 265 | PlotLinesHovered = '39', 266 | TabUnfocusedActive = '37', 267 | Separator = '27', 268 | FrameBgHovered = '8', 269 | ScrollbarBg = '14', 270 | TabUnfocused = '36', 271 | SliderGrabActive = '20', 272 | SeparatorHovered = '28', 273 | TableRowBg = '45', 274 | TabHovered = '34', 275 | Tab = '33', 276 | WindowBg = '2', 277 | SliderGrab = '19', 278 | TitleBgCollapsed = '12', 279 | FrameBg = '7', 280 | ScrollbarGrabActive = '17', 281 | Button = '21', 282 | ButtonHovered = '22', 283 | ButtonActive = '23', 284 | Header = '24', 285 | NavWindowingHighlight = '50', 286 | }, 287 | SliderScalar = 'function: 0x6429f40', 288 | SetScrollY = 'function: 0x6426210', 289 | Begin = 'function: 0x6424970', 290 | LabelText = 'function: 0x6427f50', 291 | EndDisabled = 'function: 0x642e284', 292 | EndChild = 'function: 0x6424ddc', 293 | BeginPopup = 'function: 0x642c22c', 294 | GetScrollY = 'function: 0x6426140', 295 | SetNextWindowSize = 'function: 0x6425488', 296 | InputTextWithHint = 'function: 0x642a960', 297 | SetWindowSize = 'function: 0x6425b34', 298 | VSliderFloat = 'function: 0x642a13c', 299 | Image = 'function: 0x6428748', 300 | GetContentRegionMax = 'function: 0x6425e78', 301 | TextDisabled = 'function: 0x6427e90', 302 | End = 'function: 0x6424b10', 303 | BeginChild = 'function: 0x6424ba0', 304 | GetWindowSize = 'function: 0x6425120', 305 | BeginMenuBar = 'function: 0x642bb58', 306 | Indent = 'function: 0x64271b4', 307 | GetColorU32 = 'function: 0x6426d00', 308 | GetFontSize = 'function: 0x6426bd0', 309 | ShowStyleEditor = 'function: 0x64247b0', 310 | IsItemVisible = 'function: 0x642e74c', 311 | GetItemRectMin = 'function: 0x642eae8', 312 | PushStyleVar = 'function: 0x64266fc', 313 | PushStyleColor = 'function: 0x64265ec', 314 | SameLine = 'function: 0x6426f5c', 315 | IsAnyItemActive = 'function: 0x642e9d0', 316 | IsItemDeactivated = 'function: 0x642e860', 317 | GetScrollMaxX = 'function: 0x642627c', 318 | InputFloat = 'function: 0x642ab18', 319 | GetVersion = 'function: 0x6424914', 320 | EndMenuBar = 'function: 0x642bc30', 321 | IsItemClicked = 'function: 0x642e6b4', 322 | MouseButton = 323 | { 324 | Right = '1', 325 | COUNT = '5', 326 | Middle = '2', 327 | Left = '0', 328 | }, 329 | AlignTextToFramePadding = 'function: 0x6427928', 330 | GetCursorPos = 'function: 0x6427374', 331 | TableSetBgColor = 'function: 0x642d4b0', 332 | TableSetColumnEnabled = 'function: 0x642d42c', 333 | SortDirection = 334 | { 335 | Descending = '2', 336 | None = '0', 337 | Ascending = '1', 338 | }, 339 | SetClipboardText = 'function: 0x6430464', 340 | SetScrollFromPosX = 'function: 0x642646c', 341 | IsRectVisible = 'function: 0x642ed94', 342 | GetMouseClickedCount = 'function: 0x642fc10', 343 | TableHeadersRow = 'function: 0x642d130', 344 | FG = 345 | { 346 | AddNgonFilled = 'function: 0xbd4fcc20', 347 | AddCircleFilled = 'function: 0xbd4fcc60', 348 | AddRect = 'function: 0xbd4fcca0', 349 | AddLine = 'function: 0xbd4fce20', 350 | AddRectFilledMultiColor = 'function: 0xbd4fcde0', 351 | __index = 'table: 0xbd4fcc00', 352 | AddCircle = 'function: 0xbd4fcd20', 353 | AddText = 'function: 0xbd4fcd60', 354 | AddNgon = 'function: 0xbd4fcda0', 355 | P = '1', 356 | AddRectFilled = 'function: 0xbd4fcce0', 357 | }, 358 | BG = 359 | { 360 | AddNgonFilled = 'function: 0xbd4fc9c0', 361 | AddCircleFilled = 'function: 0xbd4fca00', 362 | AddRect = 'function: 0xbd4fca40', 363 | AddLine = 'function: 0xbd4fcbc0', 364 | AddRectFilledMultiColor = 'function: 0xbd4fcb80', 365 | __index = 'table: 0xbd4fc9a0', 366 | AddCircle = 'function: 0xbd4fcac0', 367 | AddText = 'function: 0xbd4fcb00', 368 | AddNgon = 'function: 0xbd4fcb40', 369 | P = '0', 370 | AddRectFilled = 'function: 0xbd4fca80', 371 | }, 372 | WindowFlags = 373 | { 374 | NoDecoration = '43', 375 | AlwaysAutoResize = '64', 376 | NoResize = '2', 377 | Popup = '67108864', 378 | NoMove = '4', 379 | AlwaysVerticalScrollbar = '16384', 380 | AlwaysHorizontalScrollbar = '32768', 381 | NoTitleBar = '1', 382 | NoNavFocus = '524288', 383 | NoScrollWithMouse = '16', 384 | HorizontalScrollbar = '2048', 385 | NoBringToFrontOnFocus = '8192', 386 | NoSavedSettings = '256', 387 | MenuBar = '1024', 388 | NoScrollbar = '8', 389 | ChildWindow = '16777216', 390 | ChildMenu = '268435456', 391 | Modal = '134217728', 392 | NoCollapse = '32', 393 | NoInputs = '786944', 394 | Tooltip = '33554432', 395 | NavFlattened = '8388608', 396 | UnsavedDocument = '1048576', 397 | NoFocusOnAppearing = '4096', 398 | None = '0', 399 | NoNavInputs = '262144', 400 | NoNav = '786432', 401 | AlwaysUseWindowPadding = '65536', 402 | NoBackground = '128', 403 | NoMouseInputs = '512', 404 | }, 405 | DrawFlags = 406 | { 407 | RoundCornersLeft = '80', 408 | RoundCornersTopLeft = '16', 409 | RoundCornersBottom = '192', 410 | RoundCornersBottomRight = '128', 411 | RoundCornersTopRight = '32', 412 | RoundCornersMask_ = '496', 413 | RoundCornersDefault_ = '240', 414 | RoundCornersRight = '160', 415 | None = '0', 416 | RoundCornersAll = '240', 417 | RoundCornersNone = '256', 418 | RoundCornersBottomLeft = '64', 419 | Closed = '1', 420 | RoundCornersTop = '48', 421 | }, 422 | TableNextRow = 'function: 0x642cdc8', 423 | IsWindowFocused = 'function: 0x6424f24', 424 | TextColored = 'function: 0x6427d28', 425 | CheckboxFlags = 'function: 0x642843c', 426 | GetTextLineHeight = 'function: 0x6427970', 427 | SmallButton = 'function: 0x6428154', 428 | Dummy = 'function: 0x64270dc', 429 | Separator = 'function: 0x6426f14', 430 | SetNextItemWidth = 'function: 0x6426a20', 431 | SetNextWindowSizeConstraints = 'function: 0x64255a0', 432 | IsItemEdited = 'function: 0x642e7a8', 433 | PushID = 'function: 0x6427b00', 434 | SetCursorPos = 'function: 0x6427508', 435 | GetScrollX = 'function: 0x64260dc', 436 | PushClipRect = 'function: 0x642e2cc', 437 | EndGroup = 'function: 0x642732c', 438 | SetNextWindowPos = 'function: 0x64252b4', 439 | IsItemFocused = 'function: 0x642e658', 440 | CalcItemWidth = 'function: 0x6426a8c', 441 | SetNextWindowCollapsed = 'function: 0x64257e4', 442 | LogToTTY = 'function: 0x642df0c', 443 | BeginDisabled = 'function: 0x642e1f0', 444 | TreePush = 'function: 0x642b500', 445 | SetNextFrameWantCaptureMouse = 'function: 0x64303a4', 446 | SetItemDefaultFocus = 'function: 0x642e494', 447 | PushAllowKeyboardFocus = 'function: 0x6426814', 448 | ColorButton = 'function: 0x642b100', 449 | ShowStyleSelector = 'function: 0x64247fc', 450 | BeginCombo = 'function: 0x64290ac', 451 | PopTextWrapPos = 'function: 0x6426b88', 452 | GetWindowHeight = 'function: 0x6425250', 453 | IsWindowCollapsed = 'function: 0x6424ec8', 454 | BeginPopupContextVoid = 'function: 0x642c93c', 455 | SetCursorPosX = 'function: 0x64275e0', 456 | GetMouseCursor = 'function: 0x64302e4', 457 | TextWrapped = 'function: 0x6427ef0', 458 | Cond = 459 | { 460 | FirstUseEver = '4', 461 | None = '0', 462 | Appearing = '8', 463 | Once = '2', 464 | Always = '1', 465 | }, 466 | SetScrollX = 'function: 0x64261a4', 467 | PopButtonRepeat = 'function: 0x6426924', 468 | TreeNode = 'function: 0x642b3d8', 469 | BeginListBox = 'function: 0x642b928', 470 | SetColorEditOptions = 'function: 0x642b378', 471 | ProgressBar = 'function: 0x642858c', 472 | SetWindowPos = 'function: 0x6425a1c', 473 | Text = 'function: 0x6427cc4', 474 | GetCursorPosX = 'function: 0x6427440', 475 | GetTime = 'function: 0x642ee7c', 476 | EndCombo = 'function: 0x64291fc', 477 | SetNextWindowScroll = 'function: 0x64258d8', 478 | ColorConvertRGBtoHSV = 'function: 0x642f580', 479 | ShowStackToolWindow = 'function: 0x6424650', 480 | ImageButton = 'function: 0x6428be4', 481 | TreePop = 'function: 0x642b560', 482 | PopStyleVar = 'function: 0x6426784', 483 | OpenPopupOnItemClick = 'function: 0x642c640', 484 | GetScrollMaxY = 'function: 0x64262e0', 485 | BeginMainMenuBar = 'function: 0x642bcc0', 486 | MenuItem = 'function: 0x642bff0', 487 | SetWindowFocus = 'function: 0x6425cf8', 488 | BeginTable = 'function: 0x642cae0', 489 | GetFrameHeight = 'function: 0x6427a38', 490 | TableSetColumnIndex = 'function: 0x642cefc', 491 | SetNextWindowContentSize = 'function: 0x642570c', 492 | TableGetColumnFlags = 'function: 0x642d390', 493 | SetCursorScreenPos = 'function: 0x6427850', 494 | GetWindowWidth = 'function: 0x64251ec', 495 | InputText = 'function: 0x642a578', 496 | PopAllowKeyboardFocus = 'function: 0x6426878', 497 | TableGetColumnIndex = 'function: 0x642d238', 498 | IsAnyItemHovered = 'function: 0x642e974', 499 | VSliderInt = 'function: 0x642a370', 500 | EndMainMenuBar = 'function: 0x642bd98', 501 | Bullet = 'function: 0x6428700', 502 | BeginPopupContextWindow = 'function: 0x642c850', 503 | SliderFloat = 'function: 0x6429a2c', 504 | GetClipboardText = 'function: 0x6430408', 505 | SetKeyboardFocusHere = 'function: 0x642e4dc', 506 | TableSetupScrollFreeze = 'function: 0x642d0b0', 507 | IsItemActive = 'function: 0x642e5fc', 508 | SetTooltip = 'function: 0x642c1cc', 509 | SliderAngle = 'function: 0x6429be8', 510 | SetScrollHereY = 'function: 0x64263d8', 511 | Unindent = 'function: 0x642724c', 512 | PushButtonRepeat = 'function: 0x64268c0', 513 | IsMouseDown = 'function: 0x642fa04', 514 | IsMouseClicked = 'function: 0x642fa74', 515 | SetMouseCursor = 'function: 0x6430344', 516 | IsMouseReleased = 'function: 0x642fb30', 517 | GetCursorStartPos = 'function: 0x64276b8', 518 | GetItemRectMax = 'function: 0x642ebb4', 519 | } 520 | -------------------------------------------------------------------------------- /annotations/growlauncher.lua: -------------------------------------------------------------------------------- 1 | ---@meta 2 | 3 | ---@class Vector2 4 | ---@field x number 5 | ---@field y number 6 | 7 | ---@class Vector3 8 | ---@field x number 9 | ---@field y number 10 | ---@field z number 11 | 12 | ---@class Rect 13 | ---@field x number 14 | ---@field y number 15 | ---@field w number 16 | ---@field h number 17 | 18 | ---@class TankPacket 19 | ---@field netid number 20 | ---@field secnetid number 21 | ---@field type number 22 | ---@field state number 23 | ---@field value number 24 | ---@field x number 25 | ---@field y number 26 | ---@field xspeed number 27 | ---@field yspeed number 28 | ---@field px number 29 | ---@field py number 30 | ---@field padding1 number 31 | ---@field padding2 number 32 | ---@field padding3 number 33 | ---@field padding4 number 34 | ---@field padding5 number 35 | ---@field time number 36 | 37 | ---@class Dialog 38 | ---@field title string 39 | ---@field alias string 40 | ---@field message string 41 | ---@field confirm string 42 | ---@field ignore string 43 | ---@field url string 44 | 45 | ---@class Variant 46 | ---@field x number? 47 | ---@field y number? 48 | ---@field z number? 49 | 50 | ---@class VariantList 51 | ---@field v1 Variant|string|number|boolean 52 | ---@field v2 Variant|string|number|boolean 53 | ---@field v3 Variant|string|number|boolean 54 | ---@field v4 Variant|string|number|boolean 55 | ---@field v5 Variant|string|number|boolean 56 | ---@field v6 Variant|string|number|boolean 57 | ---@field v7 Variant|string|number|boolean 58 | 59 | ---@class NetAvatarClothes 60 | ---@field hair number 61 | ---@field shirt number 62 | ---@field pants number 63 | ---@field feet number 64 | ---@field hand number 65 | ---@field back number 66 | ---@field face number 67 | ---@field mask number 68 | ---@field necklace number 69 | 70 | ---@class NetAvatar 71 | ---@field pos Vector2 72 | ---@field size Vector2 73 | ---@field posX number 74 | ---@field posY number 75 | ---@field posXenc number 76 | ---@field posYenc number 77 | ---@field sizeX number 78 | ---@field sizeY number 79 | ---@field sizeXenc number 80 | ---@field sizeYenc number 81 | ---@field punchID number 82 | ---@field userID number 83 | ---@field name string 84 | ---@field netID number 85 | ---@field isLeft boolean 86 | ---@field status number 87 | ---@field irisColor number 88 | ---@field pupilColor number 89 | ---@field onGround boolean 90 | ---@field country string 91 | ---@field equip NetAvatarClothes 92 | ---@field effect NetAvatarClothes 93 | 94 | ---@class InventoryItem 95 | ---@field id number 96 | ---@field amount number 97 | 98 | ---@class WorldObject 99 | ---@field pos Vector2 100 | ---@field itemid number 101 | ---@field amount number 102 | ---@field invbit number 103 | ---@field id number 104 | 105 | ---@class ClientNPC 106 | ---@field pos Vector2 107 | ---@field targetpos Vector2 108 | ---@field id number 109 | ---@field type number 110 | 111 | ---@class ItemInfo 112 | ---@field id number 113 | ---@field type number 114 | ---@field name string 115 | ---@field breakHits number 116 | ---@field rarity number 117 | ---@field collisiontype number 118 | ---@field growTime number 119 | 120 | ---@class TileExtra 121 | ---@field type number 122 | ---@field label string 123 | ---@field label2 string 124 | ---@field label3 string 125 | ---@field owner number 126 | ---@field owner_signed number 127 | ---@field vend_price number 128 | ---@field vend_item number 129 | ---@field dshelf1 number 130 | ---@field dshelf2 number 131 | ---@field dshelf3 number 132 | ---@field dshelf4 number 133 | ---@field flag number 134 | ---@field admin number[] 135 | ---@field lastupdate number 136 | ---@field lastupdate2 number 137 | ---@field alttype number 138 | ---@field growth number 139 | ---@field volume number 140 | ---@field fruitcount number 141 | ---@field visible boolean 142 | ---@field color number 143 | 144 | ---@class Tile 145 | ---@field fg number 146 | ---@field bg number 147 | ---@field flag number 148 | ---@field collidable boolean 149 | ---@field x number 150 | ---@field y number 151 | ---@field coltype number 152 | ---@field extra TileExtra? 153 | ---@field progress number 154 | ---@field readyharvest boolean 155 | 156 | ---@class WorldTileMap 157 | ---@field size Vector2 158 | 159 | -- Core Functions 160 | 161 | ---Log text to console 162 | ---@param text string|number|boolean 163 | function LogToConsole(text) end 164 | 165 | ---Add data into module 166 | ---@param json string 167 | ---@param category_name string|nil 168 | function addIntoModule(json, category_name) end 169 | 170 | ---Get value by type and name 171 | ---@param type number 0=boolean, 1=integer, 2=string 172 | ---@param name string 173 | ---@return boolean|number|string 174 | function getValue(type, name) end 175 | 176 | ---Set value without trigger UI update 177 | ---@param name string 178 | ---@param value any 179 | function setValue(name, value) end 180 | 181 | ---Bind Value 182 | ---@param type number 0=boolean, 1=integer, 2=string 183 | ---@param alias string 184 | ---@param default string|number|boolean 185 | ---@return boolean|number|string 186 | function bindValue(type, alias, default) end 187 | 188 | ---Send notification popup 189 | ---@param text string 190 | function sendNotification(text) end 191 | 192 | ---Get current time in milliseconds 193 | ---@return number 194 | function getTime() end 195 | 196 | ---Send packet to server 197 | ---@param type number 198 | ---@param packet string 199 | ---@param to_client_first boolean? 200 | function sendPacket(type, packet, to_client_first) end 201 | 202 | ---Sleep for specified milliseconds (yields in coroutine) 203 | ---@param delay number 204 | function sleep(delay) end 205 | 206 | ---Get current world name 207 | ---@return string 208 | function getCurrentWorldName() end 209 | 210 | ---Send raw tank packet 211 | ---@param flag boolean 212 | ---@param packet TankPacket 213 | function sendPacketRaw(flag, packet) end 214 | 215 | ---Send dialog to Java 216 | ---@param dialog Dialog 217 | function sendDialog(dialog) end 218 | 219 | ---Allow game to run (deprecated) 220 | function allowGameRun() end 221 | 222 | ---Send variant list 223 | ---@param variantlist VariantList 224 | ---@param packet_data TankPacket? 225 | ---@param netid number? 226 | ---@param value number? 227 | function sendVariant(variantlist, packet_data, netid, value) 228 | end 229 | 230 | 231 | ---Find path to coordinates 232 | ---@param x number 233 | ---@param y number 234 | ---@param check_only boolean? 235 | ---@return boolean isBlocked 236 | function FindPath(x, y, check_only) end 237 | 238 | ---Deprecated function placeholder 239 | function deprecatedFunction() end 240 | 241 | ---Find item ID by name 242 | ---@param itemname string 243 | ---@return number itemid 244 | function findItemID(itemname) end 245 | 246 | ---Get player by NetID 247 | ---@param netid number 248 | ---@return NetAvatar 249 | function getPlayerByNetID(netid) end 250 | 251 | ---Get inventory items 252 | ---@return InventoryItem[] 253 | function getInventory() end 254 | 255 | ---Send data to Java 256 | ---@param message string 257 | function sendToJava(message) end 258 | 259 | ---Get list of world objects 260 | ---@return WorldObject[] 261 | function getObjectList() end 262 | 263 | ---Get client NPC list 264 | ---@return ClientNPC[] 265 | function getNPCList() end 266 | 267 | ---Get current gems amount 268 | ---@return number 269 | function getGems() end 270 | 271 | ---Edit/change value or toggle 272 | ---@param name string 273 | ---@param value string|boolean|number 274 | function editValue(name, value) end 275 | 276 | ---Set minimum version requirement 277 | ---@param version string 278 | function setMinimum(version) end 279 | 280 | ---Run function in separate thread 281 | ---@param func function 282 | ---@param ... any 283 | function runThread(func, ...) end 284 | 285 | ---Run coroutine tick (internal) 286 | function tickCoroutine() end 287 | 288 | ---Run coroutine thread 289 | ---@param func function 290 | ---@param ... any 291 | ---@return any ... 292 | function runCoroutine(func, ...) end 293 | 294 | ---Sleep in coroutine context 295 | ---@param milliseconds number 296 | function CSleep(milliseconds) end 297 | 298 | ---Get item info by ID 299 | ---@param id number 300 | ---@return ItemInfo 301 | function getItemInfoByID(id) end 302 | 303 | ---Get tile at coordinates 304 | ---@param x number 305 | ---@param y number 306 | ---@return Tile 307 | function getTile(x, y) end 308 | 309 | ---Get item info by name 310 | ---@param name string 311 | ---@return ItemInfo 312 | function getItemInfoByName(name) end 313 | 314 | ---Get all tiles in world 315 | ---@return Tile[] 316 | function getTiles() end 317 | 318 | ---Get local player data 319 | ---@return NetAvatar 320 | function getLocal() end 321 | 322 | ---Get list of all players 323 | ---@return NetAvatar[] 324 | function getPlayerList() end 325 | 326 | ---Add shortcut 327 | ---@param name string 328 | function addShortcut(name) end 329 | 330 | ---Remove shortcut 331 | ---@param name string 332 | function removeShortcut(name) end 333 | 334 | ---Add hook for events 335 | ---@param func function 336 | ---@param name string|"ondraw"|"onvalue"|"ondialog"|"onsendpacket"|"onvariant"|"onsendpacketraw"|"ondrawimgui"|"ongamepacket" 337 | ---@param noret boolean? 338 | function addHook(func, name, noret) end 339 | 340 | ---Remove hook 341 | ---@param name string|"ondraw"|"onvalue"|"ondialog"|"onsendpacket"|"onvariant"|"onsendpacketraw"|"ondrawimgui"|"ongamepacket" 342 | function removeHook(name) end 343 | 344 | ---Decrypt text (internal) 345 | ---@param text string 346 | function decryptText(text) end 347 | 348 | ---Decrypt text alternative (internal) 349 | ---@param text string 350 | function decryptTextHuh(text) end 351 | 352 | ---Get world tile map 353 | ---@return WorldTileMap 354 | function getWorldTileMap() end 355 | 356 | ---Check radius 357 | ---@param circle_x number 358 | ---@param circle_y number 359 | ---@param rad number 360 | ---@param x number 361 | ---@param y number 362 | function isInside(circle_x, circle_y, rad, x, y) end 363 | 364 | ---@param packet TankPacket 365 | function gamePacket(packet) end 366 | 367 | -- Aliases for compatibility 368 | editToggle = editValue 369 | 370 | ---Applies hooks to predefined global functions. 371 | function applyHook() end 372 | ApplyHook = applyHook 373 | 374 | ---@param o any 375 | ---@return string 376 | function dumpTable(o) end 377 | 378 | ---@param text string 379 | function log(text) end 380 | 381 | ---@class Growtopia 382 | local growtopia = {} 383 | 384 | ---Enter a gateway door 385 | ---@param x number 386 | ---@param y number 387 | ---@param n number 388 | function growtopia.enterGateway(x, y, n) end 389 | 390 | ---@param text string 391 | ---@param toClient boolean|nil 392 | function growtopia.sendChat(text, toClient) end 393 | 394 | ---@param posx number 395 | ---@param posy number 396 | ---@param value number 397 | function growtopia.tileChange(posx, posy, value) end 398 | 399 | ---@param dialog string 400 | function growtopia.sendDialog(dialog) end 401 | 402 | ---@param msg string 403 | function growtopia.notify(msg) end 404 | 405 | ---@param weatherid number 406 | function growtopia.setWeather(weatherid) end 407 | 408 | ---@param id number 409 | ---@return string 410 | function growtopia.getItemName(id) end 411 | 412 | ---@param name string 413 | ---@return number 414 | function growtopia.getItemID(name) end 415 | 416 | ---@param itemid number 417 | ---@return boolean 418 | function growtopia.checkInventory(itemid) end 419 | 420 | ---@param itemid number 421 | ---@return number 422 | function growtopia.checkInventoryCount(itemid) end 423 | 424 | ---@param posx number 425 | ---@param posy number 426 | ---@return boolean 427 | function growtopia.isOnPos(posx, posy) end 428 | 429 | ---@param world_name string 430 | function growtopia.warpTo(world_name) end 431 | 432 | function growtopia.enter() end 433 | 434 | function growtopia.enterPos() end 435 | 436 | ---@param itemID number 437 | function growtopia.dropItem(itemID) end 438 | 439 | ---@param itemID number 440 | ---@param amount number 441 | function growtopia.confirmDropItem(itemID, amount) end 442 | 443 | ---@param url string 444 | ---@return string, string 445 | function fetch(url) 446 | end 447 | 448 | ---@param x number 449 | ---@param y number 450 | ---@return any 451 | function tile.getTile(x, y) end 452 | --- Deprecated 453 | function tile.setFg(...) end 454 | --- Deprecated 455 | function tile.setBg(...) end 456 | 457 | ---@class ItemInfoManager 458 | local itemInfoManager = {} 459 | ---@param id number 460 | ---@return table|nil 461 | function itemInfoManager.getItemInfoByID(id) end 462 | ---@param name string 463 | ---@return table|nil 464 | function itemInfoManager.getItemInfoByName(name) end 465 | 466 | ---@return ItemInfoManager 467 | function getItemInfoManager() end 468 | 469 | ---Splits a string by a separator. 470 | ---@param str string 471 | ---@param regex string 472 | ---@return string[] 473 | function split(str, regex) end 474 | 475 | ---Splits the string by separator. 476 | ---@param sep string 477 | ---@return string[] 478 | function string:split(sep) end 479 | 480 | ---@param min number 481 | ---@param max number 482 | ---@return number 483 | function randomSleep(min, max) end 484 | 485 | ---@param min number 486 | ---@param max number 487 | ---@return number 488 | function randomCSleep(min, max) end 489 | 490 | ---@param name string 491 | ---@param s string 492 | function writeToLocal(name, s) end 493 | 494 | ---@param function_cond fun(): boolean 495 | ---@param timeout number|nil 496 | function await(function_cond, timeout) end 497 | 498 | ---@param c_x number 499 | ---@param c_y number 500 | ---@param radius number 501 | ---@param x number 502 | ---@param y number 503 | ---@return boolean 504 | function isInside(c_x, c_y, radius, x, y) end 505 | 506 | ---@param name string 507 | ---@param icon string 508 | function addCategory(name, icon) end 509 | 510 | -- Deprecated function 511 | ---@param path string 512 | ---@param name string 513 | function executeFromAssets(path, name) end 514 | 515 | --- Trigger function onValue 516 | ---@param name string 517 | ---@param func function 518 | function setOnValue(name, func) end 519 | 520 | ---@meta 521 | 522 | ---@class UserInterface 523 | ---@field sub_name string 524 | ---@field menu table[] 525 | ---@field icon string? 526 | local UserInterface = {} 527 | UserInterface.__index = UserInterface 528 | 529 | ---Create a new UserInterface instance 530 | ---@param sub_name string? The name of the UI sub-category (default: "Untitled") 531 | ---@param icon string? Optional icon for the UI 532 | ---@return UserInterface 533 | function UserInterface.new(sub_name, icon) end 534 | 535 | ---Add a label to the UI 536 | ---@param text string The label text 537 | ---@return UserInterface self For method chaining 538 | function UserInterface:addLabel(text) end 539 | 540 | ---Add a label with app styling 541 | ---@param text string The label text 542 | ---@param icon string? Optional icon for the label 543 | ---@return UserInterface self For method chaining 544 | function UserInterface:addLabelApp(text, icon) end 545 | 546 | ---Add a toggle control 547 | ---@param text string The toggle text/label 548 | ---@param default boolean? Default state (default: false) 549 | ---@param alias string? Alias for the toggle 550 | ---@param autosave boolean? Whether to autosave the toggle state 551 | ---@return UserInterface self For method chaining 552 | function UserInterface:addToggle(text, default, alias, autosave) end 553 | 554 | ---Add a toggle button control 555 | ---@param text string The toggle button text/label 556 | ---@param default boolean? Default state (default: false) 557 | ---@param alias string? Alias for the toggle button 558 | ---@return UserInterface self For method chaining 559 | function UserInterface:addToggleButton(text, default, alias) end 560 | 561 | ---Add a button control 562 | ---@param text string The button text/label 563 | ---@param alias string? Alias for the button 564 | ---@return UserInterface self For method chaining 565 | function UserInterface:addButton(text, alias) end 566 | 567 | ---Add a child button to a parent element 568 | ---@param parent table The parent element to add the button to 569 | ---@param text string The button text/label 570 | ---@param alias string? Alias for the button 571 | ---@return UserInterface self For method chaining 572 | function UserInterface:addChildButton(parent, text, alias) end 573 | 574 | ---Add an expandable toggle control 575 | ---@param text string The toggle text/label 576 | ---@param default boolean? Default state (default: false) 577 | ---@param alias string? Alias for the toggle 578 | ---@param always_expand boolean? Whether the toggle is always expanded 579 | ---@param background boolean? Background setting for the toggle 580 | ---@return table expandable_toggle The created expandable toggle (for adding children) 581 | function UserInterface:addExpandableToggle(text, default, alias, always_expand, background) end 582 | 583 | ---Add a child toggle to a parent element 584 | ---@param parent table The parent element to add the toggle to 585 | ---@param text string The toggle text/label 586 | ---@param default boolean? Default state (default: false) 587 | ---@param alias string? Alias for the toggle 588 | ---@param autosave boolean? Whether to autosave the toggle state 589 | ---@param background boolean? Background setting for the toggle 590 | ---@return UserInterface self For method chaining 591 | function UserInterface:addChildToggle(parent, text, default, alias, autosave, background) end 592 | 593 | ---Add a slider control 594 | ---@param text string The slider text/label 595 | ---@param min_val number? Minimum value (default: 0) 596 | ---@param max_val number? Maximum value (default: 10) 597 | ---@param default_val number? Default value (default: 5) 598 | ---@param step number? Step size for the slider 599 | ---@param use_dot boolean? Whether to use dot notation 600 | ---@param alias string? Alias for the slider 601 | ---@return UserInterface self For method chaining 602 | function UserInterface:addSlider(text, min_val, max_val, default_val, step, use_dot, alias) end 603 | 604 | ---Add a child slider to a parent element 605 | ---@param parent table The parent element to add the slider to 606 | ---@param text string The slider text/label 607 | ---@param min_val number? Minimum value (default: 0) 608 | ---@param max_val number? Maximum value (default: 10) 609 | ---@param default_val number? Default value (default: 5) 610 | ---@param step number? Step size for the slider 611 | ---@param use_dot boolean? Whether to use dot notation 612 | ---@param alias string? Alias for the slider 613 | ---@return UserInterface self For method chaining 614 | function UserInterface:addChildSlider(parent, text, min_val, max_val, default_val, step, use_dot, alias) end 615 | 616 | ---Add a tooltip 617 | ---@param text string The tooltip text 618 | ---@param support_text string? Additional support text (default: "") 619 | ---@param icon string? Optional icon for the tooltip 620 | ---@param background boolean? Background setting for the tooltip 621 | ---@return UserInterface self For method chaining 622 | function UserInterface:addTooltip(text, support_text, icon, background) end 623 | 624 | ---Add a child tooltip to a parent element 625 | ---@param parent table The parent element to add the tooltip to 626 | ---@param text string The tooltip text 627 | ---@param support_text string? Additional support text (default: "") 628 | ---@param icon string? Optional icon for the tooltip 629 | ---@param background boolean? Background setting for the tooltip 630 | ---@return UserInterface self For method chaining 631 | function UserInterface:addChildTooltip(parent, text, support_text, icon, background) end 632 | 633 | ---Add an item picker control 634 | ---@param text string The item picker text/label 635 | ---@param item string? The item type (default: "Blank") 636 | ---@param default string? Default selected item (default: "Blank") 637 | ---@param alias string? Alias for the item picker 638 | ---@return UserInterface self For method chaining 639 | function UserInterface:addItemPicker(text, item, default, alias) end 640 | 641 | ---Add a child item picker to a parent element 642 | ---@param parent table The parent element to add the item picker to 643 | ---@param text string The item picker text/label 644 | ---@param item string? The item type (default: "Blank") 645 | ---@param default string? Default selected item (default: "Blank") 646 | ---@param alias string? Alias for the item picker 647 | ---@return UserInterface self For method chaining 648 | function UserInterface:addChildItemPicker(parent, text, item, default, alias) end 649 | 650 | ---Add an integer input control 651 | ---@param text string The input text/label 652 | ---@param default string? Default value (default: "0") 653 | ---@param label string? Input label (default: "Value") 654 | ---@param placeholder string? Placeholder text (default: "0") 655 | ---@param icon string? Optional icon for the input 656 | ---@param alias string? Alias for the input 657 | ---@return UserInterface self For method chaining 658 | function UserInterface:addInputInt(text, default, label, placeholder, icon, alias) end 659 | 660 | ---Add a child integer input to a parent element 661 | ---@param parent table The parent element to add the input to 662 | ---@param text string The input text/label 663 | ---@param default string? Default value (default: "0") 664 | ---@param label string? Input label (default: "Value") 665 | ---@param placeholder string? Placeholder text (default: "0") 666 | ---@param icon string? Optional icon for the input 667 | ---@param alias string? Alias for the input 668 | ---@return UserInterface self For method chaining 669 | function UserInterface:addChildInputInt(parent, text, default, label, placeholder, icon, alias) end 670 | 671 | ---Add a string input control 672 | ---@param text string The input text/label 673 | ---@param default string? Default value (default: "") 674 | ---@param label string? Input label (default: "Text") 675 | ---@param placeholder string? Placeholder text (default: "") 676 | ---@param icon string? Optional icon for the input 677 | ---@param alias string? Alias for the input 678 | ---@return UserInterface self For method chaining 679 | function UserInterface:addInputString(text, default, label, placeholder, icon, alias) end 680 | 681 | ---Add a child string input to a parent element 682 | ---@param parent table The parent element to add the input to 683 | ---@param text string The input text/label 684 | ---@param default string? Default value (default: "") 685 | ---@param label string? Input label (default: "Text") 686 | ---@param placeholder string? Placeholder text (default: "") 687 | ---@param icon string? Optional icon for the input 688 | ---@param alias string? Alias for the input 689 | ---@return UserInterface self For method chaining 690 | function UserInterface:addChildInputString(parent, text, default, label, placeholder, icon, alias) end 691 | 692 | ---Add a dialog control 693 | ---@param text string The dialog text/label 694 | ---@param support_text string? Support text for the dialog (default: "Click to open") 695 | ---@param menu_items table? Menu items for the dialog (default: {}) 696 | ---@return table dialog The created dialog (for adding menu items) 697 | function UserInterface:addDialog(text, support_text, menu_items) end 698 | 699 | ---Add a divider element 700 | ---@return UserInterface self For method chaining 701 | function UserInterface:addDivider() end 702 | 703 | ---Add a display list control 704 | ---@param text string The display list text/label 705 | ---@param default string? Default value (default: "") 706 | ---@param alias string? Alias for the display list 707 | ---@return UserInterface self For method chaining 708 | function UserInterface:addDisplayList(text, default, alias) end 709 | 710 | ---Add a tile select control 711 | ---@param text string The tile select text/label 712 | ---@param default string? Default value (default: "{}") 713 | ---@param alias string? Alias for the tile select 714 | ---@param count number? Number of tiles 715 | ---@return UserInterface self For method chaining 716 | function UserInterface:addTileSelect(text, default, alias, count) end 717 | 718 | ---Generate JSON representation of the UI 719 | ---@return string json The JSON string 720 | function UserInterface:generateJSON() end 721 | 722 | ---Convert a table to JSON format 723 | ---@param t table The table to convert 724 | ---@param indent string? Current indentation level 725 | ---@return string json The JSON string representation 726 | function UserInterface:tableToJSON(t, indent) end 727 | 728 | ---Print the JSON representation to console 729 | function UserInterface:printJSON() end 730 | 731 | ---Get the path library for the application 732 | ---@return string path The path to the application library 733 | function getAppLibrary() end 734 | 735 | ---Load built-in modules 736 | ---@param name string The name of the module to load 737 | function requireModule(name) end 738 | 739 | ---@meta 740 | 741 | ---@class Preferences 742 | ---@field name string # Nama file preferences 743 | ---@field values table # Key-value dari preferences 744 | local Preferences = {} 745 | 746 | ---Bikin instance baru dari Preferences 747 | ---@param name string Nama file preferences (misalnya: "settings.json") 748 | ---@return Preferences 749 | function Preferences:new(name) end 750 | 751 | ---Load preferences dari file 752 | function Preferences:load() end 753 | 754 | ---Save preferences ke file 755 | ---@throws string kalau file gagal dibuka 756 | function Preferences:save() end 757 | 758 | ---Ambil value dari preferences 759 | ---@param name string Key dari value 760 | ---@param default any Default value kalau nggak ada 761 | ---@return any 762 | function Preferences:get(name, default) end 763 | 764 | ---Set value ke preferences 765 | ---@param name string Key dari value 766 | ---@param value any Value yang mau disimpan 767 | function Preferences:set(name, value) end 768 | 769 | -- Global assignments so Sumneko sees them 770 | _G.Callback = Callback 771 | _G.growtopia = growtopia 772 | _G.tile = tile 773 | _G.itemInfoManager = itemInfoManager 774 | _G.Preferences = Preferences -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Growlauncher API 3 | 4 | [![Static Badge](https://img.shields.io/badge/Click_Me-blue)](https://github.com/PowerKuy/Growlauncher-Documentation/blob/main/Readme.md) 5 | 6 | Growlauncher supports [lua programming language](https://lua.org) that allows you to run scripts in Growtopia. 7 | 8 | Credit: IniEy ( Growlauncher Staff ) 9 | 10 | Lua version: 5.4 11 | 12 | New Docs Remake ![New Docs Remake](https://img.shields.io/badge/docs-75%25-yellow) 13 | 14 | Last Update: 23/08/2025 (outdated) 15 | 16 | # Script Path 17 | 18 | GL 605 | 606 | ## Threading & Coroutine 607 | 608 | | Function | Params | Return | Description | Example | 609 | | :- | :- | :- | :- | :- | 610 | | `await` | `function_cond:fun():boolean`, `timeout?:number` | - | Await condition | `await(function() return ready end,1000)` | 611 | | `sleep` | `delay:number` | - | Sleep (ms) | `sleep(1000)` | 612 | | `CSleep` | `milliseconds:number` | - | Coroutine sleep | `CSleep(500)` | 613 | | `randomSleep` | `min:number`, `max:number` | `number` | Random sleep (ms) | `randomSleep(500,1000)` | 614 | | `randomCSleep` | `min:number`, `max:number` | `number` | Random coroutine sleep | `randomCSleep(200,400)` | 615 | | `runThread` | `func:function`, `...any` | `any ...` | Run function in new thread | `runThread(function() log("Thread") end)` | 616 | | `runCoroutine` | `func:function`, `...any` | `any ...` | Run coroutine | `runCoroutine(function() log("Coroutine") end)` | 617 | | `tickCoroutine` | - | - | Tick coroutine (internal) | - | X 618 | 619 | --- 620 | 621 | # 📦 Value & Modules 622 | 623 | ## Value 624 | 625 | | Function | Params | Return | Description | Example | 626 | | :- | :- | :- | :- | :- | 627 | | `getValue` | `type:number (0=boolean,1=number,2=str)`, `name:string` | `boolean\|number\|string` | Get value by type and name | `getValue(0, "ModFly")` | 628 | | `setValue` | `name:string`, `value:any` | - | Set value (no UI update) | `setValue("cheat_config_fastbuy_count",1)` | 629 | | `bindValue` | `type:number`, `alias:string`, `default:string\|number\|boolean` | `boolean\|number\|string` | Bind alias with default value | `bindValue(1, "autocrime_delay", 500)()` | 630 | | `editValue` | `name:string`, `value:string\|boolean\|number` | - | Edit or toggle value | `editValue("cheat_config_fastbuy_count",1)` | 631 | | `editToggle` | `name:string`, `value:boolean` | - | Edit or toggle value | `editToggle("ModFly", true)` | 632 | | `setMinimum` | `version:string` | - | Set minimum version requirement | `setMinimum("6.0.0")` | 633 | | `setOnValue` | `name:string`, `func:function` | - | Callback when value changes | `setOnValue("autocrime_delay", onChange)` | 634 | | `addIntoModule`| `json:string`, `category_name?:string` | - | Add JSON into module | `addIntoModule('{"key":1}',"Test")` | 635 | 636 | ## Notification & UI Modules 637 | 638 | | Function | Params | Return | Description | Example | 639 | | :- | :- | :- | :- | :- | 640 | | `sendDialog` | [`dialog:Dialog`](#dialog) | - | Send a GL dialog | `sendDialog({title="Ey",message="HEY"})` | 641 | | `addCategory` | `name:string`, `icon:string` | - | Add UI category | `addCategory("Tools","Verified")` | 642 | | `addShortcut` | `name:string` | - | Add shortcut | `addShortcut("FindPath")` | 643 | | `removeShortcut` | `name:string` | - | Remove shortcut | `removeShortcut("FindPath")` | 644 | | `requireModule` | `name:string` | - | Requires module | `requireModule("IniEy")` | 645 | | `addIntoModule` | `json:string`, `category:string` | - | Adds JSON-defined module | `addIntoModule("{}", "IniEy")` | 646 | | `sendNotification` | `text:string` | - | Send notification popup | `sendNotification("Saved!")` | 647 | 648 | --- 649 | 650 | # 🛑 Deprecated 651 | 652 | | Function | Params | Return | Description | 653 | | :- | :- | :- | :- | 654 | | `allowGameRun` | - | - | Deprecated allow run (internal) | X 655 | | `deprecatedFunction` | - | - | Placeholder function (internal) | X 656 | | `executeFromAssets` | `path:string`, `name:string` | - | Deprecated asset execute | 657 | | `createPlayer` | `name:string`, `flag:string`, `netID:number`, `posX:number`, `posY:number` | [NetAvatar](#netavatar) | Spawn a visual NPC Avatar | 658 | 659 | --- 660 | 661 | # 📜 Sample Scripts 662 | 663 | - [UI Sample Script](sample-scripts/sample-ui.lua) 664 | - [Powerkuy's script](https://discord.com/channels/897496245373906995/1230832789541224489/1230832789541224489) 665 | 666 | --- 667 | 668 | # 🗒️ Lua Annotation Files 669 | 670 | For better experience when creating lua scripts, install `sumneko` extension in vscode 671 | 672 | - [ImGui](annotations/imgui.lua) 673 | - [Growlauncher](annotations/growlauncher.lua) 674 | 675 | --- 676 | 677 | # 📌 Notes 678 | 679 | - Support us by buying the real growlauncher. 680 | - More free scripts there! 681 | 682 | --- 683 | 684 | # 🙌 Credits 685 | 686 | - **Author:** IniEy 687 | - **Creator:** Powerkuy 688 | 689 | --- 690 | 691 | # 🏠 Community 692 | 693 | Official discord server: [![Powerkuy Commmunity](https://img.shields.io/discord/897496245373906995)](https://discord.gg/powerkuyofficial) 694 | 695 | -------------------------------------------------------------------------------- /annotations/imgui.lua: -------------------------------------------------------------------------------- 1 | ---@meta 2 | 3 | ---@class ImVec2 4 | ---@field x number 5 | ---@field y number 6 | ImVec2 = {} 7 | 8 | ---@class ImVec3 9 | ---@field x number 10 | ---@field y number 11 | ---@field z number 12 | ImVec3 = {} 13 | 14 | ---@class ImVec4 15 | ---@field x number 16 | ---@field y number 17 | ---@field z number 18 | ---@field w number 19 | ImVec4 = {} 20 | 21 | ---@class ImGui 22 | ImGui = {} 23 | 24 | ---@class ImGuiStyle 25 | ImGuiStyle = {} 26 | 27 | ---@class ImGuiIO 28 | ImGuiIO = {} 29 | 30 | ---@class ImGuiInputTextCallbackData 31 | ImGuiInputTextCallbackData = {} 32 | 33 | ---@class ImGuiSizeCallbackData 34 | ImGuiSizeCallbackData = {} 35 | 36 | ---@class ImGuiListClipper 37 | ImGuiListClipper = {} 38 | 39 | ---@class ImDrawList 40 | ImDrawList = {} 41 | 42 | ---@class ImFont 43 | ImFont = {} 44 | 45 | ---@class ImFontAtlas 46 | ImFontAtlas = {} 47 | 48 | ---@class ImFontConfig 49 | ImFontConfig = {} 50 | 51 | ---@class ImGuiPayload 52 | ImGuiPayload = {} 53 | 54 | ---@class ImGuiViewport 55 | ImGuiViewport = {} 56 | 57 | ---@class ImGuiTableSortSpecs 58 | ImGuiTableSortSpecs = {} 59 | 60 | ---@class ImGuiTableColumnSortSpecs 61 | ImGuiTableColumnSortSpecs = {} 62 | 63 | 64 | 65 | 66 | ---@class ImGuiContext 67 | ImGuiContext = {} 68 | 69 | ---@class ImDrawData 70 | ImDrawData = {} 71 | 72 | ---@class ImGuiWindowFlags 73 | ImGuiWindowFlags = {} 74 | 75 | ---@class ImGuiButtonFlags 76 | ImGuiButtonFlags = {} 77 | 78 | ---@class ImGuiDir 79 | ImGuiDir = {} 80 | 81 | ---@class ImGuiSliderFlags 82 | ImGuiSliderFlags = {} 83 | 84 | ---@class ImGuiFocusedFlags 85 | ImGuiFocusedFlags = {} 86 | 87 | ---@class ImGuiHoveredFlags 88 | ImGuiHoveredFlags = {} 89 | 90 | ---@class ImGuiCond 91 | ImGuiCond = {} 92 | 93 | ---@class ImGuiStyleVar 94 | ImGuiStyleVar = {} 95 | 96 | ---@class ImGuiCol 97 | ImGuiCol = {} 98 | 99 | ---@class ImGuiDataType 100 | ImGuiDataType = {} 101 | 102 | ---@class ImGuiTreeNodeFlags 103 | ImGuiTreeNodeFlags = {} 104 | 105 | ---@class ImGuiComboFlags 106 | ImGuiComboFlags = {} 107 | 108 | ---@class ImGuiColorEditFlags 109 | ImGuiColorEditFlags = {} 110 | 111 | ---@class ImGuiSelectableFlags 112 | ImGuiSelectableFlags = {} 113 | 114 | ---@class ImGuiPopupFlags 115 | ImGuiPopupFlags = {} 116 | 117 | ---@class ImGuiColumnsFlags 118 | ImGuiColumnsFlags = {} 119 | 120 | ---@class ImGuiTabBarFlags 121 | ImGuiTabBarFlags = {} 122 | 123 | ---@class ImGuiTabItemFlags 124 | ImGuiTabItemFlags = {} 125 | 126 | ---@class ImGuiDragDropFlags 127 | ImGuiDragDropFlags = {} 128 | 129 | ---@class ImGuiMouseButton 130 | ImGuiMouseButton = {} 131 | 132 | ---@class ImGuiKey 133 | ImGuiKey = {} 134 | 135 | ---@class ImGuiMouseCursor 136 | ImGuiMouseCursor = {} 137 | 138 | ---@class ImGuiInputTextFlags 139 | ImGuiInputTextFlags = {} 140 | 141 | ---@class ImGuiDockNodeFlags 142 | ImGuiDockNodeFlags = {} 143 | 144 | ---@class ImGuiTableFlags 145 | ImGuiTableFlags = {} 146 | 147 | ---@class ImGuiTableRowFlags 148 | ImGuiTableRowFlags = {} 149 | 150 | ---@class ImGuiTableColumnFlags 151 | ImGuiTableColumnFlags = {} 152 | 153 | ---@class ImGuiTableBgTarget 154 | ImGuiTableBgTarget = {} 155 | 156 | 157 | 158 | -- Context creation and access 159 | ---@return ImGuiContext 160 | function ImGui.CreateContext(shared_font_atlas) end 161 | 162 | ---@param ctx ImGuiContext 163 | function ImGui.DestroyContext(ctx) end 164 | 165 | ---@return ImGuiContext 166 | function ImGui.GetCurrentContext() end 167 | 168 | ---@param ctx ImGuiContext 169 | function ImGui.SetCurrentContext(ctx) end 170 | 171 | -- Main 172 | ---@return ImGuiIO 173 | function ImGui.GetIO() end 174 | 175 | ---@return ImGuiStyle 176 | function ImGui.GetStyle() end 177 | 178 | ---@return ImDrawList 179 | function ImGui.GetBackgroundDrawList() end 180 | 181 | ---@return ImDrawList 182 | function ImGui.GetForegroundDrawList() end 183 | 184 | ---@return ImDrawList 185 | function ImGui.GetBackgroundDrawList(viewport) end 186 | 187 | ---@return ImDrawList 188 | function ImGui.GetForegroundDrawList(viewport) end 189 | 190 | function ImGui.NewFrame() end 191 | 192 | function ImGui.EndFrame() end 193 | 194 | function ImGui.Render() end 195 | 196 | ---@return ImDrawData 197 | function ImGui.GetDrawData() end 198 | 199 | -- Demo, Debug, Information 200 | ---@param p_open boolean|nil 201 | function ImGui.ShowDemoWindow(p_open) end 202 | 203 | ---@param p_open boolean|nil 204 | function ImGui.ShowMetricsWindow(p_open) end 205 | 206 | ---@param p_open boolean|nil 207 | function ImGui.ShowDebugLogWindow(p_open) end 208 | 209 | ---@param p_open boolean|nil 210 | function ImGui.ShowStackToolWindow(p_open) end 211 | 212 | ---@param ref ImGuiStyle|nil 213 | function ImGui.ShowStyleEditor(ref) end 214 | 215 | ---@param label string 216 | ---@return boolean 217 | function ImGui.ShowStyleSelector(label) end 218 | 219 | ---@param label string 220 | function ImGui.ShowFontSelector(label) end 221 | 222 | function ImGui.ShowUserGuide() end 223 | 224 | ---@param p_open boolean|nil 225 | function ImGui.ShowAboutWindow(p_open) end 226 | 227 | ---@return string 228 | function ImGui.GetVersion() end 229 | 230 | -- Styles 231 | function ImGui.StyleColorsDark() end 232 | 233 | function ImGui.StyleColorsClassic() end 234 | 235 | function ImGui.StyleColorsLight() end 236 | 237 | -- Windows 238 | ---@param name string 239 | ---@param p_open boolean|nil 240 | ---@param flags ImGuiWindowFlags|nil 241 | ---@return boolean, boolean 242 | function ImGui.Begin(name, p_open, flags) end 243 | 244 | function ImGui.End() end 245 | 246 | -- Child Windows 247 | ---@param str_id string 248 | ---@param size ImVec2|nil 249 | ---@param border boolean|nil 250 | ---@param flags ImGuiWindowFlags|nil 251 | ---@return boolean 252 | function ImGui.BeginChild(str_id, size, border, flags) end 253 | 254 | ---@param id integer 255 | ---@param size ImVec2|nil 256 | ---@param border boolean|nil 257 | ---@param flags ImGuiWindowFlags|nil 258 | ---@return boolean 259 | function ImGui.BeginChild(id, size, border, flags) end 260 | 261 | function ImGui.EndChild() end 262 | 263 | -- Window Utilities 264 | ---@return boolean 265 | function ImGui.IsWindowAppearing() end 266 | 267 | ---@return boolean 268 | function ImGui.IsWindowCollapsed() end 269 | 270 | ---@param flags ImGuiFocusedFlags|nil 271 | ---@return boolean 272 | function ImGui.IsWindowFocused(flags) end 273 | 274 | ---@param flags ImGuiHoveredFlags|nil 275 | ---@return boolean 276 | function ImGui.IsWindowHovered(flags) end 277 | 278 | ---@return ImDrawList 279 | function ImGui.GetWindowDrawList() end 280 | 281 | ---@return number 282 | function ImGui.GetWindowDpiScale() end 283 | 284 | ---@return number, number 285 | function ImGui.GetWindowPos() end 286 | 287 | ---@return number, number 288 | function ImGui.GetWindowSize() end 289 | 290 | ---@return number 291 | function ImGui.GetWindowWidth() end 292 | 293 | ---@return number 294 | function ImGui.GetWindowHeight() end 295 | 296 | ---@return number, number 297 | function ImGui.GetWindowContentRegionMin() end 298 | 299 | ---@return number, number 300 | function ImGui.GetWindowContentRegionMax() end 301 | 302 | ---@return number 303 | function ImGui.GetWindowContentRegionWidth() end 304 | 305 | ---@return number, number 306 | function ImGui.GetCursorScreenPos() end 307 | 308 | ---@param pos ImVec2 309 | ---@param cond ImGuiCond|nil 310 | ---@param pivot ImVec2|nil 311 | function ImGui.SetNextWindowPos(pos, cond, pivot) end 312 | 313 | ---@param size ImVec2 314 | ---@param cond ImGuiCond|nil 315 | function ImGui.SetNextWindowSize(size, cond) end 316 | 317 | ---@param size ImVec2 318 | function ImGui.SetNextWindowContentSize(size) end 319 | 320 | ---@param collapsed boolean 321 | ---@param cond ImGuiCond|nil 322 | function ImGui.SetNextWindowCollapsed(collapsed, cond) end 323 | 324 | function ImGui.SetNextWindowFocus() end 325 | 326 | ---@param alpha number 327 | function ImGui.SetNextWindowBgAlpha(alpha) end 328 | 329 | ---@param viewport ImGuiViewport 330 | function ImGui.SetNextWindowViewport(viewport) end 331 | 332 | ---@param pos ImVec2 333 | ---@param cond ImGuiCond|nil 334 | function ImGui.SetWindowPos(pos, cond) end 335 | 336 | ---@param size ImVec2 337 | ---@param cond ImGuiCond|nil 338 | function ImGui.SetWindowSize(size, cond) end 339 | 340 | ---@param collapsed boolean 341 | ---@param cond ImGuiCond|nil 342 | function ImGui.SetWindowCollapsed(collapsed, cond) end 343 | 344 | function ImGui.SetWindowFocus() end 345 | 346 | ---@param name string 347 | function ImGui.SetWindowFocus(name) end 348 | 349 | ---@param scale number 350 | function ImGui.SetWindowFontScale(scale) end 351 | 352 | -- Content region 353 | ---@return ImVec2 354 | function ImGui.GetContentRegionAvail() end 355 | 356 | ---@return ImVec2 357 | function ImGui.GetContentRegionMax() end 358 | 359 | ---@return ImVec2 360 | function ImGui.GetWindowContentRegionMin() end 361 | 362 | ---@return ImVec2 363 | function ImGui.GetWindowContentRegionMax() end 364 | 365 | ---@return number 366 | function ImGui.GetWindowContentRegionWidth() end 367 | 368 | -- Windows Scrolling 369 | ---@return number 370 | function ImGui.GetScrollX() end 371 | 372 | ---@return number 373 | function ImGui.GetScrollY() end 374 | 375 | ---@param scroll_x number 376 | function ImGui.SetScrollX(scroll_x) end 377 | 378 | ---@param scroll_y number 379 | function ImGui.SetScrollY(scroll_y) end 380 | 381 | ---@return number 382 | function ImGui.GetScrollMaxX() end 383 | 384 | ---@return number 385 | function ImGui.GetScrollMaxY() end 386 | 387 | ---@param center_x_ratio number|nil 388 | function ImGui.SetScrollHereX(center_x_ratio) end 389 | 390 | ---@param center_y_ratio number|nil 391 | function ImGui.SetScrollHereY(center_y_ratio) end 392 | 393 | ---@param local_x number 394 | ---@param center_x_ratio number|nil 395 | function ImGui.SetScrollFromPosX(local_x, center_x_ratio) end 396 | 397 | ---@param local_y number 398 | ---@param center_y_ratio number|nil 399 | function ImGui.SetScrollFromPosY(local_y, center_y_ratio) end 400 | 401 | -- Parameters stacks (shared) 402 | ---@param idx ImGuiStyleVar 403 | ---@param val number|ImVec2 404 | function ImGui.PushStyleVar(idx, val) end 405 | 406 | ---@param count integer|nil 407 | function ImGui.PopStyleVar(count) end 408 | 409 | ---@param idx ImGuiCol 410 | ---@param col ImVec4 411 | function ImGui.PushStyleColor(idx, col) end 412 | 413 | ---@param count integer|nil 414 | function ImGui.PopStyleColor(count) end 415 | 416 | -- Parameters stacks (current window) 417 | ---@param font ImFont 418 | function ImGui.PushFont(font) end 419 | 420 | function ImGui.PopFont() end 421 | 422 | ---@param allow_keyboard_focus boolean 423 | function ImGui.PushAllowKeyboardFocus(allow_keyboard_focus) end 424 | 425 | function ImGui.PopAllowKeyboardFocus() end 426 | 427 | ---@param item_width number 428 | function ImGui.PushItemWidth(item_width) end 429 | 430 | function ImGui.PopItemWidth() end 431 | 432 | ---@param item_width number 433 | function ImGui.SetNextItemWidth(item_width) end 434 | 435 | ---@return number 436 | function ImGui.CalcItemWidth() end 437 | 438 | ---@param wrap_pos_x number|nil 439 | function ImGui.PushTextWrapPos(wrap_pos_x) end 440 | 441 | function ImGui.PopTextWrapPos() end 442 | 443 | -- Cursor / Layout 444 | function ImGui.Separator() end 445 | 446 | ---@param offset_from_start_x number|nil 447 | ---@param spacing number|nil 448 | function ImGui.SameLine(offset_from_start_x, spacing) end 449 | 450 | function ImGui.NewLine() end 451 | 452 | function ImGui.Spacing() end 453 | 454 | ---@param size ImVec2 455 | function ImGui.Dummy(size) end 456 | 457 | ---@param indent_w number|nil 458 | function ImGui.Indent(indent_w) end 459 | 460 | ---@param indent_w number|nil 461 | function ImGui.Unindent(indent_w) end 462 | 463 | function ImGui.BeginGroup() end 464 | 465 | function ImGui.EndGroup() end 466 | 467 | ---@return ImVec2 468 | function ImGui.GetCursorPos() end 469 | 470 | ---@param pos ImVec2 471 | function ImGui.SetCursorPos(pos) end 472 | 473 | ---@param x number 474 | function ImGui.SetCursorPosX(x) end 475 | 476 | ---@param y number 477 | function ImGui.SetCursorPosY(y) end 478 | 479 | ---@return number 480 | function ImGui.GetCursorPosX() end 481 | 482 | ---@return number 483 | function ImGui.GetCursorPosY() end 484 | 485 | ---@return ImVec2 486 | function ImGui.GetCursorStartPos() end 487 | 488 | ---@return ImVec2 489 | function ImGui.GetCursorScreenPos() end 490 | 491 | ---@param pos ImVec2 492 | function ImGui.SetCursorScreenPos(pos) end 493 | 494 | function ImGui.AlignTextToFramePadding() end 495 | 496 | ---@return number 497 | function ImGui.GetTextLineHeight() end 498 | 499 | ---@return number 500 | function ImGui.GetTextLineHeightWithSpacing() end 501 | 502 | ---@return number 503 | function ImGui.GetFrameHeight() end 504 | 505 | ---@return number 506 | function ImGui.GetFrameHeightWithSpacing() end 507 | 508 | ---@return number 509 | function ImGui.GetFontSize() end 510 | 511 | -- ID stack/scopes 512 | ---@param str_id string 513 | function ImGui.PushID(str_id) end 514 | 515 | ---@param int_id integer 516 | function ImGui.PushID(int_id) end 517 | 518 | ---@param ptr_id userdata 519 | function ImGui.PushID(ptr_id) end 520 | 521 | function ImGui.PopID() end 522 | 523 | ---@param str_id string 524 | ---@return integer 525 | function ImGui.GetID(str_id) end 526 | 527 | -- Widgets: Text 528 | ---@param text string 529 | function ImGui.Text(text) end 530 | 531 | ---@param fmt string 532 | ---@param ... any 533 | function ImGui.Text(fmt, ...) end 534 | 535 | ---@param text string 536 | function ImGui.TextUnformatted(text) end 537 | 538 | ---@param col ImVec4 539 | ---@param text string 540 | function ImGui.TextColored(col, text) end 541 | 542 | ---@param col ImVec4 543 | ---@param fmt string 544 | ---@param ... any 545 | function ImGui.TextColored(col, fmt, ...) end 546 | 547 | ---@param text string 548 | function ImGui.TextDisabled(text) end 549 | 550 | ---@param fmt string 551 | ---@param ... any 552 | function ImGui.TextDisabled(fmt, ...) end 553 | 554 | ---@param text string 555 | function ImGui.TextWrapped(text) end 556 | 557 | ---@param fmt string 558 | ---@param ... any 559 | function ImGui.TextWrapped(fmt, ...) end 560 | 561 | ---@param label string 562 | ---@param text string 563 | function ImGui.LabelText(label, text) end 564 | 565 | ---@param label string 566 | ---@param fmt string 567 | ---@param ... any 568 | function ImGui.LabelText(label, fmt, ...) end 569 | 570 | ---@param text string 571 | function ImGui.BulletText(text) end 572 | 573 | ---@param fmt string 574 | ---@param ... any 575 | function ImGui.BulletText(fmt, ...) end 576 | 577 | function ImGui.Bullet() end 578 | 579 | -- Widgets: Main 580 | ---@param label string 581 | ---@param size ImVec2|nil 582 | ---@return boolean 583 | function ImGui.Button(label, size) end 584 | 585 | ---@param label string 586 | ---@return boolean 587 | function ImGui.SmallButton(label) end 588 | 589 | ---@param str_id string 590 | ---@param size ImVec2 591 | ---@param flags ImGuiButtonFlags|nil 592 | ---@return boolean 593 | function ImGui.InvisibleButton(str_id, size, flags) end 594 | 595 | ---@param str_id string 596 | ---@param dir ImGuiDir 597 | ---@return boolean 598 | function ImGui.ArrowButton(str_id, dir) end 599 | 600 | ---@param label string 601 | ---@param v number 602 | ---@param v_speed number|nil 603 | ---@param v_min number|nil 604 | ---@param v_max number|nil 605 | ---@param format string|nil 606 | ---@param flags ImGuiSliderFlags|nil 607 | ---@return boolean, number 608 | function ImGui.DragFloat(label, v, v_speed, v_min, v_max, format, flags) end 609 | 610 | ---@param label string 611 | ---@param v number[] 612 | ---@param v_speed number|nil 613 | ---@param v_min number|nil 614 | ---@param v_max number|nil 615 | ---@param format string|nil 616 | ---@param flags ImGuiSliderFlags|nil 617 | ---@return boolean, number[] 618 | function ImGui.DragFloat2(label, v, v_speed, v_min, v_max, format, flags) end 619 | 620 | ---@param label string 621 | ---@param v number[] 622 | ---@param v_speed number|nil 623 | ---@param v_min number|nil 624 | ---@param v_max number|nil 625 | ---@param format string|nil 626 | ---@param flags ImGuiSliderFlags|nil 627 | ---@return boolean, number[] 628 | function ImGui.DragFloat3(label, v, v_speed, v_min, v_max, format, flags) end 629 | 630 | ---@param label string 631 | ---@param v number[] 632 | ---@param v_speed number|nil 633 | ---@param v_min number|nil 634 | ---@param v_max number|nil 635 | ---@param format string|nil 636 | ---@param flags ImGuiSliderFlags|nil 637 | ---@return boolean, number[] 638 | function ImGui.DragFloat4(label, v, v_speed, v_min, v_max, format, flags) end 639 | 640 | ---@param label string 641 | ---@param v_current_min number 642 | ---@param v_current_max number 643 | ---@param v_speed number|nil 644 | ---@param v_min number|nil 645 | ---@param v_max number|nil 646 | ---@param format string|nil 647 | ---@param format_max string|nil 648 | ---@param flags ImGuiSliderFlags|nil 649 | ---@return boolean, number, number 650 | function ImGui.DragFloatRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags) end 651 | 652 | ---@param label string 653 | ---@param v integer 654 | ---@param v_speed number|nil 655 | ---@param v_min integer|nil 656 | ---@param v_max integer|nil 657 | ---@param format string|nil 658 | ---@param flags ImGuiSliderFlags|nil 659 | ---@return boolean, integer 660 | function ImGui.DragInt(label, v, v_speed, v_min, v_max, format, flags) end 661 | 662 | ---@param label string 663 | ---@param v integer[] 664 | ---@param v_speed number|nil 665 | ---@param v_min integer|nil 666 | ---@param v_max integer|nil 667 | ---@param format string|nil 668 | ---@param flags ImGuiSliderFlags|nil 669 | ---@return boolean, integer[] 670 | function ImGui.DragInt2(label, v, v_speed, v_min, v_max, format, flags) end 671 | 672 | ---@param label string 673 | ---@param v integer[] 674 | ---@param v_speed number|nil 675 | ---@param v_min integer|nil 676 | ---@param v_max integer|nil 677 | ---@param format string|nil 678 | ---@param flags ImGuiSliderFlags|nil 679 | ---@return boolean, integer[] 680 | function ImGui.DragInt3(label, v, v_speed, v_min, v_max, format, flags) end 681 | 682 | ---@param label string 683 | ---@param v integer[] 684 | ---@param v_speed number|nil 685 | ---@param v_min integer|nil 686 | ---@param v_max integer|nil 687 | ---@param format string|nil 688 | ---@param flags ImGuiSliderFlags|nil 689 | ---@return boolean, integer[] 690 | function ImGui.DragInt4(label, v, v_speed, v_min, v_max, format, flags) end 691 | 692 | ---@param label string 693 | ---@param v_current_min integer 694 | ---@param v_current_max integer 695 | ---@param v_speed number|nil 696 | ---@param v_min integer|nil 697 | ---@param v_max integer|nil 698 | ---@param format string|nil 699 | ---@param format_max string|nil 700 | ---@param flags ImGuiSliderFlags|nil 701 | ---@return boolean, integer, integer 702 | function ImGui.DragIntRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags) end 703 | 704 | ---@param label string 705 | ---@param data_type ImGuiDataType 706 | ---@param p_data any 707 | ---@param v_speed number|nil 708 | ---@param p_min any|nil 709 | ---@param p_max any|nil 710 | ---@param format string|nil 711 | ---@param flags ImGuiSliderFlags|nil 712 | ---@return boolean 713 | function ImGui.DragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, flags) end 714 | 715 | ---@param label string 716 | ---@param v number 717 | ---@param v_min number 718 | ---@param v_max number 719 | ---@param format string|nil 720 | ---@param flags ImGuiSliderFlags|nil 721 | ---@return boolean, number 722 | function ImGui.SliderFloat(label, v, v_min, v_max, format, flags) end 723 | 724 | ---@param label string 725 | ---@param v number[] 726 | ---@param v_min number 727 | ---@param v_max number 728 | ---@param format string|nil 729 | ---@param flags ImGuiSliderFlags|nil 730 | ---@return boolean, number[] 731 | function ImGui.SliderFloat2(label, v, v_min, v_max, format, flags) end 732 | 733 | ---@param label string 734 | ---@param v number[] 735 | ---@param v_min number 736 | ---@param v_max number 737 | ---@param format string|nil 738 | ---@param flags ImGuiSliderFlags|nil 739 | ---@return boolean, number[] 740 | function ImGui.SliderFloat3(label, v, v_min, v_max, format, flags) end 741 | 742 | ---@param label string 743 | ---@param v number[] 744 | ---@param v_min number 745 | ---@param v_max number 746 | ---@param format string|nil 747 | ---@param flags ImGuiSliderFlags|nil 748 | ---@return boolean, number[] 749 | function ImGui.SliderFloat4(label, v, v_min, v_max, format, flags) end 750 | 751 | ---@param label string 752 | ---@param v_rad number 753 | ---@param v_degrees_min number|nil 754 | ---@param v_degrees_max number|nil 755 | ---@param format string|nil 756 | ---@param flags ImGuiSliderFlags|nil 757 | ---@return boolean, number 758 | function ImGui.SliderAngle(label, v_rad, v_degrees_min, v_degrees_max, format, flags) end 759 | 760 | ---@param label string 761 | ---@param v integer 762 | ---@param v_min integer 763 | ---@param v_max integer 764 | ---@param format string|nil 765 | ---@param flags ImGuiSliderFlags|nil 766 | ---@return boolean, integer 767 | function ImGui.SliderInt(label, v, v_min, v_max, format, flags) end 768 | 769 | ---@param label string 770 | ---@param v integer[] 771 | ---@param v_min integer 772 | ---@param v_max integer 773 | ---@param format string|nil 774 | ---@param flags ImGuiSliderFlags|nil 775 | ---@return boolean, integer[] 776 | function ImGui.SliderInt2(label, v, v_min, v_max, format, flags) end 777 | 778 | ---@param label string 779 | ---@param v integer[] 780 | ---@param v_min integer 781 | ---@param v_max integer 782 | ---@param format string|nil 783 | ---@param flags ImGuiSliderFlags|nil 784 | ---@return boolean, integer[] 785 | function ImGui.SliderInt3(label, v, v_min, v_max, format, flags) end 786 | 787 | ---@param label string 788 | ---@param v integer[] 789 | ---@param v_min integer 790 | ---@param v_max integer 791 | ---@param format string|nil 792 | ---@param flags ImGuiSliderFlags|nil 793 | ---@return boolean, integer[] 794 | function ImGui.SliderInt4(label, v, v_min, v_max, format, flags) end 795 | 796 | ---@param label string 797 | ---@param data_type ImGuiDataType 798 | ---@param p_data any 799 | ---@param p_min any 800 | ---@param p_max any 801 | ---@param format string|nil 802 | ---@param flags ImGuiSliderFlags|nil 803 | ---@return boolean 804 | function ImGui.SliderScalar(label, data_type, p_data, p_min, p_max, format, flags) end 805 | 806 | ---@param label string 807 | ---@param size ImVec2 808 | ---@param v number 809 | ---@param v_min number 810 | ---@param v_max number 811 | ---@param format string|nil 812 | ---@param flags ImGuiSliderFlags|nil 813 | ---@return boolean, number 814 | function ImGui.VSliderFloat(label, size, v, v_min, v_max, format, flags) end 815 | 816 | ---@param label string 817 | ---@param size ImVec2 818 | ---@param v integer 819 | ---@param v_min integer 820 | ---@param v_max integer 821 | ---@param format string|nil 822 | ---@param flags ImGuiSliderFlags|nil 823 | ---@return boolean, integer 824 | function ImGui.VSliderInt(label, size, v, v_min, v_max, format, flags) end 825 | 826 | ---@param label string 827 | ---@param v boolean 828 | ---@return boolean, boolean 829 | function ImGui.Checkbox(label, v) end 830 | 831 | ---@param label string 832 | ---@param flags integer 833 | ---@param flags_value integer 834 | ---@return boolean, integer 835 | function ImGui.CheckboxFlags(label, flags, flags_value) end 836 | 837 | ---@param label string 838 | ---@param active boolean 839 | ---@return boolean 840 | function ImGui.RadioButton(label, active) end 841 | 842 | ---@param label string 843 | ---@param v integer 844 | ---@param v_button integer 845 | ---@return boolean, integer 846 | function ImGui.RadioButtonInt(label, v, v_button) end 847 | 848 | ---@param fraction number 849 | ---@param size_arg ImVec2|nil 850 | ---@param overlay string|nil 851 | function ImGui.ProgressBar(fraction, size_arg, overlay) end 852 | 853 | ---@param label string 854 | ---@param flags ImGuiTreeNodeFlags|nil 855 | ---@return boolean 856 | function ImGui.TreeNode(label, flags) end 857 | 858 | ---@param str_id string 859 | ---@param flags ImGuiTreeNodeFlags|nil 860 | ---@param fmt string 861 | ---@param ... any 862 | ---@return boolean 863 | function ImGui.TreeNode(str_id, flags, fmt, ...) end 864 | 865 | ---@param ptr_id userdata 866 | ---@param flags ImGuiTreeNodeFlags|nil 867 | ---@param fmt string 868 | ---@param ... any 869 | ---@return boolean 870 | function ImGui.TreeNode(ptr_id, flags, fmt, ...) end 871 | 872 | function ImGui.TreePush() end 873 | 874 | ---@param str_id string 875 | function ImGui.TreePush(str_id) end 876 | 877 | ---@param ptr_id userdata 878 | function ImGui.TreePush(ptr_id) end 879 | 880 | function ImGui.TreePop() end 881 | 882 | ---@return number 883 | function ImGui.GetTreeNodeToLabelSpacing() end 884 | 885 | ---@param label string 886 | ---@param flags ImGuiTreeNodeFlags|nil 887 | ---@return boolean 888 | function ImGui.CollapsingHeader(label, flags) end 889 | 890 | ---@param label string 891 | ---@param p_open boolean|userdata 892 | ---@param flags ImGuiTreeNodeFlags|nil 893 | ---@return boolean, boolean 894 | function ImGui.CollapsingHeader(label, p_open, flags) end 895 | 896 | ---@param label string 897 | ---@param current_item integer 898 | ---@param items string[] 899 | ---@param height_in_items integer|nil 900 | ---@return boolean, integer 901 | function ImGui.ListBox(label, current_item, items, height_in_items) end 902 | 903 | ---@param label string 904 | ---@param current_item integer 905 | ---@param items_getter function 906 | ---@param data userdata 907 | ---@param items_count integer 908 | ---@param height_in_items integer|nil 909 | ---@return boolean, integer 910 | function ImGui.ListBox(label, current_item, items_getter, data, items_count, height_in_items) end 911 | 912 | ---@param label string 913 | ---@param size ImVec2|nil 914 | ---@return boolean 915 | function ImGui.BeginListBox(label, size) end 916 | 917 | function ImGui.EndListBox() end 918 | 919 | ---@param label string 920 | ---@param preview_value string 921 | ---@param flags ImGuiComboFlags|nil 922 | ---@return boolean 923 | function ImGui.BeginCombo(label, preview_value, flags) end 924 | 925 | function ImGui.EndCombo() end 926 | 927 | ---@param label string 928 | ---@param current_item integer 929 | ---@param items string[] 930 | ---@param popup_max_height_in_items integer|nil 931 | ---@return boolean, integer 932 | function ImGui.Combo(label, current_item, items, popup_max_height_in_items) end 933 | 934 | ---@param label string 935 | ---@param current_item integer 936 | ---@param items_getter function 937 | ---@param data userdata 938 | ---@param items_count integer 939 | ---@param popup_max_height_in_items integer|nil 940 | ---@return boolean, integer 941 | function ImGui.Combo(label, current_item, items_getter, data, items_count, popup_max_height_in_items) end 942 | 943 | -- Widgets: Color Editor/Picker 944 | ---@param label string 945 | ---@param col number[] 946 | ---@param flags ImGuiColorEditFlags|nil 947 | ---@return boolean, number[] 948 | function ImGui.ColorEdit3(label, col, flags) end 949 | 950 | ---@param label string 951 | ---@param col number[] 952 | ---@param flags ImGuiColorEditFlags|nil 953 | ---@return boolean, number[] 954 | function ImGui.ColorEdit4(label, col, flags) end 955 | 956 | ---@param label string 957 | ---@param col number[] 958 | ---@param flags ImGuiColorEditFlags|nil 959 | ---@return boolean, number[] 960 | function ImGui.ColorPicker3(label, col, flags) end 961 | 962 | ---@param label string 963 | ---@param col number[] 964 | ---@param flags ImGuiColorEditFlags|nil 965 | ---@param ref_col number[]|nil 966 | ---@return boolean, number[] 967 | function ImGui.ColorPicker4(label, col, flags, ref_col) end 968 | 969 | ---@param desc_id string 970 | ---@param col ImVec4 971 | ---@param flags ImGuiColorEditFlags|nil 972 | ---@param size ImVec2|nil 973 | ---@return boolean 974 | function ImGui.ColorButton(desc_id, col, flags, size) end 975 | 976 | ---@param flags ImGuiColorEditFlags 977 | function ImGui.SetColorEditOptions(flags) end 978 | 979 | -- Widgets: Trees 980 | ---@param label string 981 | ---@param flags ImGuiTreeNodeFlags|nil 982 | ---@return boolean 983 | function ImGui.TreeNodeEx(label, flags) end 984 | 985 | ---@param str_id string 986 | ---@param flags ImGuiTreeNodeFlags 987 | ---@param fmt string 988 | ---@param ... any 989 | ---@return boolean 990 | function ImGui.TreeNodeEx(str_id, flags, fmt, ...) end 991 | 992 | ---@param ptr_id userdata 993 | ---@param flags ImGuiTreeNodeFlags 994 | ---@param fmt string 995 | ---@param ... any 996 | ---@return boolean 997 | function ImGui.TreeNodeEx(ptr_id, flags, fmt, ...) end 998 | 999 | -- Widgets: Selectables 1000 | ---@param label string 1001 | ---@param selected boolean|nil 1002 | ---@param flags ImGuiSelectableFlags|nil 1003 | ---@param size ImVec2|nil 1004 | ---@return boolean 1005 | function ImGui.Selectable(label, selected, flags, size) end 1006 | 1007 | ---@param label string 1008 | ---@param p_selected boolean 1009 | ---@param flags ImGuiSelectableFlags|nil 1010 | ---@param size ImVec2|nil 1011 | ---@return boolean, boolean 1012 | function ImGui.Selectable(label, p_selected, flags, size) end 1013 | 1014 | -- Widgets: List Boxes 1015 | ---@param label string 1016 | ---@param size ImVec2|nil 1017 | ---@return boolean 1018 | function ImGui.ListBoxHeader(label, size) end 1019 | 1020 | ---@param label string 1021 | ---@param items_count integer 1022 | ---@param height_in_items integer|nil 1023 | ---@return boolean 1024 | function ImGui.ListBoxHeader(label, items_count, height_in_items) end 1025 | 1026 | function ImGui.ListBoxFooter() end 1027 | 1028 | -- Widgets: Data Plotting 1029 | ---@param label string 1030 | ---@param values number[] 1031 | ---@param values_offset integer|nil 1032 | ---@param overlay_text string|nil 1033 | ---@param scale_min number|nil 1034 | ---@param scale_max number|nil 1035 | ---@param graph_size ImVec2|nil 1036 | function ImGui.PlotLines(label, values, values_offset, overlay_text, scale_min, scale_max, graph_size) end 1037 | 1038 | ---@param label string 1039 | ---@param values_getter function 1040 | ---@param data userdata 1041 | ---@param values_count integer 1042 | ---@param values_offset integer|nil 1043 | ---@param overlay_text string|nil 1044 | ---@param scale_min number|nil 1045 | ---@param scale_max number|nil 1046 | ---@param graph_size ImVec2|nil 1047 | function ImGui.PlotLines(label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size) end 1048 | 1049 | ---@param label string 1050 | ---@param values number[] 1051 | ---@param values_offset integer|nil 1052 | ---@param overlay_text string|nil 1053 | ---@param scale_min number|nil 1054 | ---@param scale_max number|nil 1055 | ---@param graph_size ImVec2|nil 1056 | function ImGui.PlotHistogram(label, values, values_offset, overlay_text, scale_min, scale_max, graph_size) end 1057 | 1058 | ---@param label string 1059 | ---@param values_getter function 1060 | ---@param data userdata 1061 | ---@param values_count integer 1062 | ---@param values_offset integer|nil 1063 | ---@param overlay_text string|nil 1064 | ---@param scale_min number|nil 1065 | ---@param scale_max number|nil 1066 | ---@param graph_size ImVec2|nil 1067 | function ImGui.PlotHistogram(label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size) end 1068 | 1069 | -- Widgets: Value() Helpers. 1070 | ---@param prefix string 1071 | ---@param b boolean 1072 | function ImGui.ValueBool(prefix, b) end 1073 | 1074 | ---@param prefix string 1075 | ---@param v integer 1076 | function ImGui.ValueInt(prefix, v) end 1077 | 1078 | ---@param prefix string 1079 | ---@param v integer 1080 | function ImGui.ValueUint(prefix, v) end 1081 | 1082 | ---@param prefix string 1083 | ---@param v number 1084 | ---@param float_format string|nil 1085 | function ImGui.ValueFloat(prefix, v, float_format) end 1086 | 1087 | -- Widgets: Menus 1088 | ---@return boolean 1089 | function ImGui.BeginMenuBar() end 1090 | 1091 | function ImGui.EndMenuBar() end 1092 | 1093 | ---@return boolean 1094 | function ImGui.BeginMainMenuBar() end 1095 | 1096 | function ImGui.EndMainMenuBar() end 1097 | 1098 | ---@param label string 1099 | ---@param enabled boolean|nil 1100 | ---@return boolean 1101 | function ImGui.BeginMenu(label, enabled) end 1102 | 1103 | function ImGui.EndMenu() end 1104 | 1105 | ---@param label string 1106 | ---@param shortcut string|nil 1107 | ---@param selected boolean|nil 1108 | ---@param enabled boolean|nil 1109 | ---@return boolean 1110 | function ImGui.MenuItem(label, shortcut, selected, enabled) end 1111 | 1112 | ---@param label string 1113 | ---@param shortcut string|nil 1114 | ---@param p_selected boolean|userdata 1115 | ---@param enabled boolean|nil 1116 | ---@return boolean, boolean 1117 | function ImGui.MenuItem(label, shortcut, p_selected, enabled) end 1118 | 1119 | -- Tooltips 1120 | function ImGui.BeginTooltip() end 1121 | 1122 | function ImGui.EndTooltip() end 1123 | 1124 | ---@param text string 1125 | function ImGui.SetTooltip(text) end 1126 | 1127 | ---@param fmt string 1128 | ---@param ... any 1129 | function ImGui.SetTooltip(fmt, ...) end 1130 | 1131 | -- Popups, Modals 1132 | ---@param str_id string 1133 | ---@param flags ImGuiWindowFlags|nil 1134 | ---@return boolean 1135 | function ImGui.BeginPopup(str_id, flags) end 1136 | 1137 | ---@param name string 1138 | ---@param p_open boolean|userdata 1139 | ---@param flags ImGuiWindowFlags|nil 1140 | ---@return boolean 1141 | function ImGui.BeginPopupModal(name, p_open, flags) end 1142 | 1143 | function ImGui.EndPopup() end 1144 | 1145 | ---@param str_id string 1146 | ---@param popup_flags ImGuiPopupFlags|nil 1147 | function ImGui.OpenPopup(str_id, popup_flags) end 1148 | 1149 | ---@param str_id string 1150 | ---@param popup_flags ImGuiPopupFlags|nil 1151 | function ImGui.OpenPopupOnItemClick(str_id, popup_flags) end 1152 | 1153 | function ImGui.CloseCurrentPopup() end 1154 | 1155 | ---@param str_id string|nil 1156 | ---@param popup_flags ImGuiPopupFlags|nil 1157 | ---@return boolean 1158 | function ImGui.BeginPopupContextItem(str_id, popup_flags) end 1159 | 1160 | ---@param str_id string|nil 1161 | ---@param popup_flags ImGuiPopupFlags|nil 1162 | ---@return boolean 1163 | function ImGui.BeginPopupContextWindow(str_id, popup_flags) end 1164 | 1165 | ---@param str_id string|nil 1166 | ---@param popup_flags ImGuiPopupFlags|nil 1167 | ---@return boolean 1168 | function ImGui.BeginPopupContextVoid(str_id, popup_flags) end 1169 | 1170 | ---@param str_id string 1171 | ---@param flags ImGuiPopupFlags|nil 1172 | ---@return boolean 1173 | function ImGui.IsPopupOpen(str_id, flags) end 1174 | 1175 | -- Columns 1176 | ---@param str_id string 1177 | ---@param count integer 1178 | ---@param flags ImGuiColumnsFlags|nil 1179 | function ImGui.BeginColumns(str_id, count, flags) end 1180 | 1181 | function ImGui.EndColumns() end 1182 | 1183 | function ImGui.NextColumn() end 1184 | 1185 | ---@return integer 1186 | function ImGui.GetColumnIndex() end 1187 | 1188 | ---@param column_index integer|nil 1189 | ---@return number 1190 | function ImGui.GetColumnOffset(column_index) end 1191 | 1192 | ---@param column_index integer 1193 | ---@param offset number 1194 | function ImGui.SetColumnOffset(column_index, offset) end 1195 | 1196 | ---@param column_index integer|nil 1197 | ---@return number 1198 | function ImGui.GetColumnWidth(column_index) end 1199 | 1200 | ---@param column_index integer 1201 | ---@param width number 1202 | function ImGui.SetColumnWidth(column_index, width) end 1203 | 1204 | ---@return integer 1205 | function ImGui.GetColumnsCount() end 1206 | 1207 | -- Tab Bars, Tabs 1208 | ---@param str_id string 1209 | ---@param flags ImGuiTabBarFlags|nil 1210 | ---@return boolean 1211 | function ImGui.BeginTabBar(str_id, flags) end 1212 | 1213 | function ImGui.EndTabBar() end 1214 | 1215 | ---@param label string 1216 | ---@param p_open boolean|userdata 1217 | ---@param flags ImGuiTabItemFlags|nil 1218 | ---@return boolean, boolean 1219 | function ImGui.BeginTabItem(label, p_open, flags) end 1220 | 1221 | function ImGui.EndTabItem() end 1222 | 1223 | ---@param label string 1224 | ---@param flags ImGuiTabItemFlags|nil 1225 | ---@return boolean 1226 | function ImGui.TabItemButton(label, flags) end 1227 | 1228 | ---@param tab_or_docked_window_label string 1229 | function ImGui.SetTabItemClosed(tab_or_docked_window_label) end 1230 | 1231 | -- Logging/Capture 1232 | ---@param auto_open_depth integer|nil 1233 | function ImGui.LogToTTY(auto_open_depth) end 1234 | 1235 | ---@param auto_open_depth integer|nil 1236 | ---@param filename string|nil 1237 | function ImGui.LogToFile(auto_open_depth, filename) end 1238 | 1239 | ---@param auto_open_depth integer|nil 1240 | function ImGui.LogToClipboard(auto_open_depth) end 1241 | 1242 | function ImGui.LogFinish() end 1243 | 1244 | function ImGui.LogButtons() end 1245 | 1246 | ---@param fmt string 1247 | ---@param ... any 1248 | function ImGui.LogText(fmt, ...) end 1249 | 1250 | -- Drag and Drop 1251 | ---@param flags ImGuiDragDropFlags|nil 1252 | ---@return boolean 1253 | function ImGui.BeginDragDropSource(flags) end 1254 | 1255 | function ImGui.EndDragDropSource() end 1256 | 1257 | ---@return boolean 1258 | function ImGui.BeginDragDropTarget() end 1259 | 1260 | function ImGui.EndDragDropTarget() end 1261 | 1262 | ---@param type string 1263 | ---@return ImGuiPayload|nil 1264 | function ImGui.AcceptDragDropPayload(type) end 1265 | 1266 | ---@param type string 1267 | ---@param data userdata 1268 | ---@param size integer 1269 | ---@param cond ImGuiCond|nil 1270 | ---@return boolean 1271 | function ImGui.SetDragDropPayload(type, data, size, cond) end 1272 | 1273 | -- Clipping 1274 | ---@param clip_rect_min ImVec2 1275 | ---@param clip_rect_max ImVec2 1276 | ---@param intersect_with_current_clip_rect boolean 1277 | function ImGui.PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect) end 1278 | 1279 | function ImGui.PopClipRect() end 1280 | 1281 | -- Focus, Activation 1282 | function ImGui.SetItemDefaultFocus() end 1283 | 1284 | ---@param offset integer|nil 1285 | function ImGui.SetKeyboardFocusHere(offset) end 1286 | 1287 | -- Item/Widgets Utilities 1288 | ---@param flags ImGuiHoveredFlags|nil 1289 | ---@return boolean 1290 | function ImGui.IsItemHovered(flags) end 1291 | 1292 | ---@return boolean 1293 | function ImGui.IsItemActive() end 1294 | 1295 | ---@return boolean 1296 | function ImGui.IsItemFocused() end 1297 | 1298 | ---@param mouse_button ImGuiMouseButton|nil 1299 | ---@return boolean 1300 | function ImGui.IsItemClicked(mouse_button) end 1301 | 1302 | ---@return boolean 1303 | function ImGui.IsItemVisible() end 1304 | 1305 | ---@return boolean 1306 | function ImGui.IsItemEdited() end 1307 | 1308 | ---@return boolean 1309 | function ImGui.IsItemActivated() end 1310 | 1311 | ---@return boolean 1312 | function ImGui.IsItemDeactivated() end 1313 | 1314 | ---@return boolean 1315 | function ImGui.IsItemDeactivatedAfterEdit() end 1316 | 1317 | ---@return boolean 1318 | function ImGui.IsItemToggledOpen() end 1319 | 1320 | ---@return boolean 1321 | function ImGui.IsAnyItemHovered() end 1322 | 1323 | ---@return boolean 1324 | function ImGui.IsAnyItemActive() end 1325 | 1326 | ---@return boolean 1327 | function ImGui.IsAnyItemFocused() end 1328 | 1329 | ---@return ImVec2 1330 | function ImGui.GetItemRectMin() end 1331 | 1332 | ---@return ImVec2 1333 | function ImGui.GetItemRectMax() end 1334 | 1335 | ---@return ImVec2 1336 | function ImGui.GetItemRectSize() end 1337 | 1338 | function ImGui.SetItemAllowOverlap() end 1339 | 1340 | ---@return integer 1341 | function ImGui.GetItemID() end 1342 | 1343 | -- Viewports 1344 | ---@return ImGuiViewport 1345 | function ImGui.GetMainViewport() end 1346 | 1347 | -- Miscellaneous Utilities 1348 | ---@param size ImVec2 1349 | ---@return boolean 1350 | function ImGui.IsRectVisibleBySize(size) end 1351 | 1352 | ---@param rect_min ImVec2 1353 | ---@param rect_max ImVec2 1354 | ---@return boolean 1355 | function ImGui.IsRectVisibleByRect(rect_min, rect_max) end 1356 | 1357 | ---@return number 1358 | function ImGui.GetTime() end 1359 | 1360 | ---@return integer 1361 | function ImGui.GetFrameCount() end 1362 | 1363 | ---@param idx ImGuiCol 1364 | ---@return string 1365 | function ImGui.GetStyleColorName(idx) end 1366 | 1367 | ---@param idx ImGuiCol 1368 | ---@return ImVec4 1369 | function ImGui.GetStyleColorVec4(idx) end 1370 | 1371 | ---@param text string 1372 | ---@param text_end string|nil 1373 | ---@param hide_text_after_double_hash boolean|nil 1374 | ---@param wrap_width number|nil 1375 | ---@return ImVec2 1376 | function ImGui.CalcTextSize(text, text_end, hide_text_after_double_hash, wrap_width) end 1377 | 1378 | ---@param items_count integer 1379 | ---@param items_height number 1380 | ---@return integer, integer 1381 | function ImGui.CalcListClipping(items_count, items_height) end 1382 | 1383 | ---@param id integer 1384 | ---@param size ImVec2 1385 | ---@param flags ImGuiWindowFlags|nil 1386 | ---@return boolean 1387 | function ImGui.BeginChildFrame(id, size, flags) end 1388 | 1389 | function ImGui.EndChildFrame() end 1390 | 1391 | ---@param in integer 1392 | ---@return ImVec4 1393 | function ImGui.ColorConvertU32ToFloat4(in) end 1394 | 1395 | ---@param in ImVec4 1396 | ---@return integer 1397 | function ImGui.ColorConvertFloat4ToU32(in) end 1398 | 1399 | ---@param r number 1400 | ---@param g number 1401 | ---@param b number 1402 | ---@return number, number, number 1403 | function ImGui.ColorConvertRGBtoHSV(r, g, b) end 1404 | 1405 | ---@param h number 1406 | ---@param s number 1407 | ---@param v number 1408 | ---@return number, number, number 1409 | function ImGui.ColorConvertHSVtoRGB(h, s, v) end 1410 | 1411 | ---@param imgui_key ImGuiKey 1412 | ---@return integer 1413 | function ImGui.GetKeyIndex(imgui_key) end 1414 | 1415 | ---@param user_key_index integer 1416 | ---@return boolean 1417 | function ImGui.IsKeyDown(user_key_index) end 1418 | 1419 | ---@param user_key_index integer 1420 | ---@param repeat boolean|nil 1421 | ---@return boolean 1422 | function ImGui.IsKeyPressed(user_key_index, repeat) end 1423 | 1424 | ---@param user_key_index integer 1425 | ---@return boolean 1426 | function ImGui.IsKeyReleased(user_key_index) end 1427 | 1428 | ---@param key_index integer 1429 | ---@param repeat_delay number 1430 | ---@param rate number 1431 | ---@return integer 1432 | function ImGui.GetKeyPressedAmount(key_index, repeat_delay, rate) end 1433 | 1434 | ---@param want_capture_keyboard boolean|nil 1435 | function ImGui.CaptureKeyboardFromApp(want_capture_keyboard) end 1436 | 1437 | ---@param button ImGuiMouseButton|nil 1438 | ---@return boolean 1439 | function ImGui.IsMouseDown(button) end 1440 | 1441 | ---@param button ImGuiMouseButton|nil 1442 | ---@param repeat boolean|nil 1443 | ---@return boolean 1444 | function ImGui.IsMouseClicked(button, repeat) end 1445 | 1446 | ---@param button ImGuiMouseButton|nil 1447 | ---@return boolean 1448 | function ImGui.IsMouseReleased(button) end 1449 | 1450 | ---@param button ImGuiMouseButton|nil 1451 | ---@return boolean 1452 | function ImGui.IsMouseDoubleClicked(button) end 1453 | 1454 | ---@param button ImGuiMouseButton|nil 1455 | ---@return integer 1456 | function ImGui.GetMouseClickedCount(button) end 1457 | 1458 | ---@param r_min ImVec2 1459 | ---@param r_max ImVec2 1460 | ---@param clip boolean|nil 1461 | ---@return boolean 1462 | function ImGui.IsMouseHoveringRect(r_min, r_max, clip) end 1463 | 1464 | ---@param mouse_pos ImVec2|nil 1465 | ---@return boolean 1466 | function ImGui.IsMousePosValid(mouse_pos) end 1467 | 1468 | ---@return boolean 1469 | function ImGui.IsAnyMouseDown() end 1470 | 1471 | ---@return ImVec2 1472 | function ImGui.GetMousePos() end 1473 | 1474 | ---@return ImVec2 1475 | function ImGui.GetMousePosOnOpeningCurrentPopup() end 1476 | 1477 | ---@param button ImGuiMouseButton|nil 1478 | ---@param lock_threshold number|nil 1479 | ---@return boolean 1480 | function ImGui.IsMouseDragging(button, lock_threshold) end 1481 | 1482 | ---@param button ImGuiMouseButton|nil 1483 | ---@param lock_threshold number|nil 1484 | ---@return ImVec2 1485 | function ImGui.GetMouseDragDelta(button, lock_threshold) end 1486 | 1487 | ---@param button ImGuiMouseButton|nil 1488 | function ImGui.ResetMouseDragDelta(button) end 1489 | 1490 | ---@return ImGuiMouseCursor 1491 | function ImGui.GetMouseCursor() end 1492 | 1493 | ---@param cursor_type ImGuiMouseCursor 1494 | function ImGui.SetMouseCursor(cursor_type) end 1495 | 1496 | ---@param want_capture_mouse boolean|nil 1497 | function ImGui.CaptureMouseFromApp(want_capture_mouse) end 1498 | 1499 | ---@return string 1500 | function ImGui.GetClipboardText() end 1501 | 1502 | ---@param text string 1503 | function ImGui.SetClipboardText(text) end 1504 | 1505 | ---@param ini_filename string 1506 | function ImGui.LoadIniSettingsFromDisk(ini_filename) end 1507 | 1508 | ---@param ini_data string 1509 | ---@param ini_size integer|nil 1510 | function ImGui.LoadIniSettingsFromMemory(ini_data, ini_size) end 1511 | 1512 | ---@param ini_filename string 1513 | function ImGui.SaveIniSettingsToDisk(ini_filename) end 1514 | 1515 | ---@param out_ini_size integer|nil 1516 | ---@return string 1517 | function ImGui.SaveIniSettingsToMemory(out_ini_size) end 1518 | 1519 | -- Debug Utilities 1520 | ---@param text string 1521 | function ImGui.DebugTextEncoding(text) end 1522 | 1523 | ---@param version_str string 1524 | ---@param sz_io integer 1525 | ---@param sz_style integer 1526 | ---@param sz_vec2 integer 1527 | ---@param sz_vec4 integer 1528 | ---@param sz_drawvert integer 1529 | ---@param sz_drawidx integer 1530 | ---@return boolean 1531 | function ImGui.DebugCheckVersionAndDataLayout(version_str, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx) end 1532 | 1533 | -- Memory Allocators 1534 | ---@param alloc_func function 1535 | ---@param free_func function 1536 | ---@param user_data any|nil 1537 | function ImGui.SetAllocatorFunctions(alloc_func, free_func, user_data) end 1538 | 1539 | ---@return function, function, any 1540 | function ImGui.GetAllocatorFunctions() end 1541 | 1542 | ---@param size integer 1543 | ---@return any 1544 | function ImGui.MemAlloc(size) end 1545 | 1546 | ---@param ptr any 1547 | function ImGui.MemFree(ptr) end 1548 | 1549 | -- Inputs 1550 | ---@param label string 1551 | ---@param buf string 1552 | ---@param buf_size integer|nil 1553 | ---@param flags ImGuiInputTextFlags|nil 1554 | ---@param callback function|nil 1555 | ---@param user_data any|nil 1556 | ---@return boolean, string 1557 | function ImGui.InputText(label, buf, buf_size, flags, callback, user_data) end 1558 | 1559 | ---@param label string 1560 | ---@param buf string 1561 | ---@param size ImVec2|nil 1562 | ---@param flags ImGuiInputTextFlags|nil 1563 | ---@param callback function|nil 1564 | ---@param user_data any|nil 1565 | ---@return boolean, string 1566 | function ImGui.InputTextMultiline(label, buf, size, flags, callback, user_data) end 1567 | 1568 | ---@param label string 1569 | ---@param hint string 1570 | ---@param buf string 1571 | ---@param buf_size integer|nil 1572 | ---@param flags ImGuiInputTextFlags|nil 1573 | ---@param callback function|nil 1574 | ---@param user_data any|nil 1575 | ---@return boolean, string 1576 | function ImGui.InputTextWithHint(label, hint, buf, buf_size, flags, callback, user_data) end 1577 | 1578 | ---@param label string 1579 | ---@param v number 1580 | ---@param step number|nil 1581 | ---@param step_fast number|nil 1582 | ---@param format string|nil 1583 | ---@param flags ImGuiInputTextFlags|nil 1584 | ---@return boolean, number 1585 | function ImGui.InputFloat(label, v, step, step_fast, format, flags) end 1586 | 1587 | ---@param label string 1588 | ---@param v number[] 1589 | ---@param format string|nil 1590 | ---@param flags ImGuiInputTextFlags|nil 1591 | ---@return boolean, number[] 1592 | function ImGui.InputFloat2(label, v, format, flags) end 1593 | 1594 | ---@param label string 1595 | ---@param v number[] 1596 | ---@param format string|nil 1597 | ---@param flags ImGuiInputTextFlags|nil 1598 | ---@return boolean, number[] 1599 | function ImGui.InputFloat3(label, v, format, flags) end 1600 | 1601 | ---@param label string 1602 | ---@param v number[] 1603 | ---@param format string|nil 1604 | ---@param flags ImGuiInputTextFlags|nil 1605 | ---@return boolean, number[] 1606 | function ImGui.InputFloat4(label, v, format, flags) end 1607 | 1608 | ---@param label string 1609 | ---@param v integer 1610 | ---@param step integer|nil 1611 | ---@param step_fast integer|nil 1612 | ---@param flags ImGuiInputTextFlags|nil 1613 | ---@return boolean, integer 1614 | function ImGui.InputInt(label, v, step, step_fast, flags) end 1615 | 1616 | ---@param label string 1617 | ---@param v integer[] 1618 | ---@param flags ImGuiInputTextFlags|nil 1619 | ---@return boolean, integer[] 1620 | function ImGui.InputInt2(label, v, flags) end 1621 | 1622 | ---@param label string 1623 | ---@param v integer[] 1624 | ---@param flags ImGuiInputTextFlags|nil 1625 | ---@return boolean, integer[] 1626 | function ImGui.InputInt3(label, v, flags) end 1627 | 1628 | ---@param label string 1629 | ---@param v integer[] 1630 | ---@param flags ImGuiInputTextFlags|nil 1631 | ---@return boolean, integer[] 1632 | function ImGui.InputInt4(label, v, flags) end 1633 | 1634 | ---@param label string 1635 | ---@param v number 1636 | ---@param step number|nil 1637 | ---@param step_fast number|nil 1638 | ---@param format string|nil 1639 | ---@param flags ImGuiInputTextFlags|nil 1640 | ---@return boolean, number 1641 | function ImGui.InputDouble(label, v, step, step_fast, format, flags) end 1642 | 1643 | ---@param label string 1644 | ---@param data_type ImGuiDataType 1645 | ---@param p_data any 1646 | ---@param p_step any|nil 1647 | ---@param p_step_fast any|nil 1648 | ---@param format string|nil 1649 | ---@param flags ImGuiInputTextFlags|nil 1650 | ---@return boolean 1651 | function ImGui.InputScalar(label, data_type, p_data, p_step, p_step_fast, format, flags) end 1652 | 1653 | ---@param label string 1654 | ---@param data_type ImGuiDataType 1655 | ---@param p_data any 1656 | ---@param components integer 1657 | ---@param p_step any|nil 1658 | ---@param p_step_fast any|nil 1659 | ---@param format string|nil 1660 | ---@param flags ImGuiInputTextFlags|nil 1661 | ---@return boolean 1662 | function ImGui.InputScalarN(label, data_type, p_data, components, p_step, p_step_fast, format, flags) end 1663 | 1664 | -- Image 1665 | ---@param user_texture_id any 1666 | ---@param size ImVec2 1667 | ---@param uv0 ImVec2|nil 1668 | ---@param uv1 ImVec2|nil 1669 | ---@param tint_col ImVec4|nil 1670 | ---@param border_col ImVec4|nil 1671 | function ImGui.Image(user_texture_id, size, uv0, uv1, tint_col, border_col) end 1672 | 1673 | ---@param user_texture_id any 1674 | ---@param size ImVec2 1675 | ---@param uv0 ImVec2|nil 1676 | ---@param uv1 ImVec2|nil 1677 | ---@param frame_padding integer|nil 1678 | ---@param bg_col ImVec4|nil 1679 | ---@param tint_col ImVec4|nil 1680 | ---@return boolean 1681 | function ImGui.ImageButton(user_texture_id, size, uv0, uv1, frame_padding, bg_col, tint_col) end 1682 | 1683 | -- Docking 1684 | ---@param id integer 1685 | ---@param size ImVec2|nil 1686 | ---@param flags ImGuiDockNodeFlags|nil 1687 | ---@param window_class any|nil 1688 | ---@return integer 1689 | function ImGui.DockSpace(id, size, flags, window_class) end 1690 | 1691 | ---@param viewport ImGuiViewport|nil 1692 | ---@param flags ImGuiDockNodeFlags|nil 1693 | ---@param window_class any|nil 1694 | ---@return integer 1695 | function ImGui.DockSpaceOverViewport(viewport, flags, window_class) end 1696 | 1697 | ---@param dock_id integer 1698 | ---@param cond ImGuiCond|nil 1699 | function ImGui.SetNextWindowDockID(dock_id, cond) end 1700 | 1701 | ---@param window_class any 1702 | function ImGui.SetNextWindowClass(window_class) end 1703 | 1704 | ---@return integer 1705 | function ImGui.GetWindowDockID() end 1706 | 1707 | ---@return boolean 1708 | function ImGui.IsWindowDocked() end 1709 | 1710 | -- Tables 1711 | ---@param str_id string 1712 | ---@param column integer 1713 | ---@param flags ImGuiTableFlags|nil 1714 | ---@param outer_size ImVec2|nil 1715 | ---@param inner_width number|nil 1716 | ---@return boolean 1717 | function ImGui.BeginTable(str_id, column, flags, outer_size, inner_width) end 1718 | 1719 | function ImGui.EndTable() end 1720 | 1721 | ---@param row_flags ImGuiTableRowFlags|nil 1722 | ---@param min_row_height number|nil 1723 | function ImGui.TableNextRow(row_flags, min_row_height) end 1724 | 1725 | ---@return boolean 1726 | function ImGui.TableNextColumn() end 1727 | 1728 | ---@param column_n integer 1729 | ---@return boolean 1730 | function ImGui.TableSetColumnIndex(column_n) end 1731 | 1732 | ---@param label string 1733 | ---@param flags ImGuiTableColumnFlags|nil 1734 | ---@param init_width_or_weight number|nil 1735 | ---@param user_id integer|nil 1736 | function ImGui.TableSetupColumn(label, flags, init_width_or_weight, user_id) end 1737 | 1738 | ---@param cols integer 1739 | ---@param rows integer 1740 | function ImGui.TableSetupScrollFreeze(cols, rows) end 1741 | 1742 | function ImGui.TableHeadersRow() end 1743 | 1744 | ---@param label string 1745 | function ImGui.TableHeader(label) end 1746 | 1747 | ---@return ImGuiTableSortSpecs|nil 1748 | function ImGui.TableGetSortSpecs() end 1749 | 1750 | ---@return integer 1751 | function ImGui.TableGetColumnCount() end 1752 | 1753 | ---@return integer 1754 | function ImGui.TableGetColumnIndex() end 1755 | 1756 | ---@return integer 1757 | function ImGui.TableGetRowIndex() end 1758 | 1759 | ---@param column_n integer|nil 1760 | ---@return string 1761 | function ImGui.TableGetColumnName(column_n) end 1762 | 1763 | ---@param column_n integer|nil 1764 | ---@return ImGuiTableColumnFlags 1765 | function ImGui.TableGetColumnFlags(column_n) end 1766 | 1767 | ---@param column_n integer 1768 | ---@param v boolean 1769 | function ImGui.TableSetColumnEnabled(column_n, v) end 1770 | 1771 | ---@param column_n integer 1772 | ---@param width number 1773 | function ImGui.TableSetColumnWidth(column_n, width) end 1774 | 1775 | ---@param target ImGuiTableBgTarget 1776 | ---@param color integer 1777 | ---@param column_n integer|nil 1778 | function ImGui.TableSetBgColor(target, color, column_n) end 1779 | 1780 | -- Disabled state 1781 | ---@param disabled boolean 1782 | function ImGui.BeginDisabled(disabled) end 1783 | 1784 | function ImGui.EndDisabled() end 1785 | 1786 | -- Button repeat 1787 | ---@param repeat boolean 1788 | function ImGui.PushButtonRepeat(repeat) end 1789 | 1790 | function ImGui.PopButtonRepeat() end 1791 | 1792 | -- Next item open state 1793 | ---@param is_open boolean 1794 | ---@param cond ImGuiCond|nil 1795 | function ImGui.SetNextItemOpen(is_open, cond) end 1796 | 1797 | -- Next frame capture state 1798 | ---@param want_capture_keyboard boolean|nil 1799 | function ImGui.SetNextFrameWantCaptureKeyboard(want_capture_keyboard) end 1800 | 1801 | ---@param want_capture_mouse boolean|nil 1802 | function ImGui.SetNextFrameWantCaptureMouse(want_capture_mouse) end 1803 | 1804 | -- Next window scroll 1805 | ---@param scroll ImVec2 1806 | function ImGui.SetNextWindowScroll(scroll) end 1807 | 1808 | -- Next window size constraints 1809 | ---@param size_min ImVec2 1810 | ---@param size_max ImVec2 1811 | function ImGui.SetNextWindowSizeConstraints(size_min, size_max) end 1812 | 1813 | -- Get font texture UV for white pixel 1814 | ---@return ImVec2 1815 | function ImGui.GetFontTexUvWhitePixel() end 1816 | 1817 | -- Get color as U32 1818 | ---@param idx ImGuiCol 1819 | ---@return integer 1820 | function ImGui.GetColorU32(idx) end 1821 | 1822 | ---@param col ImVec4 1823 | ---@return integer 1824 | function ImGui.GetColorU32(col) end 1825 | 1826 | -- Is rect visible 1827 | ---@return boolean 1828 | function ImGui.IsRectVisible() end 1829 | 1830 | ---@param size ImVec2 1831 | ---@return boolean 1832 | function ImGui.IsRectVisible(size) end 1833 | 1834 | ---@param rect_min ImVec2 1835 | ---@param rect_max ImVec2 1836 | ---@return boolean 1837 | function ImGui.IsRectVisible(rect_min, rect_max) end 1838 | 1839 | -- Enums (complete set from imgui.h) 1840 | ImGui.WindowFlags = { 1841 | None = 0, 1842 | NoTitleBar = 1, 1843 | NoResize = 2, 1844 | NoMove = 4, 1845 | NoScrollbar = 8, 1846 | NoScrollWithMouse = 16, 1847 | NoCollapse = 32, 1848 | AlwaysAutoResize = 64, 1849 | NoBackground = 128, 1850 | NoSavedSettings = 256, 1851 | NoMouseInputs = 512, 1852 | MenuBar = 1024, 1853 | HorizontalScrollbar = 2048, 1854 | NoFocusOnAppearing = 4096, 1855 | NoBringToFrontOnFocus = 8192, 1856 | AlwaysVerticalScrollbar = 16384, 1857 | AlwaysHorizontalScrollbar = 32768, 1858 | AlwaysUseWindowPadding = 65536, 1859 | NoNavInputs = 262144, 1860 | NoNavFocus = 524288, 1861 | UnsavedDocument = 1048576, 1862 | NoDocking = 2097152, 1863 | NoNav = 786432, 1864 | NoDecoration = 43, 1865 | NoInputs = 786944, 1866 | ChildWindow = 16777216, 1867 | Tooltip = 33554432, 1868 | Popup = 67108864, 1869 | Modal = 134217728, 1870 | ChildMenu = 268435456, 1871 | DockNodeHost = 536870912, 1872 | NavFlattened = 8388608 1873 | } 1874 | 1875 | ImGui.ChildFlags = { 1876 | None = 0, 1877 | Border = 1, 1878 | AlwaysUseWindowPadding = 2, 1879 | ResizeX = 4, 1880 | ResizeY = 8, 1881 | AutoResizeX = 16, 1882 | AutoResizeY = 32, 1883 | AlwaysAutoResize = 48, 1884 | FrameStyle = 64 1885 | } 1886 | 1887 | ImGui.InputTextFlags = { 1888 | None = 0, 1889 | CharsDecimal = 1, 1890 | CharsHexadecimal = 2, 1891 | CharsUppercase = 4, 1892 | CharsNoBlank = 8, 1893 | AutoSelectAll = 16, 1894 | EnterReturnsTrue = 32, 1895 | CallbackCompletion = 64, 1896 | CallbackHistory = 128, 1897 | CallbackAlways = 256, 1898 | CallbackCharFilter = 512, 1899 | AllowTabInput = 1024, 1900 | CtrlEnterForNewLine = 2048, 1901 | NoHorizontalScroll = 4096, 1902 | AlwaysOverwrite = 8192, 1903 | ReadOnly = 16384, 1904 | Password = 32768, 1905 | NoUndoRedo = 65536, 1906 | CharsScientific = 131072, 1907 | CallbackResize = 262144, 1908 | CallbackEdit = 524288, 1909 | EscapeClearsAll = 1048576 1910 | } 1911 | 1912 | -- ImGui.TreeNodeFlags = { 1913 | -- None = 0, 1914 | -- Selected = 1, 1915 | -- Framed = 2, 1916 | -- AllowOverlap = 4, 1917 | -- NoTreePushOnOpen = 8, 1918 | -- NoAutoOpenOnLog = 16, 1919 | -- DefaultOpen = 32, 1920 | -- OpenOnDoubleClick = 64, 1921 | -- OpenOnArrow = 128, 1922 | -- Leaf = 256, 1923 | -- Bullet = 512, 1924 | -- FramePadding = 1024, 1925 | -- SpanAvailWidth = 2048, 1926 | -- SpanFullWidth = 4096, 1927 | -- NavLeftJumpsBackHere = 8192, 1928 | -- CollapsingHeader = 26 1929 | -- } 1930 | 1931 | -- ImGui.SelectableFlags = { 1932 | -- None = 0, 1933 | -- DontClosePopups = 1, 1934 | -- SpanAllColumns = 2, 1935 | -- AllowDoubleClick = 4, 1936 | -- Disabled = 8, 1937 | -- AllowOverlap = 16 1938 | -- } 1939 | 1940 | -- ImGui.ComboFlags = { 1941 | -- None = 0, 1942 | -- PopupAlignLeft = 1, 1943 | -- HeightSmall = 2, 1944 | -- HeightRegular = 4, 1945 | -- HeightLarge = 8, 1946 | -- HeightLargest = 16, 1947 | -- NoArrowButton = 32, 1948 | -- NoPreview = 64, 1949 | -- HeightMask_ = 30 1950 | -- } 1951 | 1952 | -- ImGui.TabBarFlags = { 1953 | -- None = 0, 1954 | -- Reorderable = 1, 1955 | -- AutoSelectNewTabs = 2, 1956 | -- TabListPopupButton = 4, 1957 | -- NoCloseWithMiddleMouseButton = 8, 1958 | -- NoTabListScrollingButtons = 16, 1959 | -- NoTooltip = 32, 1960 | -- FittingPolicyResizeDown = 64, 1961 | -- FittingPolicyScroll = 128, 1962 | -- FittingPolicyMask_ = 192, 1963 | -- FittingPolicyDefault_ = 64 1964 | -- } 1965 | 1966 | -- ImGui.TabItemFlags = { 1967 | -- None = 0, 1968 | -- UnsavedDocument = 1, 1969 | -- SetSelected = 2, 1970 | -- NoCloseWithMiddleMouseButton = 4, 1971 | -- NoPushId = 8, 1972 | -- NoTooltip = 16, 1973 | -- NoReorder = 32, 1974 | -- Leading = 64, 1975 | -- Trailing = 128 1976 | -- } 1977 | 1978 | -- ImGui.FocusedFlags = { 1979 | -- None = 0, 1980 | -- ChildWindows = 1, 1981 | -- RootWindow = 2, 1982 | -- AnyWindow = 4, 1983 | -- RootAndChildWindows = 3 1984 | -- } 1985 | 1986 | -- ImGui.HoveredFlags = { 1987 | -- None = 0, 1988 | -- ChildWindows = 1, 1989 | -- RootWindow = 2, 1990 | -- AnyWindow = 4, 1991 | -- AllowWhenBlockedByPopup = 8, 1992 | -- AllowWhenBlockedByActiveItem = 32, 1993 | -- AllowWhenOverlapped = 64, 1994 | -- AllowWhenDisabled = 128, 1995 | -- RectOnly = 104, 1996 | -- RootAndChildWindows = 3 1997 | -- } 1998 | 1999 | -- ImGui.DragDropFlags = { 2000 | -- None = 0, 2001 | -- SourceNoPreviewTooltip = 1, 2002 | -- SourceNoDisableHover = 2, 2003 | -- SourceNoHoldToOpenOthers = 4, 2004 | -- SourceAllowNullID = 8, 2005 | -- SourceExtern = 16, 2006 | -- SourceAutoExpirePayload = 32, 2007 | -- AcceptBeforeDelivery = 1024, 2008 | -- AcceptNoDrawDefaultRect = 2048, 2009 | -- AcceptNoPreviewTooltip = 4096, 2010 | -- AcceptPeekOnly = 3072 2011 | -- } 2012 | 2013 | -- ImGui.ColorEditFlags = { 2014 | -- None = 0, 2015 | -- NoAlpha = 2, 2016 | -- NoPicker = 4, 2017 | -- NoOptions = 8, 2018 | -- NoSmallPreview = 16, 2019 | -- NoInputs = 32, 2020 | -- NoTooltip = 64, 2021 | -- NoLabel = 128, 2022 | -- NoSidePreview = 256, 2023 | -- NoDragDrop = 512, 2024 | -- NoBorder = 1024, 2025 | -- AlphaBar = 65536, 2026 | -- AlphaPreview = 131072, 2027 | -- AlphaPreviewHalf = 262144, 2028 | -- HDR = 524288, 2029 | -- DisplayRGB = 1048576, 2030 | -- DisplayHSV = 2097152, 2031 | -- DisplayHex = 4194304, 2032 | -- Uint8 = 8388608, 2033 | -- Float = 16777216, 2034 | -- PickerHueBar = 33554432, 2035 | -- PickerHueWheel = 67108864, 2036 | -- InputRGB = 134217728, 2037 | -- InputHSV = 268435456, 2038 | -- DefaultOptions_ = 177209344 2039 | -- } 2040 | 2041 | -- ImGui.SliderFlags = { 2042 | -- None = 0, 2043 | -- AlwaysClamp = 16, 2044 | -- Logarithmic = 32, 2045 | -- NoRoundToFormat = 64, 2046 | -- NoInput = 128, 2047 | -- InvalidMask_ = 1879048207 2048 | -- } 2049 | 2050 | ImGui.MouseButton = { 2051 | Left = 0, 2052 | Right = 1, 2053 | Middle = 2, 2054 | COUNT = 5 2055 | } 2056 | 2057 | ImGui.MouseCursor = { 2058 | None = -1, 2059 | Arrow = 0, 2060 | TextInput = 1, 2061 | ResizeAll = 2, 2062 | ResizeNS = 3, 2063 | ResizeEW = 4, 2064 | ResizeNESW = 5, 2065 | ResizeNWSE = 6, 2066 | Hand = 7, 2067 | NotAllowed = 8, 2068 | COUNT = 9 2069 | } 2070 | 2071 | ImGui.Cond = { 2072 | None = 0, 2073 | Always = 1, 2074 | Once = 2, 2075 | FirstUseEver = 4, 2076 | Appearing = 8 2077 | } 2078 | 2079 | ImGui.Col = { 2080 | Text = 0, 2081 | TextDisabled = 1, 2082 | WindowBg = 2, 2083 | ChildBg = 3, 2084 | PopupBg = 4, 2085 | Border = 5, 2086 | BorderShadow = 6, 2087 | FrameBg = 7, 2088 | FrameBgHovered = 8, 2089 | FrameBgActive = 9, 2090 | TitleBg = 10, 2091 | TitleBgActive = 11, 2092 | TitleBgCollapsed = 12, 2093 | MenuBarBg = 13, 2094 | ScrollbarBg = 14, 2095 | ScrollbarGrab = 15, 2096 | ScrollbarGrabHovered = 16, 2097 | ScrollbarGrabActive = 17, 2098 | CheckMark = 18, 2099 | SliderGrab = 19, 2100 | SliderGrabActive = 20, 2101 | Button = 21, 2102 | ButtonHovered = 22, 2103 | ButtonActive = 23, 2104 | Header = 24, 2105 | HeaderHovered = 25, 2106 | HeaderActive = 26, 2107 | Separator = 27, 2108 | SeparatorHovered = 28, 2109 | SeparatorActive = 29, 2110 | ResizeGrip = 30, 2111 | ResizeGripHovered = 31, 2112 | ResizeGripActive = 32, 2113 | Tab = 33, 2114 | TabHovered = 34, 2115 | TabActive = 35, 2116 | TabUnfocused = 36, 2117 | TabUnfocusedActive = 37, 2118 | DockingPreview = 38, 2119 | DockingEmptyBg = 39, 2120 | PlotLines = 40, 2121 | PlotLinesHovered = 41, 2122 | PlotHistogram = 42, 2123 | PlotHistogramHovered = 43, 2124 | TextSelectedBg = 44, 2125 | DragDropTarget = 45, 2126 | NavHighlight = 46, 2127 | NavWindowingHighlight = 47, 2128 | NavWindowingDimBg = 48, 2129 | ModalWindowDimBg = 49, 2130 | TableHeaderBg = 50, 2131 | TableBorderStrong = 51, 2132 | TableBorderLight = 52, 2133 | TableRowBg = 53, 2134 | TableRowBgAlt = 54, 2135 | COUNT = 55 2136 | } 2137 | 2138 | ImGui.StyleVar = { 2139 | Alpha = 0, 2140 | DisabledAlpha = 1, 2141 | WindowPadding = 2, 2142 | WindowRounding = 3, 2143 | WindowBorderSize = 4, 2144 | WindowMinSize = 5, 2145 | WindowTitleAlign = 6, 2146 | ChildRounding = 7, 2147 | ChildBorderSize = 8, 2148 | PopupRounding = 9, 2149 | PopupBorderSize = 10, 2150 | FramePadding = 11, 2151 | FrameRounding = 12, 2152 | FrameBorderSize = 13, 2153 | ItemSpacing = 14, 2154 | ItemInnerSpacing = 15, 2155 | IndentSpacing = 16, 2156 | CellPadding = 17, 2157 | ScrollbarSize = 18, 2158 | ScrollbarRounding = 19, 2159 | GrabMinSize = 20, 2160 | GrabRounding = 21, 2161 | TabRounding = 22, 2162 | ButtonTextAlign = 23, 2163 | SelectableTextAlign = 24, 2164 | COUNT = 25 2165 | } 2166 | 2167 | -- ImGui.Key = { 2168 | -- Tab = 0, 2169 | -- LeftArrow = 1, 2170 | -- RightArrow = 2, 2171 | -- UpArrow = 3, 2172 | -- DownArrow = 4, 2173 | -- PageUp = 5, 2174 | -- PageDown = 6, 2175 | -- Home = 7, 2176 | -- End = 8, 2177 | -- Insert = 9, 2178 | -- Delete = 10, 2179 | -- Backspace = 11, 2180 | -- Space = 12, 2181 | -- Enter = 13, 2182 | -- Escape = 14, 2183 | -- KeyPadEnter = 15, 2184 | -- A = 16, 2185 | -- C = 17, 2186 | -- V = 18, 2187 | -- X = 19, 2188 | -- Y = 20, 2189 | -- Z = 21, 2190 | -- COUNT = 22 2191 | -- } 2192 | 2193 | -- ImGui.NavInput = { 2194 | -- Activate = 0, 2195 | -- Cancel = 1, 2196 | -- Input = 2, 2197 | -- Menu = 3, 2198 | -- DpadLeft = 4, 2199 | -- DpadRight = 5, 2200 | -- DpadUp = 6, 2201 | -- DpadDown = 7, 2202 | -- LStickLeft = 8, 2203 | -- LStickRight = 9, 2204 | -- LStickUp = 10, 2205 | -- LStickDown = 11, 2206 | -- FocusPrev = 12, 2207 | -- FocusNext = 13, 2208 | -- TweakSlow = 14, 2209 | -- TweakFast = 15, 2210 | -- KeyMenu_ = 16, 2211 | -- KeyLeft_ = 17, 2212 | -- KeyRight_ = 18, 2213 | -- KeyUp_ = 19, 2214 | -- KeyDown_ = 20, 2215 | -- COUNT = 21, 2216 | -- InternalStart_ = 16 2217 | -- } 2218 | 2219 | -- ImGui.ConfigFlags = { 2220 | -- None = 0, 2221 | -- NavEnableKeyboard = 1, 2222 | -- NavEnableGamepad = 2, 2223 | -- NavEnableSetMousePos = 4, 2224 | -- NavNoCaptureKeyboard = 8, 2225 | -- NoMouse = 16, 2226 | -- NoMouseCursorChange = 32, 2227 | -- DockingEnable = 64, 2228 | -- ViewportsEnable = 1024, 2229 | -- DpiEnableScaleViewports = 16384, 2230 | -- DpiEnableScaleFonts = 32768, 2231 | -- IsSRGB = 1048576, 2232 | -- IsTouchScreen = 2097152 2233 | -- } 2234 | 2235 | ImGui.BackendFlags = { 2236 | None = 0, 2237 | HasGamepad = 1, 2238 | HasMouseCursors = 2, 2239 | HasSetMousePos = 4, 2240 | RendererHasVtxOffset = 8, 2241 | PlatformHasViewports = 1024, 2242 | HasMouseHoveredViewport = 2048, 2243 | RendererHasViewports = 4096 2244 | } 2245 | 2246 | ImGui.Dir = { 2247 | None = -1, 2248 | Left = 0, 2249 | Right = 1, 2250 | Up = 2, 2251 | Down = 3, 2252 | COUNT = 4 2253 | } 2254 | 2255 | ImGui.SortDirection = { 2256 | None = 0, 2257 | Ascending = 1, 2258 | Descending = 2 2259 | } 2260 | 2261 | -- ImGui.TableFlags = { 2262 | -- None = 0, 2263 | -- Resizable = 1, 2264 | -- Reorderable = 2, 2265 | -- Hideable = 4, 2266 | -- Sortable = 8, 2267 | -- NoSavedSettings = 16, 2268 | -- ContextMenuInBody = 32, 2269 | -- RowBg = 64, 2270 | -- BordersInnerH = 128, 2271 | -- BordersOuterH = 256, 2272 | -- BordersInnerV = 512, 2273 | -- BordersOuterV = 1024, 2274 | -- BordersH = 384, 2275 | -- BordersV = 1536, 2276 | -- BordersInner = 640, 2277 | -- BordersOuter = 1280, 2278 | -- Borders = 1920, 2279 | -- NoBordersInBody = 2048, 2280 | -- NoBordersInBodyUntilResize = 4096, 2281 | -- SizingFixedFit = 8192, 2282 | -- SizingFixedSame = 16384, 2283 | -- SizingStretchProp = 24576, 2284 | -- SizingStretchSame = 32768, 2285 | -- NoHostExtendX = 65536, 2286 | -- NoHostExtendY = 131072, 2287 | -- NoKeepColumnsVisible = 262144, 2288 | -- PreciseWidths = 524288, 2289 | -- NoClip = 1048576, 2290 | -- PadOuterX = 2097152, 2291 | -- NoPadOuterX = 4194304, 2292 | -- NoPadInnerX = 8388608, 2293 | -- ScrollX = 16777216, 2294 | -- ScrollY = 33554432, 2295 | -- SortMulti = 67108864, 2296 | -- SortTristate = 134217728, 2297 | -- HighlightHoveredColumn = 268435456 2298 | -- } 2299 | 2300 | -- ImGui.TableColumnFlags = { 2301 | -- None = 0, 2302 | -- Disabled = 1, 2303 | -- DefaultHide = 2, 2304 | -- DefaultSort = 4, 2305 | -- WidthStretch = 8, 2306 | -- WidthFixed = 16, 2307 | -- NoResize = 32, 2308 | -- NoReorder = 64, 2309 | -- NoHide = 128, 2310 | -- NoClip = 256, 2311 | -- NoSort = 512, 2312 | -- NoSortAscending = 1024, 2313 | -- NoSortDescending = 2048, 2314 | -- NoHeaderWidth = 4096, 2315 | -- PreferSortAscending = 8192, 2316 | -- PreferSortDescending = 16384, 2317 | -- IndentEnable = 32768, 2318 | -- IndentDisable = 65536, 2319 | -- IsEnabled = 16777216, 2320 | -- IsVisible = 33554432, 2321 | -- IsSorted = 67108864, 2322 | -- IsHovered = 134217728 2323 | -- } 2324 | 2325 | -- ImGui.TableRowFlags = { 2326 | -- None = 0, 2327 | -- Headers = 1 2328 | -- } 2329 | 2330 | ImGui.TableBgTarget = { 2331 | None = 0, 2332 | RowBg0 = 1, 2333 | RowBgTarget = 2, 2334 | CellBg = 3 2335 | } 2336 | 2337 | -- ImGui.DockNodeFlags = { 2338 | -- None = 0, 2339 | -- KeepAliveOnly = 1, 2340 | -- NoDockingInCentralNode = 4, 2341 | -- PassthruCentralNode = 8, 2342 | -- NoSplit = 16, 2343 | -- NoResize = 32, 2344 | -- AutoHideTabBar = 64 2345 | -- } 2346 | 2347 | ImGui.DataType = { 2348 | S8 = 0, 2349 | U8 = 1, 2350 | S16 = 2, 2351 | U16 = 3, 2352 | S32 = 4, 2353 | U32 = 5, 2354 | S64 = 6, 2355 | U64 = 7, 2356 | Float = 8, 2357 | Double = 9, 2358 | COUNT = 10 2359 | } 2360 | 2361 | ImGui.DrawFlags = { 2362 | None = 0, 2363 | Closed = 1, 2364 | RoundCornersTopLeft = 16, 2365 | RoundCornersTopRight = 32, 2366 | RoundCornersBottomLeft = 64, 2367 | RoundCornersBottomRight = 128, 2368 | RoundCornersNone = 256, 2369 | RoundCornersTop = 48, 2370 | RoundCornersBottom = 192, 2371 | RoundCornersLeft = 80, 2372 | RoundCornersRight = 160, 2373 | RoundCornersAll = 240, 2374 | RoundCornersDefault_ = 240, 2375 | RoundCornersMask_ = 496 2376 | } 2377 | 2378 | ImGui.DrawListFlags = { 2379 | None = 0, 2380 | AntiAliasedLines = 1, 2381 | AntiAliasedLinesUseTex = 2, 2382 | AntiAliasedFill = 4, 2383 | AllowVtxOffset = 8 2384 | } 2385 | 2386 | return ImGui --------------------------------------------------------------------------------