View Single Post
02/08/23, 02:59 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
RequestJumpToHouse(GetHousingPrimaryHouse(), false)

true if jump inside

Can be found by inspecting the button at your collections where you can show the menu to jump in/outisde your house e.g. move the mouse above and use /zgoo mouse or merTorchbug /tbm to show the name of the control.
ZO_HousingBook_KeyboardContentsHousingInteractButtonsTravelToHouse
Then search the end of the name "TravelToHouse" in the ESOUI sources and you'll find the ShowMenu (shows the context menu) call in function HousingBook_Keyboard:RequestJumpToCurrentHouse():


Lua Code:
  1. function HousingBook_Keyboard:RequestJumpToCurrentHouse()
  2.     local collectibleData = self.navigationTree:GetSelectedData()
  3.     if collectibleData then
  4.         local houseId = collectibleData:GetReferenceId()
  5.         if collectibleData:IsLocked() then
  6.             -- Preview, behavior will always be inside
  7.             RequestJumpToHouse(houseId)
  8.             SCENE_MANAGER:ShowBaseScene()
  9.         else
  10.             ClearMenu()
  11.  
  12.             AddMenuItem(GetString(SI_HOUSING_BOOK_ACTION_TRAVEL_TO_HOUSE_INSIDE), function()
  13.                 local TRAVEL_INSIDE = false
  14.                 RequestJumpToHouse(houseId, TRAVEL_INSIDE)
  15.                 SCENE_MANAGER:ShowBaseScene()
  16.             end)
  17.             AddMenuItem(GetString(SI_HOUSING_BOOK_ACTION_TRAVEL_TO_HOUSE_OUTSIDE), function()
  18.                 local TRAVEL_OUTSIDE = true
  19.                 RequestJumpToHouse(houseId, TRAVEL_OUTSIDE)
  20.                 SCENE_MANAGER:ShowBaseScene()
  21.             end)
  22.  
  23.             ShowMenu(self.travelToHouseButton)
  24.         end
  25.     end
  26. end
  Reply With Quote