- Joined
- Feb 9, 2017
- RedCents
- 1,387¢
This won't make it resizable but it will give you extra room. Find this section local HandleEdit = function(Set, Index, Key, Prop) and add the next two lines.When you open up a button to type in text into the box, could that box be expandable. When typing or editing buttons with multilines, it is quite the hassle if you can not see all the line.
Code:
local HandleEdit = function(Set, Index, Key, Prop)
ImGui.SetCursorPosX(0)
ImGui.PushItemWidth(1000)
local txt, selected = ImGui.InputText(Prop, tmpButton[Key][Prop] or '', 0)
if selected then
-- if theres no value, nil the key so we don't save empty command lines
if txt:len() > 0 then
tmpButton[Key][Prop] = txt
else
tmpButton[Key][Prop] = nil
end
end
end










