v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
29
source/windowing/StarGuiTypes.cpp
Normal file
29
source/windowing/StarGuiTypes.cpp
Normal 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());
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue