nanoblox / core

https://nanoblox.github.io/core/
Mozilla Public License 2.0
57 stars 18 forks source link

Add support for icons on the Right Hand Side #12

Closed JohnnyMorganz closed 4 years ago

JohnnyMorganz commented 4 years ago

It would be useful if there were the ability to add Icons on the right hand side of the Topbar (Next to the ... button)

Lucke0051 commented 4 years ago

Indeed +1

1ForeverHD commented 4 years ago

My first thoughts is to introduce two methods: icon:setRight() and icon:setLeft(). When an icon is set-right, it snaps next to the inv/back/emotes toggle (or to its position if that toggle is disabled), and once again the icons with the highest order display furthest right.

JohnnyMorganz commented 4 years ago

I assumed that the Left buttons and the Right Buttons would have seperate display orders, as it would be easier to add buttons to either the left or the right, as they shouldn't necessarily be linked.

With this, the lowest Display Order would be closest to the toggle, and higher display orders push further into the the middle (kind of like right-to-left writing).

1ForeverHD commented 4 years ago

Left and right icon display orders will be independent of each other.

Good call, on second consideration it makes sense to have lowest furthest right (for right-icons) so that sides can be flipped with ease.