From b992dce0dd7fa3b0930eabd650b91af99e58a677 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Fri, 3 Nov 2023 22:34:07 -0700 Subject: [PATCH] Fixes --- .vscode/c_cpp_properties.json | 2 +- src/wrapper.hpp | 5 +- tools/tes.py | 98 ++ tools/test.json | 2252 +++++++++++++++++++++++++++++++++ 4 files changed, 2354 insertions(+), 3 deletions(-) create mode 100644 tools/tes.py create mode 100644 tools/test.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 13be1d2..b5dee91 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -10,7 +10,7 @@ "defines": [ "_DEBUG", "_DX9_SDK_INSTALLED", - "RUNTIME_REDUX" + "RUNTIME_CLEO" ], "windowsSdkVersion": "10.0.19041.0", "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe", diff --git a/src/wrapper.hpp b/src/wrapper.hpp index f03e7af..9fbc809 100644 --- a/src/wrapper.hpp +++ b/src/wrapper.hpp @@ -24,7 +24,7 @@ static void wGetStringParam(RUNTIME_CONTEXT ctx, char* label, unsigned char length) { #ifdef RUNTIME_CLEO - CLEO_ReadStringOpcodeParam(reinterpret_cast(ctx), label, length); + CLEO_ReadStringOpcodeParam(ctx, label, length); #else GetStringParam(ctx, label, length); #endif @@ -83,7 +83,8 @@ static float wGetFloatParam(RUNTIME_CONTEXT ctx) { static void wUpdateCompareFlag(RUNTIME_CONTEXT ctx, bool flag) { #ifdef RUNTIME_CLEO - ((void(*)(RUNTIME_CONTEXT, bool))0x4859D0)(ctx, flag); // CRunningScript::UpdateCompareFlag(); + typedef unsigned __int16 (__thiscall* _type)(RUNTIME_CONTEXT, bool); + ((_type)0x4859D0)(ctx, flag); // CRunningScript::UpdateCompareFlag(); #else UpdateCompareFlag(ctx, flag); #endif diff --git a/tools/tes.py b/tools/tes.py new file mode 100644 index 0000000..2f7ea8c --- /dev/null +++ b/tools/tes.py @@ -0,0 +1,98 @@ +import json + +lst = { + "IMGUI_BEGIN_FRAME" : 0x2200, + "IMGUI_END_FRAME" : 0x2201, + "IMGUI_BEGIN" : 0x2202, + "IMGUI_END" : 0x2203, + "IMGUI_BEGIN_MAINMENUBAR" : 0x2204, + "IMGUI_END_MAINMENUBAR" : 0x2205, + "IMGUI_BEGIN_CHILD" : 0x2206, + "IMGUI_END_CHILD" : 0x2207, + "IMGUI_TABS" : 0x2208, + "IMGUI_COLLAPSING_HEADER" : 0x2209, + "IMGUI_SET_WINDOW_POS" : 0x220A, + "IMGUI_SET_WINDOW_SIZE" : 0x220B, + "IMGUI_SET_NEXT_WINDOW_POS" : 0x220C, + "IMGUI_SET_NEXT_WINDOW_SIZE" : 0x220D, + "IMGUI_TEXT" : 0x220E, + "IMGUI_TEXT_CENTERED" : 0x220F, + "IMGUI_TEXT_DISABLED" : 0x2210, + "IMGUI_TEXT_WRAPPED" : 0x2211, + "IMGUI_TEXT_COLORED" : 0x2212, + "IMGUI_BULLET_TEXT" : 0x2213, + "IMGUI_BULLET" : 0x2214, + "IMGUI_CHECKBOX" : 0x2215, + "IMGUI_COMBO" : 0x2216, + "IMGUI_SET_TOOLTIP" : 0x2217, + "IMGUI_BUTTON" : 0x2218, + "IMGUI_IMAGE_BUTTON" : 0x2219, + "IMGUI_INVISIBLE_BUTTON" : 0x221A, + "IMGUI_COLOR_BUTTON" : 0x221B, + "IMGUI_ARROW_BUTTON" : 0x221C, + "IMGUI_SLIDER_INT" : 0x221D, + "IMGUI_SLIDER_FLOAT" : 0x221E, + "IMGUI_INPUT_INT" : 0x221F, + "IMGUI_INPUT_FLOAT" : 0x2220, + "IMGUI_INPUT_TEXT" : 0x2221, + "IMGUI_RADIO_BUTTON" : 0x2222, + "IMGUI_COLOR_PICKER" : 0x2223, + "IMGUI_MENU_ITEM" : 0x2224, + "IMGUI_SELECTABLE" : 0x2225, + "IMGUI_DUMMY" : 0x2226, + "IMGUI_SAMELINE" : 0x2227, + "IMGUI_NEWLINE" : 0x2228, + "IMGUI_COLUMNS" : 0x2229, + "IMGUI_NEXT_COLUMN" : 0x222A, + "IMGUI_SPACING" : 0x222B, + "IMGUI_SEPARATOR" : 0x222C, + "IMGUI_PUSH_ITEM_WIDTH" : 0x222D, + "IMGUI_POP_ITEM_WIDTH" : 0x222E, + "IMGUI_IS_ITEM_ACTIVE" : 0x222F, + "IMGUI_IS_ITEM_CLICKED" : 0x2230, + "IMGUI_IS_ITEM_FOCUSED" : 0x2231, + "IMGUI_IS_ITEM_HOVERED" : 0x2232, + "IMGUI_SET_ITEM_INT" : 0x2233, + "IMGUI_SET_ITEM_FLOAT" : 0x2234, + "IMGUI_SET_ITEM_TEXT" : 0x2235, + "IMGUI_SET_IMAGE_BG_COLOR" : 0x2236, + "IMGUI_SET_IMAGE_TINT_COLOR" : 0x2237, + "IMGUI_LOAD_IMAGE" : 0x2238, + "IMGUI_FREE_IMAGE" : 0x2239, + "IMGUI_PUSH_STYLE_VAR" : 0x223A, + "IMGUI_PUSH_STYLE_VAR2" : 0x223B, + "IMGUI_PUSH_STYLE_COLOR" : 0x223C, + "IMGUI_POP_STYLE_VAR" : 0x223D, + "IMGUI_POP_STYLE_COLOR" : 0x223E, + "IMGUI_GET_FOREGROUND_DRAWLIST" : 0x223F, + "IMGUI_GET_BACKGROUND_DRAWLIST" : 0x2240, + "IMGUI_GET_WINDOW_DRAWLIST" : 0x2241, + "IMGUI_DRAWLIST_ADD_TEXT" : 0x2242, + "IMGUI_DRAWLIST_ADD_LINE" : 0x2243, + "GET_FRAMERATE" : 0x2244, + "IMGUI_GET_VERSION" : 0x2245, + "IMGUI_GET_PLUGIN_VERSION" : 0x2246, + "IMGUI_SET_CURSOR_VISIBLE" : 0x2247, + "IMGUI_GET_FRAME_HEIGHT" : 0x2248, + "IMGUI_GET_WINDOW_POS" : 0x2249, + "IMGUI_GET_WINDOW_SIZE" : 0x224A, + "IMGUI_CALC_TEXT_SIZE" : 0x224B, + "IMGUI_GET_WINDOW_CONTENT_REGION_WIDTH" : 0x224C, + "IMGUI_GET_SCALING_SIZE" : 0x224D, + "IMGUI_GET_DISPLAY_SIZE" : 0x224E, + "IMGUI_SET_NEXT_WINDOW_TRANSPARENCY" : 0x224F, + "IMGUI_SET_MESSAGE" : 0x2250 +} + +# Retrieve JSON data from the file +with open("C:/Users/Grinch_/Desktop/test.json", "r") as f: + data = json.load(f) + + outdata = [] + with open("C:/Users/Grinch_/Desktop/out.json", "w") as w: + for e in data["commands"]: + e["id"] = str(hex(lst[e["name"]])).replace("0x", ""); + outdata.insert(-1, e); + formatted_data = json.dumps(outdata, indent=2) + + w.write(formatted_data) \ No newline at end of file diff --git a/tools/test.json b/tools/test.json new file mode 100644 index 0000000..9582ca9 --- /dev/null +++ b/tools/test.json @@ -0,0 +1,2252 @@ +{ + "name": "imgui", + "commands": [ + { + "input": [ + { + "name": "windowName", + "type": "string" + }, + { + "name": "state", + "type": "bool" + }, + { + "name": "noTitleBar", + "type": "bool" + }, + { + "name": "noResize", + "type": "bool" + }, + { + "name": "noMove", + "type": "bool" + }, + { + "name": "autoResize", + "type": "bool" + } + ], + "output": [ + { + "name": "state", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C00", + "name": "IMGUI_BEGIN", + "num_params": 7, + "short_desc": "Creates the window", + "class": "ImGui", + "member": "Begin", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C01", + "name": "IMGUI_END", + "num_params": 0, + "class": "ImGui", + "member": "End", + "attrs": { + "is_static": true + }, + "short_desc": "Ends the window", + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + }, + { + "name": "isChecked", + "type": "bool" + } + ], + "output": [ + { + "name": "isChecked", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C02", + "name": "IMGUI_CHECKBOX", + "num_params": 3, + "short_desc": "Creates the checkbox", + "class": "ImGui", + "member": "Checkbox", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "buttonName", + "type": "string" + }, + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + } + ], + "id": "0C03", + "name": "IMGUI_BUTTON", + "num_params": 3, + "short_desc": "Creates the button", + "class": "ImGui", + "member": "Button", + "attrs": { + "is_static": true, + "is_condition": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "buttonName", + "type": "string" + }, + { + "name": "red", + "type": "float" + }, + { + "name": "green", + "type": "float" + }, + { + "name": "blue", + "type": "float" + }, + { + "name": "alpha", + "type": "float" + }, + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + } + ], + "id": "0C04", + "name": "IMGUI_COLOR_BUTTON", + "num_params": 7, + "short_desc": "Creates the button with custom colors", + "class": "ImGui", + "member": "ButtonColored", + "attrs": { + "is_static": true, + "is_condition": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "buttonName", + "type": "string" + }, + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + } + ], + "id": "0C05", + "name": "IMGUI_INVISIBLE_BUTTON", + "num_params": 3, + "short_desc": "Creates the invisible button", + "class": "ImGui", + "member": "ButtonInvisible", + "attrs": { + "is_static": true, + "is_condition": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "imGuiCond", + "type": "ImGuiCond" + } + ], + "id": "0C06", + "name": "IMGUI_SET_WINDOW_POS", + "num_params": 3, + "short_desc": "Sets the current window position. Must be called inside Begin()...End()", + "class": "ImGui", + "member": "SetWindowPos", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + }, + { + "name": "imGuiCond", + "type": "ImGuiCond" + } + ], + "id": "0C07", + "name": "IMGUI_SET_WINDOW_SIZE", + "num_params": 3, + "short_desc": "Sets the current window size. Must be called inside Begin()...End()", + "class": "ImGui", + "member": "SetWindowSize", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "imGuiCond", + "type": "ImGuiCond" + } + ], + "id": "0C08", + "name": "IMGUI_SET_NEXT_WINDOW_POS", + "num_params": 3, + "short_desc": "Sets the current window position. Applies to the next window ( aka Begin() )", + "class": "ImGui", + "member": "SetNextWindowPos", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + }, + { + "name": "imGuiCond", + "type": "ImGuiCond" + } + ], + "id": "0C09", + "name": "IMGUI_SET_NEXT_WINDOW_SIZE", + "num_params": 3, + "short_desc": "Sets the current window size. Applies to the next window ( aka Begin() )", + "class": "ImGui", + "member": "SetNextWindowSize", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + } + ], + "id": "0C0A", + "name": "IMGUI_DUMMY", + "num_params": 2, + "short_desc": "Creates the dummy widget. Used for spacing", + "class": "ImGui", + "member": "Dummy", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C0B", + "name": "IMGUI_TEXT", + "num_params": 1, + "short_desc": "Creates the text line", + "class": "ImGui", + "member": "Text", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C0C", + "name": "IMGUI_TEXT_DISABLED", + "num_params": 1, + "short_desc": "Creates the text line with the disabled color ( Grayish by default )", + "class": "ImGui", + "member": "TextDisabled", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C0D", + "name": "IMGUI_TEXT_WRAPPED", + "num_params": 1, + "short_desc": "Creates the text line that wraps to a newline if the text goes beyond the window width", + "class": "ImGui", + "member": "TextWrapped", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + }, + { + "name": "red", + "type": "float" + }, + { + "name": "green", + "type": "float" + }, + { + "name": "blue", + "type": "float" + }, + { + "name": "alpha", + "type": "float" + } + ], + "id": "0C0E", + "name": "IMGUI_TEXT_COLORED", + "num_params": 5, + "short_desc": "Creates the text line of the given RGBA color (0.0f-1.0f)", + "class": "ImGui", + "member": "TextColored", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C0F", + "name": "IMGUI_BULLET_TEXT", + "num_params": 1, + "short_desc": "Creates the text line with a bullet point", + "class": "ImGui", + "member": "TextWithBullet", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C10", + "name": "IMGUI_SET_TOOLTIP", + "num_params": 1, + "short_desc": "Creates the popup window with the given text", + "class": "ImGui", + "member": "SetTooltip", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C11", + "name": "IMGUI_SAMELINE", + "num_params": 0, + "short_desc": "Appends the next widget to the same line as the previous widget", + "class": "ImGui", + "member": "SameLine", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C12", + "name": "IMGUI_NEWLINE", + "num_params": 0, + "short_desc": "Creates a new line for the next widget", + "class": "ImGui", + "member": "NewLine", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C13", + "name": "IMGUI_SPACING", + "num_params": 0, + "short_desc": "Adds some spacing after the previous widget", + "class": "ImGui", + "member": "Spacing", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C14", + "name": "IMGUI_SEPARATOR", + "num_params": 0, + "short_desc": "Adds a horizontal separator line", + "class": "ImGui", + "member": "Separator", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C15", + "name": "IMGUI_NEXT_COLUMN", + "num_params": 0, + "short_desc": "Puts the next widgets on the next column. Used alongside 0C16", + "class": "ImGui", + "member": "NextColumn", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "count", + "type": "int" + } + ], + "id": "0C16", + "name": "IMGUI_COLUMNS", + "num_params": 1, + "short_desc": "Divides the window width into N columns. Close this with Columns(1)", + "class": "ImGui", + "member": "Columns", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "output": [ + { + "name": "fps", + "type": "int", + "source": "var_any" + } + ], + "id": "0C17", + "name": "GET_FRAMERATE", + "num_params": 1, + "short_desc": "Returns game FPS", + "class": "Game", + "member": "GetFramerate", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "output": [ + { + "name": "version", + "type": "string", + "source": "var_any" + } + ], + "id": "0C18", + "name": "IMGUI_GET_VERSION", + "num_params": 1, + "short_desc": "Returns the ImGui version", + "class": "ImGui", + "member": "GetVersion", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "output": [ + { + "name": "version", + "type": "float", + "source": "var_any" + } + ], + "id": "0C19", + "name": "IMGUI_GET_PLUGIN_VERSION", + "num_params": 1, + "short_desc": "Returns the ImGuiRedux version", + "class": "ImGui", + "member": "GetPluginVersion", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "show", + "type": "bool" + } + ], + "id": "0C1A", + "name": "IMGUI_SET_CURSOR_VISIBLE", + "num_params": 1, + "short_desc": "Toggles the cursor", + "class": "ImGui", + "member": "SetCursorVisible", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "output": [ + { + "name": "width", + "type": "float", + "source": "var_any" + }, + { + "name": "height", + "type": "float", + "source": "var_any" + } + ], + "id": "0C1B", + "name": "IMGUI_GET_DISPLAY_SIZE", + "num_params": 2, + "class": "ImGui", + "attrs": { + "is_static": true + }, + "member": "GetDisplaySize", + "short_desc": "Returns the width & height of the display" + }, + { + "output": [ + { + "name": "height", + "type": "float", + "source": "var_any" + } + ], + "id": "0C1C", + "name": "IMGUI_GET_FRAME_HEIGHT", + "num_params": 1, + "short_desc": "Returns the ImGui frame height", + "class": "ImGui", + "member": "GetFrameHeight", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "x", + "type": "float", + "source": "var_any" + }, + { + "name": "y", + "type": "float", + "source": "var_any" + } + ], + "id": "0C1D", + "name": "IMGUI_GET_WINDOW_POS", + "num_params": 3, + "short_desc": "Returns the x,y coordinates of the window on the screen", + "class": "ImGui", + "member": "GetWindowPos", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "width", + "type": "float", + "source": "var_any" + }, + { + "name": "height", + "type": "float", + "source": "var_any" + } + ], + "id": "0C1E", + "name": "IMGUI_GET_WINDOW_SIZE", + "num_params": 3, + "short_desc": "Returns the width and height of the window", + "class": "ImGui", + "member": "GetWindowSize", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "output": [ + { + "name": "width", + "type": "float", + "source": "var_any" + }, + { + "name": "height", + "type": "float", + "source": "var_any" + } + ], + "id": "0C1F", + "name": "IMGUI_CALC_TEXT_SIZE", + "num_params": 3, + "short_desc": "Returns the width and height of the given text", + "class": "ImGui", + "member": "CalcTextSize", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "width", + "type": "float", + "source": "var_any" + } + ], + "id": "0C20", + "name": "IMGUI_GET_WINDOW_CONTENT_REGION_WIDTH", + "num_params": 2, + "short_desc": "Returns the content region width of the window", + "class": "ImGui", + "member": "GetWindowContentRegionWidth", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "active", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C21", + "name": "IMGUI_BEGIN_MAINMENUBAR", + "num_params": 2, + "short_desc": "Creates the main menu bar", + "class": "ImGui", + "member": "BeginMainMenuBar", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C22", + "name": "IMGUI_END_MAINMENUBAR", + "num_params": 0, + "short_desc": "Ends the main menu bar", + "class": "ImGui", + "member": "EndMainMenuBar", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "output": [ + { + "name": "clicked", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C23", + "name": "IMGUI_MENU_ITEM", + "num_params": 4, + "short_desc": "Adds the menu item", + "class": "ImGui", + "member": "MenuItem", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + }, + { + "name": "selected", + "type": "bool" + } + ], + "output": [ + { + "name": "clicked", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C24", + "name": "IMGUI_SELECTABLE", + "num_params": 3, + "short_desc": "Adds the selectable widget", + "class": "ImGui", + "member": "Selectable", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "id": "0C25", + "name": "IMGUI_BEGIN_CHILD", + "num_params": 1, + "short_desc": "Creates a child window widget inside the main window", + "class": "ImGui", + "member": "BeginChild", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C26", + "name": "IMGUI_END_CHILD", + "num_params": 0, + "short_desc": "Ends the child window widget created with 0C25", + "class": "ImGui", + "member": "EndChild", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "width", + "type": "float" + } + ], + "id": "0C27", + "name": "IMGUI_PUSH_ITEM_WIDTH", + "num_params": 1, + "short_desc": "Sets the item width for the next widgets", + "class": "ImGui", + "member": "PushItemWidth", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C28", + "name": "IMGUI_POP_ITEM_WIDTH", + "num_params": 0, + "short_desc": "Removes the pushed item width (0C27) from the stack", + "class": "ImGui", + "member": "PopItemWidth", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + } + ], + "output": [ + { + "name": "open", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C29", + "name": "IMGUI_COLLAPSING_HEADER", + "num_params": 2, + "short_desc": "Adds the collapsing header", + "class": "ImGui", + "member": "CollapsingHeader", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + }, + { + "name": "initValue", + "type": "int" + }, + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ], + "output": [ + { + "name": "val", + "type": "int", + "source": "var_any" + } + ], + "id": "0C2A", + "name": "IMGUI_SLIDER_INT", + "num_params": 5, + "short_desc": "Creates the int slider input", + "class": "ImGui", + "member": "SliderInt", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + }, + { + "name": "initValue", + "type": "float" + }, + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ], + "output": [ + { + "name": "val", + "type": "float", + "source": "var_any" + } + ], + "id": "0C2B", + "name": "IMGUI_SLIDER_FLOAT", + "num_params": 5, + "short_desc": "Creates the float slider input", + "class": "ImGui", + "member": "SliderFloat", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + }, + { + "name": "initValue", + "type": "float" + }, + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ], + "output": [ + { + "name": "val", + "type": "float", + "source": "var_any" + } + ], + "id": "0C2C", + "name": "IMGUI_INPUT_FLOAT", + "num_params": 5, + "short_desc": "Creates the float input", + "class": "ImGui", + "member": "InputFloat", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + }, + { + "name": "initValue", + "type": "int" + }, + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ], + "output": [ + { + "name": "val", + "type": "int", + "source": "var_any" + } + ], + "id": "0C2D", + "name": "IMGUI_INPUT_INT", + "num_params": 5, + "short_desc": "Creates the int input", + "class": "ImGui", + "member": "InputInt", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + } + ], + "output": [ + { + "name": "text", + "type": "string", + "source": "var_any" + } + ], + "id": "0C2E", + "name": "IMGUI_INPUT_TEXT", + "num_params": 2, + "short_desc": "Creates the text input", + "class": "ImGui", + "member": "InputText", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + }, + { + "name": "selectedBtn", + "type": "int" + }, + { + "name": "btnNo", + "type": "int" + } + ], + "output": [ + { + "name": "val", + "type": "int", + "source": "var_any" + } + ], + "id": "0C2F", + "name": "IMGUI_RADIO_BUTTON", + "num_params": 4, + "short_desc": "Creates the radio button", + "class": "ImGui", + "member": "RadioButton", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "label", + "type": "string" + } + ], + "output": [ + { + "name": "red", + "type": "int", + "source": "var_any" + }, + { + "name": "green", + "type": "int", + "source": "var_any" + }, + { + "name": "blue", + "type": "int", + "source": "var_any" + }, + { + "name": "alpha", + "type": "int", + "source": "var_any" + } + ], + "id": "0C30", + "name": "IMGUI_COLOR_PICKER", + "num_params": 5, + "short_desc": "Creates the color picker and sets the default color (0-255)", + "class": "ImGui", + "member": "ColorPicker", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "id": "0C31", + "name": "IMGUI_BEGIN_FRAME", + "num_params": 1, + "short_desc": "Creates a unique frame with its own space in memory. End it with 0C32. MUST BE UNIQUE!", + "class": "ImGui", + "member": "BeginFrame", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "id": "0C32", + "name": "IMGUI_END_FRAME", + "num_params": 0, + "short_desc": "Ends unique ImGui frame", + "class": "ImGui", + "member": "EndFrame", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "state", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C33", + "name": "IMGUI_IS_ITEM_ACTIVE", + "num_params": 2, + "short_desc": "Returns true if the previous widget is in active state", + "class": "ImGui", + "member": "IsItemActive", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "state", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C34", + "name": "IMGUI_IS_ITEM_CLICKED", + "num_params": 2, + "short_desc": "Returns true if the previous widget is clicked", + "class": "ImGui", + "member": "IsItemClicked", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "state", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C35", + "name": "IMGUI_IS_ITEM_FOCUSED", + "num_params": 2, + "short_desc": "Returns true if the previous widget is focused", + "class": "ImGui", + "member": "IsItemFocused", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + } + ], + "output": [ + { + "name": "state", + "type": "bool", + "source": "var_any" + } + ], + "id": "0C36", + "name": "IMGUI_IS_ITEM_HOVERED", + "num_params": 2, + "short_desc": "Returns true if the previous widget is hovered with mouse", + "class": "ImGui", + "member": "IsItemHovered", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "uniqueId", + "type": "string" + }, + { + "name": "count", + "type": "int" + }, + { + "name": "spacing", + "type": "bool" + } + ], + "output": [ + { + "name": "x", + "type": "float", + "source": "var_any" + }, + { + "name": "y", + "type": "float", + "source": "var_any" + } + ], + "id": "0C37", + "name": "IMGUI_GET_SCALING_SIZE", + "num_params": 5, + "short_desc": "Returns the width and height scaling factor based on the window size", + "class": "ImGui", + "member": "GetScalingSize", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "alpha", + "type": "float" + } + ], + "id": "0C38", + "name": "IMGUI_SET_NEXT_WINDOW_TRANSPARENCY", + "num_params": 1, + "class": "ImGui", + "member": "SetNextWindowTransparency", + "short_desc": "Sets the background transparency of next window (0.0f-1.0f)", + "attrs": { + "is_static": true + }, + "versions": [ + "1.0" + ], + "platforms": [ + "pc" + ] + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C39", + "name": "IMGUI_SET_MESSAGE", + "num_params": 1, + "class": "ImGui", + "short_desc": "Displays a text message on top left corner of the screen. Useful for games without `showTextBox(...)` support", + "attrs": { + "is_static": true + }, + "member": "SetMessage" + }, + { + "input": [ + { + "name": "name", + "type": "string" + }, + { + "name": "imGuiDir", + "type": "ImGuiDir" + } + ], + "id": "0C3A", + "name": "IMGUI_ARROW_BUTTON", + "num_params": 2, + "class": "ImGui", + "attrs": { + "is_static": true, + "is_condition": true + }, + "short_desc": "Creates the arrow button in the specified direction", + "member": "ButtonArrow" + }, + { + "id": "0C3B", + "name": "IMGUI_BULLET", + "num_params": 0, + "class": "ImGui", + "short_desc": "Creates a bullet point", + "member": "Bullet", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "name", + "type": "string" + }, + { + "name": "options", + "type": "string" + }, + { + "name": "selection", + "type": "int" + } + ], + "output": [ + { + "name": "selected", + "type": "int", + "source": "var_any" + } + ], + "id": "0C3C", + "name": "IMGUI_COMBO", + "num_params": 4, + "class": "ImGui", + "member": "ComboBox", + "short_desc": "Creates a combo box widget. Pass options separated by commas \"item1,item2,item3\"", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "name", + "type": "string" + }, + { + "name": "image", + "type": "int" + }, + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + } + ], + "id": "0C3D", + "name": "IMGUI_IMAGE_BUTTON", + "num_params": 4, + "class": "ImGui", + "member": "ButtonImage", + "short_desc": "Creates a ImGui button with specified image", + "attrs": { + "is_static": true, + "is_condition": true + } + }, + { + "input": [ + { + "name": "path", + "type": "string" + } + ], + "output": [ + { + "name": "image", + "type": "int", + "source": "var_any" + } + ], + "id": "0C3E", + "name": "IMGUI_LOAD_IMAGE", + "num_params": 2, + "class": "ImGui", + "member": "LoadImage", + "short_desc": "Loads a image file from disk. Relative to CLEO directory", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "image", + "type": "int" + } + ], + "id": "0C3F", + "name": "IMGUI_FREE_IMAGE", + "num_params": 1, + "class": "ImGui", + "member": "FreeImage", + "short_desc": "Frees a loaded image data", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "text", + "type": "string" + } + ], + "id": "0C40", + "name": "IMGUI_TEXT_CENTERED", + "num_params": 1, + "class": "ImGui", + "member": "TextCentered", + "short_desc": "Displays a center aligned ImGui text widget", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "imGuiStyleVar", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "float" + } + ], + "id": "0C41", + "name": "IMGUI_PUSH_STYLE_VAR", + "num_params": 2, + "class": "ImGui", + "member": "PushStyleVar", + "short_desc": "Pushes a ImGuiStyleVar value to the stack. Use PopStyleVar to undo the effect", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "imGuiStyleVar", + "type": "ImGuiStyleVar" + }, + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "id": "0C42", + "name": "IMGUI_PUSH_STYLE_VAR2", + "num_params": 3, + "class": "ImGui", + "member": "PushStyleVar2", + "short_desc": "Pushes a ImGuiStyleVar value to the stack. Use PopStyleVar to undo the effect", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "imGuiCol", + "type": "ImGuiCol" + }, + { + "name": "r", + "type": "int" + }, + { + "name": "g", + "type": "int" + }, + { + "name": "b", + "type": "int" + }, + { + "name": "a", + "type": "int" + } + ], + "id": "0C43", + "name": "IMGUI_PUSH_STYLE_COLOR", + "num_params": 5, + "class": "ImGui", + "member": "PushStyleColor", + "short_desc": "Pushes a ImGuiCol value to the stack. Use PopStyleColor to undo the effect", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "count", + "type": "int" + } + ], + "id": "0C44", + "name": "IMGUI_POP_STYLE_VAR", + "num_params": 1, + "class": "ImGui", + "member": "PopStyleVar", + "short_desc": "Removes the recent imGuiStyleVar from the stack", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "count", + "type": "int" + } + ], + "id": "0C45", + "name": "IMGUI_POP_STYLE_COLOR", + "num_params": 1, + "class": "ImGui", + "member": "PopStyleColor", + "short_desc": "Removes the recent ImGuiCol from the stack", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "name", + "type": "string" + }, + { + "name": "tabNames", + "type": "string" + } + ], + "output": [ + { + "name": "index", + "type": "int", + "source": "var_any" + } + ], + "id": "0C46", + "name": "IMGUI_TABS", + "num_params": 3, + "class": "ImGui", + "member": "Tabs", + "short_desc": "Pass tab names separated by comma. Returns the index of the visible tab", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "id": "0C47", + "name": "IMGUI_SET_IMAGE_BG_COLOR", + "num_params": 4, + "class": "ImGui", + "member": "SetImageBgColor", + "short_desc": "Sets image background color", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "id": "0C48", + "name": "IMGUI_SET_IMAGE_TINT_COLOR", + "num_params": 4, + "class": "ImGui", + "member": "SetImageTintColor", + "short_desc": "Sets image tint color", + "attrs": { + "is_static": true + } + }, + { + "output": [ + { + "name": "drawList", + "type": "int", + "source": "var_any" + } + ], + "id": "0C49", + "name": "IMGUI_GET_FOREGROUND_DRAWLIST", + "num_params": 1, + "class": "ImGui", + "member": "GetForegroundDrawList", + "short_desc": "Returns pointer to foreground draw list", + "attrs": { + "is_static": true + } + }, + { + "output": [ + { + "name": "drawList", + "type": "int", + "source": "var_any" + } + ], + "id": "0C4A", + "name": "IMGUI_GET_BACKGROUND_DRAWLIST", + "num_params": 1, + "class": "ImGui", + "member": "GetBackgroundDrawList", + "short_desc": "Returns pointer to ImGui background drawlist", + "attrs": { + "is_static": true + } + }, + { + "output": [ + { + "name": "drawList", + "type": "int", + "source": "var_any" + } + ], + "id": "0C4B", + "name": "IMGUI_GET_WINDOW_DRAWLIST", + "num_params": 1, + "class": "ImGui", + "member": "GetWindowDrawlist", + "short_desc": "Returns pointer to ImGui window drawList", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "drawList", + "type": "int" + }, + { + "name": "posX", + "type": "float" + }, + { + "name": "posY", + "type": "float" + }, + { + "name": "r", + "type": "int" + }, + { + "name": "g", + "type": "int" + }, + { + "name": "b", + "type": "int" + }, + { + "name": "a", + "type": "int" + }, + { + "name": "text", + "type": "string" + } + ], + "id": "0C4C", + "name": "IMGUI_DRAWLIST_ADD_TEXT", + "num_params": 8, + "class": "ImGui", + "member": "AddText", + "short_desc": "Adds text at specified position", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "drawList", + "type": "int" + }, + { + "name": "p1X", + "type": "float" + }, + { + "name": "p1Y", + "type": "float" + }, + { + "name": "p2X", + "type": "float" + }, + { + "name": "p2Y", + "type": "float" + }, + { + "name": "r", + "type": "int" + }, + { + "name": "g", + "type": "int" + }, + { + "name": "b", + "type": "int" + }, + { + "name": "a", + "type": "int" + }, + { + "name": "thickness", + "type": "float" + } + ], + "id": "0C4D", + "name": "IMGUI_DRAWLIST_ADD_LINE", + "num_params": 10, + "class": "ImGui", + "member": "AddLine", + "short_desc": "Adds a line form point A to B", + "attrs": { + "is_static": true + } + }, + { + "input": [ + { + "name": "id", + "type": "string" + }, + { + "name": "val", + "type": "int" + } + ], + "id": "0C4E", + "name": "IMGUI_SET_ITEM_INT", + "num_params": 2, + "class": "ImGui", + "member": "SetItemValueInt", + "short_desc": "Sets the value of input int & slider int widget", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "id", + "type": "string" + }, + { + "name": "val", + "type": "float" + } + ], + "id": "0C4F", + "name": "IMGUI_SET_ITEM_FLOAT", + "num_params": 2, + "short_desc": "Sets the value of input float & slider float widget", + "class": "ImGui", + "member": "SetItemValueFloat", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + }, + { + "input": [ + { + "name": "id", + "type": "string" + }, + { + "name": "val", + "type": "string" + } + ], + "id": "0C50", + "name": "IMGUI_SET_ITEM_TEXT", + "num_params": 2, + "short_desc": "Sets value of input text widget", + "class": "ImGui", + "member": "SetItemValueText", + "attrs": { + "is_static": true + }, + "platforms": [ + "pc" + ], + "versions": [ + "1.0" + ] + } + ] +} \ No newline at end of file