5 registered members (AndrewAMD, ozgur, Ayumi, 2 invisible),
690
guests, and 10
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: button problem!!!
[Re: Silent_Assassin]
#88314
08/31/06 15:40
08/31/06 15:40
|
Joined: Sep 2003
Posts: 4,959 US
Grimber
Expert
|
Expert
Joined: Sep 2003
Posts: 4,959
US
|
reading your script, I'm assuming you want the 'sitbutton' image to be replaced by the 'sleepbutton' image.
the problem is, no place in your script at all does anything to replace the 'sitbutton' image
all you have is some image defines, panel defines ( one with a button define ), video settings and a MAIN fucntion that loads the level contestentry_wmb, sets framerate to 40 max, nulls out on_d, and sets poly clip_size to 0
so, where is your function, operations or what ever script to swap the define button images and the call to initiate that operation?
|
|
|
Re: button problem!!!
[Re: aztec]
#88316
08/31/06 16:05
08/31/06 16:05
|
Joined: Aug 2003
Posts: 7,439 Red Dwarf
Michael_Schwarz
Senior Expert
|
Senior Expert
Joined: Aug 2003
Posts: 7,439
Red Dwarf
|
panel sit_button { flags=visible; bmap=sitbutton; on_click=turn_sleep; }
panel sleep_button { bmap=sleepbutton; on_click=turn_sit; }
function turn_sleep { sit_button.visible=off; sleep_button.visible=on; }
function turn_sit { sit_button.visible=on; sleep_button.visible=off; }
"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
|
|
|
Re: button problem!!!
[Re: lostclimate]
#88318
09/01/06 03:15
09/01/06 03:15
|
Joined: Jun 2005
Posts: 734 Under your couch
Silent_Assassin
OP
Developer
|
OP
Developer
Joined: Jun 2005
Posts: 734
Under your couch
|
lol you guys are misunderstanding me 1. I dont want to add any functions yet 2. I dont see where exactly i want to change it into sleep button although i have that button defined. 3. I should be able to use the button command as i have done it before and its worked...not sure why not now though 4. I want the sit bmap to change into the sit button bmap.. both have been defined. sorry if im being irritating... lol
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|