Back to Home
ESO Function Data v101044
AddFurnitureListKeybind()
Function Aliases
- No known aliases for this function.
Global Function Definitions
Local Function Definitions
- No known local definitions for this function.
Function Calls
- ingame/housingeditor/gamepad/housingfurnitureplacement_gamepad.lua:20 -- self:AddFurnitureListKeybind(
-- Primary
{
name = GetString(SI_HOUSING_EDITOR_PLACE),
keybind = "UI_SHORTCUT_PRIMARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData then
local furnitureObject = targetData.furnitureObject
ZO_HousingFurnitureBrowser_Base.SelectFurnitureForPlacement(furnitureObject)
SCENE_MANAGER:HideCurrentScene()
end
end,
}
)
- ingame/housingeditor/gamepad/housingfurnitureproducts_gamepad.lua:21 -- self:AddFurnitureListKeybind(
{
name = GetString(SI_HOUSING_FURNITURE_BROWSER_PURCHASE_KEYBIND),
keybind = "UI_SHORTCUT_PRIMARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData then
local furnitureObject = targetData.furnitureObject
local IS_PURCHASE = false
RequestPurchaseMarketProduct(furnitureObject.marketProductId, furnitureObject.presentationIndex, IS_PURCHASE)
end
end,
enabled = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData == nil then
return false
else
local furnitureObject = targetData.furnitureObject
if not furnitureObject:CanBePurchased() then
local expectedPurchaseResult = CouldPurchaseMarketProduct(furnitureObject.marketProductId, furnitureObject.presentationIndex)
return false, GetString("SI_MARKETPURCHASABLERESULT", expectedPurchaseResult)
end
end
return true
end,
}
)
- ingame/housingeditor/gamepad/housingfurnitureproducts_gamepad.lua:51 -- self:AddFurnitureListKeybind(
{
name = GetString(SI_HOUSING_EDITOR_PREVIEW_PLACEMENT),
keybind = "UI_SHORTCUT_QUINARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData then
local furnitureObject = targetData.furnitureObject
self:PreviewMarketProductPlacement(furnitureObject)
end
end,
visible = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData then
local furnitureObject = targetData.furnitureObject
return furnitureObject:CanPreviewPlacement()
end
return false
end,
}
)
- ingame/housingeditor/gamepad/housingfurnitureproducts_gamepad.lua:74 -- self:AddFurnitureListKeybind(
{
name = GetString(SI_HOUSING_FURNITURE_BROWSER_GIFT_KEYBIND),
keybind = "UI_SHORTCUT_RIGHT_STICK",
visible = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData then
local furnitureObject = targetData.furnitureObject
return IsMarketProductGiftable(furnitureObject.marketProductId, furnitureObject.presentationIndex)
end
return false
end,
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData then
local furnitureObject = targetData.furnitureObject
local IS_GIFT = true
RequestPurchaseMarketProduct(furnitureObject.marketProductId, furnitureObject.presentationIndex, IS_GIFT)
end
end,
}
)
- ingame/housingeditor/gamepad/housingfurnitureproducts_gamepad.lua:99 -- self:AddFurnitureListKeybind(buyCrownsKeybind)
- ingame/housingeditor/gamepad/housingfurnitureretrieval_gamepad.lua:20 -- self:AddFurnitureListKeybind({
order = 0,
name = GetString(SI_HOUSING_EDITOR_MODIFY),
keybind = "UI_SHORTCUT_PRIMARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData.furnitureObject:GetDataType() == ZO_HOUSING_PATH_NODE_DATA_TYPE then
ZO_HousingFurnitureBrowser_Base.SelectNodeForReplacement(targetData.furnitureObject)
else
ZO_HousingFurnitureBrowser_Base.SelectFurnitureForReplacement(targetData.furnitureObject)
end
SCENE_MANAGER:HideCurrentScene()
end,
visible = function()
local targetData = self.furnitureList.list:GetTargetData()
if not targetData then
return false
end
return HOUSING_EDITOR_STATE:CanLocalPlayerEditHouse()
end,
})
- ingame/housingeditor/gamepad/housingfurnitureretrieval_gamepad.lua:42 -- self:AddFurnitureListKeybind({
order = 1,
name = GetString(SI_HOUSING_EDITOR_PRECISION_EDIT),
keybind = "UI_SHORTCUT_QUINARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData.furnitureObject:GetDataType() == ZO_HOUSING_PATH_NODE_DATA_TYPE then
ZO_HousingFurnitureBrowser_Base.SelectNodeForPrecisionEdit(targetData.furnitureObject)
else
ZO_HousingFurnitureBrowser_Base.SelectFurnitureForPrecisionEdit(targetData.furnitureObject)
end
SCENE_MANAGER:HideCurrentScene()
end,
visible = function()
local targetData = self.furnitureList.list:GetTargetData()
if not targetData then
return false
end
return HOUSING_EDITOR_STATE:CanLocalPlayerEditHouse()
end,
})
- ingame/housingeditor/gamepad/housingfurnitureretrieval_gamepad.lua:64 -- self:AddFurnitureListKeybind({
order = 4,
name = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData.furnitureObject:GetDataType() == ZO_HOUSING_PATH_NODE_DATA_TYPE then
return GetString(SI_HOUSING_EDITOR_PATH_REMOVE_NODE)
else
return GetString(SI_HOUSING_EDITOR_PUT_AWAY)
end
end,
keybind = "UI_SHORTCUT_SECONDARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
if targetData.furnitureObject:GetDataType() == ZO_RECALLABLE_HOUSING_DATA_TYPE then
ZO_HousingFurnitureBrowser_Base.PutAwayFurniture(targetData.furnitureObject)
else
ZO_HousingFurnitureBrowser_Base.PutAwayNode(targetData.furnitureObject)
end
end,
visible = function()
local targetData = self.furnitureList.list:GetTargetData()
if not targetData then
return false
end
if targetData.furnitureObject:GetDataType() == ZO_HOUSING_PATH_NODE_DATA_TYPE then
return HOUSING_EDITOR_STATE:CanLocalPlayerEditHouse()
else
return HOUSING_EDITOR_STATE:IsLocalPlayerHouseOwner()
end
end,
})
- ingame/housingeditor/gamepad/housingfurnitureretrieval_gamepad.lua:96 -- self:AddFurnitureListKeybind({
order = 6,
name = GetString(SI_WORLD_MAP_ACTION_SET_PLAYER_WAYPOINT),
keybind = "UI_SHORTCUT_RIGHT_STICK",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
SHARED_FURNITURE:SetPlayerWaypointTo(targetData.furnitureObject)
end,
enabled = function()
local targetData = self.furnitureList.list:GetTargetData()
if not targetData then
return false
end
local dataType = targetData.furnitureObject:GetDataType()
return dataType == ZO_RECALLABLE_HOUSING_DATA_TYPE or dataType == ZO_HOUSING_PATH_NODE_DATA_TYPE
end,
})
- ingame/housingeditor/gamepad/housingfurnitureretrieval_gamepad.lua:114 -- self:AddFurnitureListKeybind({
order = 5,
name = GetString(SI_HOUSING_FURNITURE_SET_STARTING_NODE),
keybind = "UI_SHORTCUT_QUATERNARY",
callback = function()
local targetData = self.furnitureList.list:GetTargetData()
ZO_HousingFurnitureBrowser_Base.SetAsStartingNode(targetData.furnitureObject)
end,
visible = function()
local targetData = self.furnitureList.list:GetTargetData()
return targetData and targetData.furnitureObject:GetDataType() == ZO_HOUSING_PATH_NODE_DATA_TYPE and not targetData.furnitureObject:IsStartingPathNode() and HOUSING_EDITOR_STATE:CanLocalPlayerEditHouse()
end,
})