| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include <UIMLView.h>
- #include "RecipieGroup.h"
- class CraftingRecipiesElement : public Framework::UIMLElement
- {
- public:
- CraftingRecipiesElement();
- //! prüft, ob dieses UIML Element für ein bestimmtes xml Element zuständig
- //! ist
- bool isApplicableFor(Framework::XML::Element& element) override;
- //! erstellt eine neue Drawable zu einem gegebenen xml Element
- Framework::Drawable* parseElement(Framework::XML::Element& element,
- Framework::UIMLContainer& generalFactory) override;
- bool updateElement(Framework::XML::Element& element,
- Framework::Drawable& z,
- Framework::UIMLContainer& generalFactory) override;
- //! wendet die layout parameter zu einer Drawable an
- void layout(Framework::XML::Element& element,
- Framework::Drawable& z,
- int pWidth,
- int pHeight,
- Framework::UIMLContainer& generalLayouter) override;
- };
- class CraftingRecipies : public Framework::DrawableBackground
- {
- private:
- Framework::RCArray<RecipieGroup> recipieGroups;
- Framework::Button* previousPage;
- Framework::Button* nextPage;
- public:
- CraftingRecipies();
- void addRecipieGroup(RecipieGroup* recipieGroup);
- bool tick(double tickVal) override;
- void render(Framework::Image& rObj) override;
- void doMouseEvent(Framework::MouseEvent& me, bool userRet) override;
- };
|