PDA

View Full Version : Z-Order User Interface



Gamerkd16
February 7th, 2008, 01:01 AM
I am making a custom UI and I have added another widget, which will hold an additional bitmap, to the main_menu.ui_widget_definition under the Halo Logo widget. The problem is the bitmap appears over everything including the option list. How can I assign Z-Order so that is in the background?

EDIT: Some new information. I have discovered that I can change the Z-Order by changing the order of the child widgets. I tested this out by changing the bitmap assigned to the Halo_Logo and saw it was behind the option list. When I tried inserting another child in between the logo and the option list it gave me an exception error when I tried loading Halo. Am I not supposed to mess with the order of the children? Is there a way to make this possible?

Timo
February 7th, 2008, 02:40 AM
You should be able to add a child widget to the bottom of main_menu_select_list and have it below the halo logo.

Gamerkd16
February 7th, 2008, 04:00 AM
Actually no. That gives me an exception error. However, your post sparked an idea and I decided to add children to the halo_logo.ui_widget_definition. It works perfectly. Once again, thanks Timo.

Timo
February 7th, 2008, 04:07 AM
It's weird that it gives you an exception error - I was able to add stuff to the select list as I pleased :|

It could've exceptioned because the widget's bounds you were adding were bigger than the bounds of the select list, i'm not sure. Oh well, guess it doesn't matter.

Gamerkd16
February 9th, 2008, 06:06 PM
Another UI question.

Where do I add the music sound tags? In what tag does it give me that option? I've searched everywhere...

EDIT: Scratch that. I got it working but now my music is insanely sped up. There a reason for this?

p0lar_bear
February 11th, 2008, 04:26 AM
You probably compiled a 22KHz wave as OGG.

OGG is 44KHz only; resample your source sound.

Gamerkd16
February 11th, 2008, 01:04 PM
You probably compiled a 22KHz wave as OGG.

OGG is 44KHz only; resample your source sound.
Ok, I am really getting sick of this. I have tried multiple combinations and still got numerous error messages:
Couldn't read file music
file_read('data\ui\ui-h3\music\music.wav') error 0x000003e6 'Invalid access to memory location. '

Could someone please give me a mini-tutorial on how to get music from an mp3 state to a halo sound tag.

What do I save the sound as exactly for filetype, Stereo or Mono, the rate, sample format?
What commands do I type into tool?

Thanks.

p0lar_bear
February 11th, 2008, 01:08 PM
Make sure you close the file in your audio editor before you compile?

Gamerkd16
February 11th, 2008, 02:18 PM
Nope. Not it. Something else I didn't take into consideration. Could the song be too long?

It is 4:52 minutes.

EDIT: Ah, it was length. A three minute song works just fine.
Thanks for the attempted help. I'm sure I'll post again when I hit another bump in the road.