GE Lua Documentation

Press F to search!

PushStyleColor

Definition


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

Callers

@/lua/ge/extensions/flowgraph/nodes/debug/comment.lua
  im.PushStyleVar1(im.StyleVar_Alpha, self.alpha[0])
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, self.bgColorVec4)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, self.borderColorVec4)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, self.bgColorVec4)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, self.borderColorVec4)
@/lua/ge/extensions/editor/flowgraph/main.lua
          if gridColor then
            ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_Grid, gridColor)
          end
@/lua/ge/extensions/flowgraph/builder.lua
  self.headerTexture = imu.texObj('art/imgui_node_header_alt.png')
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, im.ImVec4(0, 0, 0, 0.2))
@/lua/ge/extensions/flowgraph/basenode.lua
    -- this node has errors
    ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, im.ImVec4(1, 0, 0, 0.5))
    ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, im.ImVec4(0.5, 0, 0, 0))
    ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, im.ImVec4(1, 0, 0, 0.5))
    ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, im.ImVec4(0.5, 0, 0, 0))
  else
    if triggered then
      ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, im.ImVec4(1, 0.5, 0, 1))
    end
  bgClr = im.ImVec4(bgOff+bgClr.x*bgStrength,bgOff+ bgClr.y*bgStrength, bgOff+bgClr.z*bgStrength, 0.95)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, bgClr)
  builder:Begin(self.id)
@/lua/ge/extensions/flowgraph/pin.lua
  if constValue ~= nil then
    ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_PinRect, im.ImVec4(0, 0.7, 0, 0.5))
    --ui_flowgraph_editor.PushStyleVar1(ui_flowgraph_editor.StyleVar_PinCorners, 8)
@/lua/ge/extensions/editor/missionPlaybook/missionTreeViewer.lua
  local str = 0.2
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, im.ImVec4(clr.x*str, clr.y*str, clr.z*str, 0.95))
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, clr)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, im.ImVec4(clr.x*str, clr.y*str, clr.z*str, 0.95))
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBorder, clr)
@/lua/ge/extensions/flowgraph/link.lua

  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_Flow, self.color)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_FlowMarker, markerColor)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_Flow, self.color)
  ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_FlowMarker, markerColor)