From 1e2fe2181af8215e6da3f55d0350385d0af2f7e0 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 17 Jan 2013 09:23:55 +0100 Subject: myriad updates and fixes to EVERYTHING --- include/game.h | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'include') diff --git a/include/game.h b/include/game.h index 3a24aba..2a30ee7 100755 --- a/include/game.h +++ b/include/game.h @@ -3588,5 +3588,77 @@ namespace nw4r { extern float EnemyBounceValue; +class dStockItemShadow_c : public dBase_c { + public: + m2d::EmbedLayout_c layout; + + nw4r::lyt::Pane *rootPane; + nw4r::lyt::TextBox *textBoxes[14]; + nw4r::lyt::Picture *buttonBases[7]; + bool layoutLoaded, visible, needsUpdate; + int values[8]; + nw4r::lyt::TextBox *hammerValue, *hammerX; + nw4r::lyt::Picture *hammerButtonBase; +}; + +class dStockItem_c : public dBase_c { + public: + int onCreate(); + int onDelete(); + int beforeExecute(); + int onExecute(); + int onDraw(); + + dStockItem_c(); + ~dStockItem_c(); + + + u32 _70; + m2d::EmbedLayout_c layout; + dStateWrapper_c state; + + nw4r::lyt::Pane + *rootPane, + *N_forUse_PPos[4], + *N_icon[7], + *N_stockItem, *N_stockItem_01, + *N_itemSelect_00; + + nw4r::lyt::Picture + *P_icon[7], + *P_buttonBase[7], + *P_iconBase[10]; + + /*da2DPlayer_c*/void *player2d[4]; + /*daWMItem_c*/void *itemPtr[7]; + dStockItemShadow_c *shadow; + int actionTaken; + u32 _318, _31C, _320, _324; + int usedItem; + EGG::Effect effectArray[4], oneEffect; + int effectIDs[4]; + int selectedItem, previousItem; + u32 _8A8, _8AC; + int playerCount, counts[7]; + u32 _8D0; + int someAnimID; + bool isPlayerActive[4], layoutLoaded, show, _8DE; + + /*daWMItem_c*/void *newItemPtr[8]; + int newCounts[8]; + nw4r::lyt::Picture *newButtonBase[8]; + nw4r::lyt::Pane *newIconPanes[8]; + nw4r::lyt::Picture *newIconPictures[8]; + + void setScalesOfSomeThings(); + int getIconPictureIDforPlayer(int i); +}; + + +// Some ugly code +extern void *SelectCursorPointer; +extern "C" void UpdateSelectCursor(nw4r::lyt::Pane *pane, int whichOne, bool unkBool); +extern "C" void HideSelectCursor(void *scPtr, int whichOne); + #endif -- cgit v1.2.3