GE Lua Documentation

Press F to search!

AcceptNewItem2

Definition


-- @/=[C]:-1
function AcceptNewItem2(...)

Callers

@/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua
    if thickness == nil then thickness = 1.0 end
    return fge.AcceptNewItem2(color, thickness)
  end
@/lua/ge/extensions/flowgraph/manager.lua

          if ui_flowgraph_editor.AcceptNewItem2(im.ImVec4(0.5, 1, 0.5, 1), 4) then
          fg_utils.showLabel("Replace link")
          if ui_flowgraph_editor.AcceptNewItem2(im.ImVec4(0.5, 1, 0.5, 1), 4) then
            local p1 = self.graph:findPin(ui_flowgraph_editor.PtrToId(startPinId))
          fg_utils.showLabel("+ Create Link", im.ImVec4(0.125, 0.176, 0.125, 0.706))
          if ui_flowgraph_editor.AcceptNewItem2(im.ImVec4(0.5, 1, 0.5, 1), 4) then
            local p1 = self.graph:findPin(ui_flowgraph_editor.PtrToId(startPinId))