I am trying to find a way to only display a panel containing a large image of a sword on the right side of the screen, when I left-click a small sword item image in the player's inventory bag (shown on the left side of the screen). Here is some code I have for the panel with the large sword image:

Code:
BMAP* steelSword = "Sword_Inv_Display.pcx";

...

PANEL* sword_panel =
{
  	window(600,25,350,350,steelSword,200,300);
  	flags = SHOW;
}



This panel always displays a large image of a sword on the right side of the screen.

I only want this image to display when I open up the player's inventory bag, and if the player is armed with a sword in the player's inventory bag (which would show as a small sword image in the inventory bag), and if the user left-clicks on the small sword image once, the panel above showing a large image of a sword only then should display on the right side of the screen.

The code above allows the panel showing the large sword image to always display. I really only want the panel with the large sword image to show if the player left-clicks the small sword image in the player's inventory bag once.

Is there a flag that I can use in the panel to make it non-visible until the player clicks on the small sword item image in the inventory bag?

Last edited by Ruben; 05/27/14 05:18.