GE Lua Documentation

Press F to search!

RejectNewItem2

Definition


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

Callers

@/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua
    if thickness == nil then thickness = 1.0 end
    return fge.RejectNewItem2(color, thickness)
  end
@/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)