GE Lua Documentation

Press F to search!

zoomInOut

Definition


-- @/lua/ge/extensions/freeroam/bigMapMode.lua:976
local function zoomInOut(value, zoomIn)
  if zoomIn then
    zoomInValue = -value
  else
    zoomOutValue = value
  end
  core_camera.cameraZoom(zoomInValue + zoomOutValue)
end

Callers

@/ui/ui-vue/mockdata/inputBindings.js
                "actionMap": "BigMap",
                "onChange": "if freeroam_bigMapMode then freeroam_bigMapMode.zoomInOut(0.5 * VALUE, true) end",
                "title": "bigMap.action.zoomIn.title",
                "actionMap": "BigMap",
                "onChange": "if freeroam_bigMapMode then freeroam_bigMapMode.zoomInOut(0.5 * VALUE, false) end",
                "title": "bigMap.action.zoomOut.title",