Back to Home

ESO Lua File v100035

ingame/dyeing/dyeingtoolsetfill.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
ZO_DyeingToolSetFill = ZO_DyeingToolBase:Subclass()
function ZO_DyeingToolSetFill:New(...)
    return ZO_DyeingToolBase.New(self, ...)
end
function ZO_DyeingToolSetFill:Initialize(owner)
   ZO_DyeingToolBase.Initialize(self, owner)
end
function ZO_DyeingToolSetFill:Activate(fromTool, suppressSounds)
    if fromTool and not suppressSounds then
        PlaySound(SOUNDS.DYEING_TOOL_SET_FILL_SELECTED)
    end
end
function ZO_DyeingToolSetFill:HasSwatchSelection()
    return false
end
function ZO_DyeingToolSetFill:HasSavedSetSelection()
    return true
end
function ZO_DyeingToolSetFill:GetHighlightRules(dyeableSlot, dyeChannel)
    return dyeableSlot, nil
end
function ZO_DyeingToolSetFill:OnLeftClicked(restyleSlotData, dyeChannel)
    self.owner:OnPendingDyesChanged(restyleSlotData)
    PlaySound(SOUNDS.DYEING_TOOL_SET_FILL_USED)
end
function ZO_DyeingToolSetFill:OnSavedSetLeftClicked(dyeSetIndex, dyeChannel)
    self.owner:SetSelectedSavedSetIndex(dyeSetIndex)
end
function ZO_DyeingToolSetFill:GetCursorType()
    return MOUSE_CURSOR_FILL_MULTIPLE
end
function ZO_DyeingToolSetFill:GetToolActionString()
    return SI_DYEING_TOOL_SET_FILL
end