I'm new to A6, and have been messing around quite a bit with the 2D/Panel portions for an advanced HUD layout ...
I've managed to figure out how to update the BMAP for a Panel on-the-fly, but am failing to find a way to update the BMAP's for a button definition dynamically.
Basically, what I want to do is have a series of panels on the screen, and each of them will contain a different button ... the button however, is dynamic and can change at any given time ... the number of buttons is extremely high and I'd really rather not create ButtonPanel1, ButtonPanel2, ..., ButtonPanel346 ....
What I was hoping to be able to do was:
Code:
PANEL ButonPanel1
{
bmap button_frame;
pos_x = 0;
pos_y = 0;
}
function showButton()
{
// some logic here for determing what graphics to display
ButtonPanel1.Button = 0, 0, on, off, over, fon, foff, fover;
ButtonPanel1.visible = on;
}
However, Panels can apparently have numerous buttons ... and the .Button property does not exist ... there also appears to be no way to reference a button through code ...
any suggestions ... work arounds ... or possibly a doc page that has info related to what I'm trying to do ... ?
Thanks,