Back to Home

ESO Lua File v100035

common/zo_entrydata/zo_gridsquareentrydata_shared.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
ZO_GridSquareEntryData_Shared = ZO_DataSourceObject:Subclass()
function ZO_GridSquareEntryData_Shared:New(...)
    local entryData = ZO_DataSourceObject.New(self)
    entryData:Initialize(...)
    return entryData
end
function ZO_GridSquareEntryData_Shared:Initialize(dataSource)
    self:SetDataSource(dataSource)
end
-- If these are set for one data entry in a list for a given data type, they must be set for all entries in that list for that data type
-- Otherwise they will not be reset when the control gets recycled
function ZO_GridSquareEntryData_Shared:SetIconDesaturation(desaturation)
    self.iconDesaturation = desaturation
end
function ZO_GridSquareEntryData_Shared:SetIconSampleProcessingWeight(type, weight)
    if not self.textureSampleProcessingWeights then
        self.textureSampleProcessingWeights = {}
    end
    self.textureSampleProcessingWeights[type] = weight
end
function ZO_GridSquareEntryData_Shared:SetIconSampleProcessingWeightTable(typeToWeightTable)
    self.textureSampleProcessingWeights = typeToWeightTable
end
function ZO_GridSquareEntryData_Shared:SetIconColor(color)
    self.iconColor = color
end