ItemList.h 688 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <Bild.h>
  3. #include <Fenster.h>
  4. class ItemList : public Framework::ZeichnungHintergrund
  5. {
  6. private:
  7. Framework::Punkt mausPos;
  8. int currentTooltipSlot;
  9. int* slotList;
  10. int slotCount;
  11. int getSlotByLocalPos(Framework::Punkt pos);
  12. void doMausEreignis(Framework::MausEreignis& me, bool userRet) override;
  13. public:
  14. ItemList();
  15. ~ItemList();
  16. bool tick(double time) override;
  17. void adjustSize(int parentWidth, int parentHeight);
  18. void render(Framework::Bild& rObj) override;
  19. };
  20. class ItemListContainer : public Framework::Fenster
  21. {
  22. private:
  23. ItemList* list;
  24. public:
  25. ItemListContainer();
  26. bool tick(double time) override;
  27. };