GE Lua Documentation

Press F to search!

onChangeUiFilter

Definition


-- @/lua/ge/extensions/freeroam/bigMapMode.lua:1446
local function onChangeUiFilter(value, dir)
  if not changeUiFilterPressed[dir] and value > 0.65 then
    changeUiFilterPressed[dir] = true
    guihooks.trigger("onChangeBigmapFilterIndex", {change = dir})
  end

  if changeUiFilterPressed[dir] and value < 0.35 then
    changeUiFilterPressed[dir] = nil
  end
end

Callers

@/ui/ui-vue/mockdata/inputBindings.js
                "actionMap": "BigMap",
                "onChange": "if freeroam_bigMapMode then freeroam_bigMapMode.onChangeUiFilter(VALUE, 1) end",
                "title": "bigMap.action.nextFilter.title",
                "actionMap": "BigMap",
                "onChange": "if freeroam_bigMapMode then freeroam_bigMapMode.onChangeUiFilter(VALUE, -1) end",
                "title": "bigMap.action.previousFilter.title",