summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-05-17 22:48:51 +0200
committerTreeki <treeki@gmail.com>2011-05-17 22:48:51 +0200
commit23e304c6fc6b08a6ea4bc93c8019eee2a68be67e (patch)
tree5205badc3427707ff1e59fd4779bab8d115c44bf /src
parent5495ac81a284b7c9b91f9dbc8452827b32f73212 (diff)
downloadkamek-23e304c6fc6b08a6ea4bc93c8019eee2a68be67e.tar.gz
kamek-23e304c6fc6b08a6ea4bc93c8019eee2a68be67e.zip
working on the HUD
Diffstat (limited to 'src')
-rw-r--r--src/wm_hud.cpp18
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;
}