From 23e304c6fc6b08a6ea4bc93c8019eee2a68be67e Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 17 May 2011 22:48:51 +0200 Subject: working on the HUD --- src/wm_hud.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3