Here is the main function that does most of the work
Code:
void create_information_display_seller(var* speed_v, var* health_v, var* damage_v, var* money_v, BMAP* bmap_b)
{
	
	if(information_display_seller)pan_remove(information_display_seller);
	
	//////////////////////////////
	// now we use the pointers to use the buttons on
	//////////////////////////////
	seller_health 	= *health_v;
	seller_damage 	= *damage_v;
	seller_money  	= *money_v;
	seller_speed 	= *speed_v;
	//in another function seller_health, damge,money and
 //speed will be altered and should affects the totals of the
 //original vars that were passed into this function
	
	


	information_display_seller = pan_create("",5);
	information_display_seller.pos_x = 672;
	information_display_seller.pos_y = 5;
	
//displays the image of the item selected
	pan_setbutton(information_display_seller,0,1,
	0,
	0,
	bmap_b,
	bmap_b,
	bmap_b,

	NULL,
	NULL,//function goes here
	NULL,
	NULL);
	
	

	

	pan_setdigits(information_display_seller,0,150,115,"%2.f",font_create("Arial#25"),1,seller_speed); 
	
	pan_setbutton(information_display_seller,0,1,
	235,
	115,
	UPARROW,UPARROW,UPARROW,

	NULL,
	alter_seller_speed_up,//function goes here
	NULL,
	NULL);
	
	
	pan_setbutton(information_display_seller,0,1,
	270,
	115,
	DOWNARROW,DOWNARROW,DOWNARROW,

	NULL,
	alter_seller_speed_down,//function goes here
	NULL,
	NULL);
	

	
	
	
	set(information_display_seller,SHOW);
	
}



What I want to do is pass a variable into this function and assign that variable to a pointer so that variable can be manipulated later on.

Last edited by FoxHound; 10/05/12 22:59.

---------------------
There is no signature here.


QUIT LOOKING FOR ONE!