This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#include "StarGuiTypes.hpp"
namespace Star {
bool ImageStretchSet::fullyPopulated() const {
return inner.size() && begin.size() && end.size();
}
GuiDirection otherDirection(GuiDirection direction) {
switch (direction) {
case GuiDirection::Horizontal:
return GuiDirection::Vertical;
case GuiDirection::Vertical:
return GuiDirection::Horizontal;
default:
starAssert(false);
return (GuiDirection)-1;
}
}
EnumMap<GuiDirection> const GuiDirectionNames{
{GuiDirection::Horizontal, "horizontal"}, {GuiDirection::Vertical, "vertical"},
};
String rarityBorder(Rarity rarity) {
return strf("/interface/inventory/itemborder%s.png", RarityNames.getRight(rarity).toLower());
}
}