GE Lua Documentation

Press F to search!

AcceptNewItem2

Definition


-- @/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua:186
  M.AcceptNewItem2 = function(color, thickness)
    if thickness == nil then thickness = 1.0 end
    return fge.AcceptNewItem2(color, thickness)
  end

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))