Back to Home

ESO Lua File v101041

ingame/housingeditor/gamepad/houseinformation_gamepad.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ZO_HouseInformation_Gamepad = ZO_HouseInformation_Shared:Subclass()
local CHILD_VERTICAL_PADDING = 15
local SECTION_VERTICAL_PADDING = 70
function ZO_HouseInformation_Gamepad:Initialize(control)
    HOUSE_INFORMATION_FRAGMENT_GAMEPAD = ZO_FadeSceneFragment:New(control)
    
    ZO_HouseInformation_Shared.Initialize(self, control:GetNamedChild("Container"), HOUSE_INFORMATION_FRAGMENT_GAMEPAD, "ZO_HousingFurnitureBrowser_Gamepad_Row", CHILD_VERTICAL_PADDING, SECTION_VERTICAL_PADDING)
end
function ZO_HouseInformation_Gamepad:GetNarrationForRow(rowControl)
    local narrations = {}
    if not rowControl:IsHidden() then
        ZO_AppendNarration(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(rowControl.nameText))
        ZO_AppendNarration(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(rowControl.valueText))
    end
    return narrations
end
function ZO_HouseInformation_Gamepad:GetNarrationText()
    local narrations = {}
    --Get the title narration
    ZO_AppendNarration(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(GetString(SI_HOUSE_INFORMATION_TITLE)))
    --Get the narration for the name row
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.nameRow))
    --Get the narration for the location row
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.locationRow))
    --Get the narration for the owner row
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.ownerRow))
    --Get the narration for the limit rows
    for i = HOUSING_FURNISHING_LIMIT_TYPE_ITERATION_BEGIN, HOUSING_FURNISHING_LIMIT_TYPE_ITERATION_END do
        ZO_AppendNarration(narrations, self:GetNarrationForRow(self.limitRows[i]))
    end
    --Get the narration for the primary residence
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.primaryResidenceRow))
    --Get the narration for the population count
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.currentVisitorsRow))
    if not self.overPopulationWarningLabel:IsHidden() then
        ZO_AppendNarration(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(GetString(SI_HOUSING_CURRENT_RESIDENTS_OVER_POPULATION_TEXT)))
    end
    --Get the narration for the permissions rows
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.individualPermissionsRow))
    ZO_AppendNarration(narrations, self:GetNarrationForRow(self.guildPermissionsRow))
    return narrations
end
    HOUSE_INFORMATION_GAMEPAD = ZO_HouseInformation_Gamepad:New(control)
end