Cleanup of GUECS and the textures manager.
This commit is contained in:
parent
438bd8ab8a
commit
4e7f837240
4 changed files with 31 additions and 28 deletions
|
@ -52,7 +52,6 @@ namespace guecs {
|
|||
string name;
|
||||
int padding = GUECS_PADDING;
|
||||
std::shared_ptr<sf::Sprite> sprite = nullptr;
|
||||
std::shared_ptr<sf::Texture> texture = nullptr;
|
||||
|
||||
void init(lel::Cell &cell);
|
||||
void update(const string& new_name);
|
||||
|
@ -70,9 +69,11 @@ namespace guecs {
|
|||
|
||||
struct Meter {
|
||||
float percent = 1.0f;
|
||||
sf::Color color = ColorValue::BLACK;
|
||||
Rectangle bar;
|
||||
|
||||
void init(lel::Cell& cell);
|
||||
void render(lel::Cell& cell);
|
||||
};
|
||||
|
||||
struct ActionData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue