refactor InventoryView & add 'uses' item property (WIP)

This commit is contained in:
MihailRis
2025-02-16 20:41:13 +03:00
parent a118016c8f
commit 231fc7e0d0
5 changed files with 152 additions and 73 deletions
+7 -2
View File
@@ -48,10 +48,15 @@ public:
void sprite(float x, float y, float w, float h, float skew, int atlasRes, int index, glm::vec4 tint);
void point(float x, float y, float r, float g, float b, float a);
inline void setColor(glm::vec4 color) {
void setColor(glm::vec4 color) {
this->color = color;
}
inline glm::vec4 getColor() const {
void resetColor() {
this->color = glm::vec4(1.0f);
}
glm::vec4 getColor() const {
return color;
}