diff options
author | Treeki <treeki@gmail.com> | 2011-05-17 22:48:51 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-05-17 22:48:51 +0200 |
commit | 23e304c6fc6b08a6ea4bc93c8019eee2a68be67e (patch) | |
tree | 5205badc3427707ff1e59fd4779bab8d115c44bf /src/wm_hud.cpp | |
parent | 5495ac81a284b7c9b91f9dbc8452827b32f73212 (diff) | |
download | kamek-23e304c6fc6b08a6ea4bc93c8019eee2a68be67e.tar.gz kamek-23e304c6fc6b08a6ea4bc93c8019eee2a68be67e.zip |
working on the HUD
Diffstat (limited to 'src/wm_hud.cpp')
-rw-r--r-- | src/wm_hud.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/wm_hud.cpp b/src/wm_hud.cpp index 62ebb99..46efd54 100644 --- a/src/wm_hud.cpp +++ b/src/wm_hud.cpp @@ -27,9 +27,21 @@ int dWMHud_c::onCreate() { if (!gotFile) return false; - layout.build("banner.brlyt"); - - layout.findTextBoxByName("T_area_01")->AllocStringBuffer(100); + static const char *brlanNames[3] = {"maphud_hitbutton.brlan", "maphud_in.brlan", "maphud_out.brlan"}; + static const char *groupNames[4] = {"B01_Button", "B02_Button", "A00_Window", "A00_Window"}; + + OSReport("Going to build\n"); + bool output = layout.build("maphud.brlyt"); + OSReport("Returned %d\n", output); + layout.loadAnimations(brlanNames, 3); + OSReport("Animations loaded\n"); + layout.loadGroups(groupNames, (int[4]){0, 0, 1, 2}, 4); + OSReport("Groups loaded\n"); + layout.disableAllAnimations(); + OSReport("Animations disabled\n"); + layout.enableNonLoopAnim(2); + + //layout.findTextBoxByName("T_area_01")->AllocStringBuffer(100); layoutLoaded = true; } |