Gamestudio Links
Zorro Links
Newest Posts
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 (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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