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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
button question #271047
06/11/09 01:20
06/11/09 01:20
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
Hi, Im really sorry for bugging you all with this, but i really need you guys' help. I've got th button working, but the BMAP_clicked image wont show. other than that the program works. Also my button image is set in OVERLAY | VISIBLE, but the white outside still is there. All i want is the button image here's a link to the click image.

http://adobeperson.com/wp-content/uploads/2007/11/glass-stop-webbutton23.jpg

and heres the code.
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////


BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it

PANEL* first_pan = // my first panel
{
pos_x = -40;
pos_y = 0;
layer = 1;
bmap = firebackground;
flags = OVERLAY | VISIBLE;
}
BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground

PANEL* second_panel =
{
pos_x = -270;
pos_y = -100;
layer = 2;
bmap = pngRobot;
flags = OVERLAY | VISIBLE;
}
PANEL* button_panel = //panel for button
{
pos_x = 30;
pos_y = 0;
layer = 3;
button (270, 0, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}

/////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7;
screen_color.blue = 150;
mouse_mode = 4;
}

function quit_program()
{
sys_exit(NULL);
}


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: button question [Re: gamingfan101] #271050
06/11/09 02:48
06/11/09 02:48
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

The title of your bitmap might be to long
"awesome-fire-dragon-ablaze.jpg"

try making it under 20 characters.

As for the white : overlay makes only the black part invisible.

Ottawa wink

btw I noticed that you posted this problem or a part of this
problem 3 times.

Last edited by Ottawa; 06/11/09 02:55. Reason: read other posts
Re: button question [Re: Ottawa] #271052
06/11/09 03:08
06/11/09 03:08
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
about posting it three times, sorry about that. One of them i was trying to delete and the other post was getting too long. Im sorry about that. So how would i make the white part invisible?


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: button question [Re: gamingfan101] #271058
06/11/09 04:17
06/11/09 04:17
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
so, to make white invisibe, is there a way? Or do I somehow need to make it black?


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: button question [Re: gamingfan101] #271061
06/11/09 05:06
06/11/09 05:06
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Quote:
Or do I somehow need to make it black?

You'll need to make it black, to delete it.

Re: button question [Re: Cowabanga] #271071
06/11/09 05:38
06/11/09 05:38
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
so to do that, do i just open it into a paint program and paint black over it or what? and also, with sliders, what does the engine mean when it says "invalid slider size"? does that mean the bitmaps too big? Im sorry for bugging you with this.


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: button question [Re: gamingfan101] #271072
06/11/09 05:42
06/11/09 05:42
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Quote:
so to do that, do i just open it into a paint program and paint black over it or what?

That's correct.

Re: button question [Re: Cowabanga] #271158
06/11/09 15:50
06/11/09 15:50
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
ok, i did that, but when i coded OVERLAY | VISIBLE, the black still showed up. Do you know why?


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: button question [Re: gamingfan101] #271160
06/11/09 15:57
06/11/09 15:57
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Can you upload the image??

Re: button question [Re: Cowabanga] #271163
06/11/09 16:05
06/11/09 16:05
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
yes, the image comes up, and the program is working except for the overlay. heres a link to the picture

http://www.funphotoart.com/wp-content/uploads/2007/10/red-stop-webgraphics-button15.jpg


Last edited by gamingfan101; 06/11/09 16:08.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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