Originally Posted by
sir
Had some other stuff to work on lately, got back to this few days ago.
Updated with v 0.2, see changelog below:
Changelog ►clandatamanager.lua
- Added clan list view
- Press and drag topbar to move window
- getClanData() now returns a table with loaded clanids (active clans only)
- Some fixes for showClan()
- drawVisuals() now updates position for all visible elements
uielement.lua
- show() - check if already shown
- handleMouseUp() - hover state nil
- handleMouseHover() - fix to avoid losing hover while mouse down
- moveTo() - fix to work with child items
- Added addScrollFor() to create a scrollable list (requires a scrollbar, works with both mouse scroll and scrollbar dragging)
- Added misc methods used by addScrollFor() - getEnabled(), mouseScroll(), barScroll(), scrollElements()
- Added getPos() and getLocalPos()
- create() now checks whether bgImage exists first before loading
errors.lua
- removed console hook for now
Steam client should download clan/level/achievement info to data/script/clans but grezet messed memberinfo up so it's not accurate for now. Will fix in coming days.
Not updating source/attachments for now, you can download a new version from github.
When trying to do /ls clans.lua in game it gives me an error do i need to do /ls clans.lua <username> or should it work as-is?