function slot1tog1()
{
if(slot1 > 0 && obj_mouse == 0)
{
obj_mouse = slot1;
slot1 = 0;
}
}
function slot1tog2()
{
if(slot1 == 0)
{
slot1 = obj_mouse;
obj_mouse = 0;
}
}
function slot1tog3()
{
if(slot1 > 0 && obj_mouse > 0)
{
obj_mouse_sav = slot1;
slot1 = obj_mouse;
obj_mouse = obj_mouse_sav;
}
}
PANEL* BOTTOM_SLOT1_on =
{
pos_x = 550; pos_y = 200;
button(0,0,SLOT_OVER,SLOT_ON,SLOT_OVER,slot1tog1,slotname_re,slot1name);
flags = SHOW;
layer = 2;
}
PANEL* BOTTOM_SLOT1_off =
{
pos_x = 550; pos_y = 200;
button(0,0,SLOT_OVER,SLOT_ON,SLOT_OVER,slot1tog2,slotname_re,slot1name);
flags = SHOW;
layer = 2;
}
PANEL* BOTTOM_SLOT1_obj_m =
{
pos_x = 550; pos_y = 200;
button(0,0,SLOT_OVER,SLOT_ON,SLOT_OVER,slot1tog3,slotname_re,slot1name);
flags = SHOW;
layer = 2;
}