Skip to content

Commit

Permalink
Merge branch 'development' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
1ForeverHD committed Feb 13, 2021
2 parents 78f8ce7 + 32ed832 commit 49afb85
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Icon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ icon:setName(string)
```
Associates the given name to the icon which enables it to be retrieved with ``IconController.getIcon(name)``.
----
#### setProperty
{chainable}
```lua
icon:setProperty(propertyName, value)
```
An alternative way of doing ``zone[propertyName] = value``. This enables the easy-configuration of icon properties within chained methods.
----
#### select
{chainable}
Expand Down Expand Up @@ -1360,6 +1368,11 @@ function Icon:setName(string)
return self
end

function Icon:setProperty(propertyName, value)
self[propertyName] = value
return self
end

function Icon:_playClickSound()
local clickSound = self.instances.clickSound
if clickSound.SoundId ~= nil and #clickSound.SoundId > 0 and clickSound.Volume > 0 then
Expand Down

0 comments on commit 49afb85

Please sign in to comment.