Page 1 of 1
Posted: Tue Dec 14, 2010 8:16 pm
by Bunnywabbit
hi all,
I'm nearing completion of GlassHUD,
read all about it here.
Only recently i noticed that there is a new way to switch huds in Alleg, which is great, but how do i supply a hud for that?
What names should i give my files and variables? Are there standards or best practices? How does that work?
thanks!
Posted: Tue Dec 14, 2010 10:32 pm
by Andon
Since you're familiar with dialog.mdl, I'll assume you've seen how the software and hardware huds are switched.
Simply adding another number, along with the hud, to dialog.mdl will make it work with this switch.
It's currently like this for default:
Code: Select all
CenterHudDisplay =
SwitchImage(
StyleHUD,
emptyImage,
[
(0, CenterHudOn)
]
);
softCenterHudDisplay =
SwitchImage(
StyleHUD,
emptyImage,
[
(1, CenterHudSoftware)
]
);
Simply add something like this below it, and then add your own HUD stuff as needed:
Code: Select all
GlassHudDisplay =
SwitchImage(
StyleHUD,
emptyImage,
[
(2, CenterHudOn)
]
);
Posted: Wed Dec 15, 2010 12:33 am
by Clay_Pigeon
This just may be awesome enough to migrate me away from lessHUD
Posted: Wed Dec 15, 2010 8:58 am
by Bunnywabbit
@ andon, great, that's what i was looking for. thanks !
@ Clay:

that's high praise indeed. I was using lessHud myself when i decided to make this. It's a great hud, but I feel it doesn't immerse you in the game as much as I would have liked it to. It's very pretty and very subtle, but I felt that Allegiance needed a bit more pathos.