GE Lua Documentation

Press F to search!

RadioButton1

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:361
function M.RadioButton1(string_label, bool_active)
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'RadioButton1' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.RadioButton1(string_label, bool_active)
end

Callers

@/lua/ge/extensions/editor/materialEditor.lua
  layer = layer or o.layer[0]
  if im.RadioButton1(labelValue .. "##" .. label .. tostring(layer), (currentMaterial:getField(property, layer) == value)) then
    setPropertyWithUndo(property, layer, value)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'RadioButton1' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.RadioButton1(string_label, bool_active)
end
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
  if im.BeginMenu('View##VDV_'..tostring(view.name)) then
    if im.RadioButton1('Left##VDV_'..tostring(view.name), view.typeName == 'Left') then
      tableMerge(view, viewTemplates.left)
    end
    if im.RadioButton1('Right##VDV_'..tostring(view.name), view.typeName == 'Right') then
      tableMerge(view, viewTemplates.right)
    end
    if im.RadioButton1('Top##VDV_'..tostring(view.name), view.typeName == 'Top') then
      tableMerge(view, viewTemplates.top)
    end
    if im.RadioButton1('Bottom##VDV_'..tostring(view.name), view.typeName == 'Bottom') then
      tableMerge(view, viewTemplates.bottom)
    end
    if im.RadioButton1('Front##VDV_'..tostring(view.name), view.typeName == 'Front') then
      tableMerge(view, viewTemplates.front)
    end
    if im.RadioButton1('Back##VDV_'..tostring(view.name), view.typeName == 'Back') then
      tableMerge(view, viewTemplates.back)