diff options
Diffstat (limited to 'src')
-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; } |