From 0bee9e3ae3bd5a9f4a9f0ea8a4d04955a90798fa Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 25 Oct 2012 04:59:11 +0200 Subject: refactoring, API fixes and shop mostly finished --- src/koopatlas/shop.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/koopatlas/shop.h') diff --git a/src/koopatlas/shop.h b/src/koopatlas/shop.h index 719a087..304154a 100644 --- a/src/koopatlas/shop.h +++ b/src/koopatlas/shop.h @@ -2,8 +2,9 @@ #define __KOOPATLAS_SHOP_H #include "koopatlas/core.h" +#include "texmapcolouriser.h" -class dWMShop_c : public dBase_c { +class dWMShop_c : public dActor_c { public: static dWMShop_c *build(); static dWMShop_c *instance; @@ -56,6 +57,11 @@ class dWMShop_c : public dBase_c { *CoinCount, *CoinCountShadow, *BackText, *BuyText; + nw4r::lyt::Picture + *BtnLeft[6], *BtnMid[6], *BtnRight[6]; + + dTexMapColouriser_c leftCol, midCol, rightCol; + class ShopModel_c { public: mHeapAllocator_c allocator; @@ -64,7 +70,7 @@ class dWMShop_c : public dBase_c { m3d::mdl_c model; m3d::anmChr_c animation; - float x, y; + float x, y, scaleFactor; void setupItem(float x, float y, ItemTypes type); void setupLakitu(int id); @@ -78,6 +84,7 @@ class dWMShop_c : public dBase_c { void show(int shopNumber); + void loadInfo(); void loadModels(); void deleteModels(); -- cgit v1.2.3