Back to Home

ESO Lua File v100018

ingame/housingeditor/keyboard/housingpreview_keyboard.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
local HousingPreviewDialog_Keyboard = ZO_HousingPreviewDialog_Shared:Subclass()
function HousingPreviewDialog_Keyboard:New(...)
    return ZO_HousingPreviewDialog_Shared.New(self, ...)
end
function HousingPreviewDialog_Keyboard:Initialize(control)
    ZO_HousingPreviewDialog_Shared.Initialize(self, control, "HOME_SHOW_VOTE")
    SYSTEMS:RegisterKeyboardObject("HOUSING_PREVIEW", self)
end
function HousingPreviewDialog_Keyboard:InitializeTemplateComboBox()
    local comboBox = ZO_ComboBox:New(self.templateComboBoxControl)
    comboBox:SetSortsItems(false)
    comboBox:SetFont("ZoFontWinT1")
    comboBox:SetSpacing(4)
    self.templateComboBox = comboBox
end
function HousingPreviewDialog_Keyboard:BuyFromMarket(control)
    ZO_HousingPreviewDialog_Shared.BuyFromMarket(self, control)
    -- InternalInGame dialogs don't put huds in UI mode when they're floating, so we'll want to do that here (ESO-499135)
    -- TODO: Come up with a solution that's more robust and system wide
    SCENE_MANAGER:SetInUIMode(true)
end
    HOUSING_PREVIEW_DIALOG_KEYBOARD = HousingPreviewDialog_Keyboard:New(control)
end
    if button == MOUSE_BUTTON_INDEX_LEFT then
        HOUSING_PREVIEW_DIALOG_KEYBOARD:PreviewSelectedTemplate()
    end
end
    if button == MOUSE_BUTTON_INDEX_LEFT then
        HOUSING_PREVIEW_DIALOG_KEYBOARD:BuyForGold(control)
    end
end
    if button == MOUSE_BUTTON_INDEX_LEFT then
        HOUSING_PREVIEW_DIALOG_KEYBOARD:BuyFromMarket(control)
    end
end