feat(Lua): expose imgui separatortext to lua (#3554)
This commit is contained in:
parent
d6159d7686
commit
9f514924b6
@ -331,6 +331,10 @@ You can find all the supported functions and overloads below.
|
|||||||
-- ImGui.Separator()
|
-- ImGui.Separator()
|
||||||
ImGui.Separator
|
ImGui.Separator
|
||||||
|
|
||||||
|
-- ImGui.SeparatorText(...)
|
||||||
|
-- Parameters: text (text)
|
||||||
|
ImGui.SeparatorText("some text")
|
||||||
|
|
||||||
-- ImGui.SameLine(...)
|
-- ImGui.SameLine(...)
|
||||||
-- Parameters: float (offset_from_start_x) [O], float (spacing) [O]
|
-- Parameters: float (offset_from_start_x) [O], float (spacing) [O]
|
||||||
-- Overloads
|
-- Overloads
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "imgui.h"
|
||||||
|
|
||||||
namespace lua::imgui
|
namespace lua::imgui
|
||||||
{
|
{
|
||||||
@ -417,6 +418,10 @@ namespace lua::imgui
|
|||||||
{
|
{
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
}
|
}
|
||||||
|
inline void SeparatorText(const char* label)
|
||||||
|
{
|
||||||
|
ImGui::SeparatorText(label);
|
||||||
|
}
|
||||||
inline void SameLine()
|
inline void SameLine()
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
@ -3338,6 +3343,7 @@ namespace lua::imgui
|
|||||||
|
|
||||||
#pragma region Cursor / Layout
|
#pragma region Cursor / Layout
|
||||||
ImGui.set_function("Separator", Separator);
|
ImGui.set_function("Separator", Separator);
|
||||||
|
ImGui.set_function("SeparatorText", SeparatorText);
|
||||||
ImGui.set_function("SameLine", sol::overload(sol::resolve<void()>(SameLine), sol::resolve<void(float)>(SameLine)));
|
ImGui.set_function("SameLine", sol::overload(sol::resolve<void()>(SameLine), sol::resolve<void(float)>(SameLine)));
|
||||||
ImGui.set_function("NewLine", NewLine);
|
ImGui.set_function("NewLine", NewLine);
|
||||||
ImGui.set_function("Spacing", Spacing);
|
ImGui.set_function("Spacing", Spacing);
|
||||||
|
Reference in New Issue
Block a user