GE Lua Documentation

Press F to search!

RejectNewItem2

Definition


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

Callers

@/lua/ge/extensions/flowgraph/manager.lua
        if startPin == endPin then
          ui_flowgraph_editor.RejectNewItem2(im.ImVec4(1, 0, 0, 1), 2)
          fg_utils.showLabel("x Cannot connect to the same node!", im.ImVec4(0.176, 0.125, 0.125, 0.706))
          ui_flowgraph_editor.RejectNewItem2(im.ImVec4(1, 0.5, 0.5, 1), 2)
          fg_utils.showLabel("x Cannot connect In- to Out-Pins.", im.ImVec4(0.176, 0.125, 0.125, 0.706))
          ui_flowgraph_editor.RejectNewItem2(im.ImVec4(1, 0, 0, 1), 2)
          end
          ui_flowgraph_editor.RejectNewItem2(im.ImVec4(1, 0.5, 0.5, 1), 2)
          fg_utils.showLabel("x Cannot connect backwards!", im.ImVec4(0.176, 0.125, 0.125, 0.706))
          ui_flowgraph_editor.RejectNewItem2(im.ImVec4(1, 0.5, 0.5, 1), 2)
@/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua
    if thickness == nil then thickness = 1.0 end
    return fge.RejectNewItem2(color, thickness)
  end