| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include "UIElement.h"
- class UIReference;
- class UIFuelState : public UIElement
- {
- private:
- UIReference* reference;
- Framework::Text backgroundImagePath;
- Framework::Text foregroundImagePath;
- Framework::Text direction;
- public:
- UIFuelState();
- ~UIFuelState();
- void setReference(UIReference* reference);
- UIReference* zReference() const;
- void setBackgroundImagePath(const Framework::Text& backgroundImagePath);
- const Framework::Text& getBackgroundImagePath() const;
- void setForegroundImagePath(const Framework::Text& foregroundImagePath);
- const Framework::Text& getForegroundImagePath() const;
- void setDirection(const Framework::Text& direction);
- const Framework::Text& getDirection() const;
- virtual Framework::XML::Element* toUIML(
- Framework::Either<Block*, Entity*> zTarget,
- Entity* zActor) const override;
- };
- class UIFuelStateFactory : public UIElementFactory<UIFuelState>
- {
- public:
- UIFuelStateFactory();
- JSONObjectValidationBuilder* addToValidator(
- JSONObjectValidationBuilder* builder) const override;
- UIFuelState* fromJson(Framework::JSON::JSONObject* zJson) const override;
- Framework::JSON::JSONObject* toJsonObject(
- UIFuelState* zObject) const override;
- UIFuelState* createElement(
- Framework::JSON::JSONObject* zJson) const override;
- const char* getTypeToken() const override;
- };
|