It's only a new form and a new.PSD file and all it does is come up on screen and that's all. If I do get something running, you'll have it right after that. This is really all I've done:
FPS.LAY added this:
Form FPS_Inventory
{
HorizontalAlignment Center
VerticalAlignment Top
Size 800 600
Enabled 0
FocusedSprite
{
//Crop 358 232 392 266
File Inventory.psd
}
Label CheeseWheel
{
Location 230 530
Font FPSFont
Size 60 20
TextPlain 0
TextHorizontalAlignment Left
}
}
Then, because I'm cheating, I just put this into a dummy object to make sure it can be called:
bool HandleEvent( Object@ object, const String& in event, GameEventParams@ params) //handled per tick if within input box
{
if(params.player != null) //player interaction
{
if(event == "EnterProximity")//handled one time upon entry to input box
{
ShowForm( "FPS_Inventory");
}
if(event == "ExitProximity")//handled one time upon entry to input box
{
HideForm( "FPS_Inventory");
}
return true;
}
return false;
}
Put it anywhere between other forms. The only thing I'm proud of is getting a handle on how to place and size the text fields. Now I can put as many as I like, anywhere I like in the form and it's respective to the top-left 0,0 origin of your image. Let me learn how to show another icon aligned over the top of a static form and I'll put up a tutorial.
Don't be jealous zknack I didn't figure much out at all, you're WAY ahead of me on the HUD, I've seen what you've done.