GE Lua Documentation

Press F to search!

openHistoryScreen

Definition


-- @/lua/ge/extensions/gameplay/drag/dragBridge.lua:393

M.openHistoryScreen = function(facility)
  local dragPos = freeroam_facilities.getClosestDoorPositionForFacility(facility)
  if career_career.isActive() and dragPos then
    tether = career_modules_tether.startSphereTether(dragPos, dragTetherRange, M.closeMenu)
  end
  guihooks.trigger('ChangeState', {state = 'dragHistory', params = {id = facility.id, name = facility.name, level = facility.level}})
end

Callers

@/lua/ge/extensions/freeroam/facilities.lua
        data.buttonFun = function()
          gameplay_drag_dragBridge.openHistoryScreen(elem.facility)
        end