Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
lite-c workshop#6 - button issue #385236
10/15/11 04:10
10/15/11 04:10
Joined: Oct 2011
Posts: 2
FL
D
danielctodd Offline OP
Guest
danielctodd  Offline OP
Guest
D

Joined: Oct 2011
Posts: 2
FL
This is probably something simple but I can't seem to figure it out. Here is the code and the runtime error.
Code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

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

function main()
{
  screen_size.x = 800;
  screen_size.y = 600;
	screen_color.blue = 150;
	mouse_mode = 4;
}

function quit_program()
{
	while (key_any) {wait (1);}
	sys_exit(NULL);
}

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

PANEL* main_pan =
{
	bmap = "main.pcx";
 	pos_x = 250;     
 	pos_y = 200;    
	button (250, 134, "quitclicked.pcx", "quitnormal.pcx", "quitover.pcx", quit_program, NULL, NULL); 
	button (150, 94, "buttonclicked.pcx", "buttonnormal.pcx", "buttonover.pcx", NULL, NULL, NULL);
	flags = OVERLAY | SHOW;
}


Runtime Error: Can't open buttonclicked.pcx

I made 3 basic buttons in gimp and saved them as ZSoft PCX images, leaving them in the same directory as the other buttons.
Any help is appreciated.

Re: lite-c workshop#6 - button issue [Re: danielctodd] #385239
10/15/11 06:31
10/15/11 06:31
Joined: Mar 2011
Posts: 7
M
mrcerez Offline
Newbie
mrcerez  Offline
Newbie
M

Joined: Mar 2011
Posts: 7
you delete buttonclicked.pcx?
your button name is exm(abab.pcx) you must chance

button (250, 134, "abab.pcx", "cccc.pcx", "amdint.pcx", quit_program, NULL, NULL);

Re: lite-c workshop#6 - button issue [Re: mrcerez] #385293
10/16/11 00:37
10/16/11 00:37
Joined: Oct 2011
Posts: 2
FL
D
danielctodd Offline OP
Guest
danielctodd  Offline OP
Guest
D

Joined: Oct 2011
Posts: 2
FL
Never mind. It was a simple mistake on my part. I forgot I made another folder to house the same workshops so I could have both the original and the edited versions.


Gamestudio download | 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