Highlight buttons function (Solved)

Started by Lazarus, Thu 23/02/2006 08:07:22

Previous topic - Next topic

Lazarus

Hi I have this function which is pretty basic where when the mouse passes over objects,hotspots and characters it highlights the buttons (changes the Look at & Talk to sprites), which works okay. But now I also want it to also highlight the buttons when the mouse is over inventory items.

heres what I have so far:
Code: ags
	function HighlightButtons() {

if (GetLocationType(mouse.x,mouse.y) == eLocationCharacter)
Ã,  gMainTalkto.NormalGraphic = 89;// Highlight Talk To

else if (GetLocationType(mouse.x,mouse.y) == eLocationHotspot)
Ã,  gMainLook.NormalGraphic = 84;// Highlight Look At

else if (GetLocationType(mouse.x,mouse.y) == eLocationObject)
Ã,  gMainLook.NormalGraphic = 84;// Highlight Look At

else if (GetLocationType(mouse.x, mouse.y) == eLocationNothing)
Ã,  gMainLook.NormalGraphic = 73;// Look At Normal
Ã,  gMainTalkto.NormalGraphic = 78;// Talk To Normal		
}


Any help would be grateful
*Currently using AGS Editor 2.70 (Build 2.70.601)*


Lazarus

Thanks khrismuc
Thats what I was looking for
*Currently using AGS Editor 2.70 (Build 2.70.601)*

SMF spam blocked by CleanTalk