diff options
author | Treeki <treeki@gmail.com> | 2012-09-27 04:40:34 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-27 04:40:34 +0200 |
commit | 411c5a8e210b5cbca330a5438e2406dbe1ffecab (patch) | |
tree | e3df3b98058dc979b759080504f52cd88e68d2b4 /src/koopatlas/hud.h | |
parent | 014f3668eb47b1576bdc182b1db00417f9938cf1 (diff) | |
download | kamek-411c5a8e210b5cbca330a5438e2406dbe1ffecab.tar.gz kamek-411c5a8e210b5cbca330a5438e2406dbe1ffecab.zip |
made world changes work, and HUD colourising and other fun things
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/hud.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/koopatlas/hud.h b/src/koopatlas/hud.h index deac84f..c0079af 100644 --- a/src/koopatlas/hud.h +++ b/src/koopatlas/hud.h @@ -3,6 +3,23 @@ #include "koopatlas/core.h" +// Colourises an IA8 texture +class dTexMapColouriser_c { + public: + dTexMapColouriser_c(); + ~dTexMapColouriser_c(); + + void resetAndClear(); + void setTexMap(nw4r::lyt::TexMap *tm); + void applyAlso(nw4r::lyt::TexMap *tm); + void colourise(int h, int s, int l); + + private: + nw4r::lyt::TexMap *texmap; + u16 *original; + u16 *mine; +}; + class dWMHud_c : public dBase_c { public: dWMHud_c(); @@ -39,12 +56,14 @@ class dWMHud_c : public dBase_c { void loadFooterInfo(); bool willShowFooter; + dTexMapColouriser_c headerCol, footerCol; + nw4r::lyt::Pane *N_IconPosXP_00[4]; nw4r::lyt::Picture - *Header_Centre, *Header_Right, + *Header_Centre, *Header_Right, *Footer, *NormalExitFlag, *SecretExitFlag, *StarCoinOn[3], *P_marioFace_00, *P_luigiFace_00, |