Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, ozgur, Ayumi, 2 invisible), 690 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: button problem!!! [Re: Xarthor] #88312
08/31/06 13:35
08/31/06 13:35
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
for example you can create a simple button effect with irfan view


Visit:
schwenkschuster-design.de
Re: button problem!!! [Re: aztec] #88313
08/31/06 15:29
08/31/06 15:29
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
i know what to do ive done it before its just that this time it doesnt want to work..

i dont need a hover effect right now only need it to change bmap when i click thats why the rest are null.

i have defined both bitmaps needed.

@aztec i tried that and it didnt work


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: button problem!!! [Re: Silent_Assassin] #88314
08/31/06 15:40
08/31/06 15:40
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

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: Silent_Assassin] #88315
08/31/06 15:41
08/31/06 15:41
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Okay why dont you try ent_morph or something like that if you want too change 1 bmap into another


Visit:
schwenkschuster-design.de
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 Offline
Senior Expert
Michael_Schwarz  Offline
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: Michael_Schwarz] #88317
08/31/06 16:22
08/31/06 16:22
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
yay! micheal got it.... lol

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 Offline OP
Developer
Silent_Assassin  Offline 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


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: button problem!!! [Re: Silent_Assassin] #88319
09/01/06 04:39
09/01/06 04:39
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
your problem is you have nothing at all in your script that WOULD make the image change. All it is is defines. there is nothing saying sit bmap should change to sit button bmp.

your missing such instructiuons to change/swap replace these 2 images.

button = 0, 0, sitbutton, null, null, null, null, null;

does nothing but define a button the size of the image sitbutton

it has the same result as if you would have made it a panel instead on top of the other panel.

Re: button problem!!! [Re: Grimber] #88320
09/01/06 04:47
09/01/06 04:47
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
ok well i know that now hehe


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: button problem!!! [Re: Silent_Assassin] #88321
09/01/06 06:00
09/01/06 06:00
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
lol, you must feel dumb... , hey weve all been there

Page 2 of 4 1 2 3 4

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1