Skip to content

Releases: eliw00d/ui-control-api

2.0.0

05 Nov 23:36
Compare
Choose a tag to compare
  • Class function completely overhauled. Requires a :constructor method to be defined and instantiating an object uses the :new method. Inheritance uses the :extends method. Calls to a superclass must pass self as an argument. For example:
SomePanel = Class()

local super = SomePanel:extends(Panel)

function SomePanel:constructor()
    super(self)

    self._icon = Icon:new('ModIcons_modId_icons_icon')
end
  • Mutator methods can be chained. For example:
local panel = Panel:new()
    :setLocation(0, 0)
    :setSize(128, 128)

1.0.0

27 Jun 20:25
Compare
Choose a tag to compare

Provides a wrapping API around the UI Control functions that Relic added to Company of Heroes 2.