#include "Content\\ShellScripts\\stddefs.h" // This control created by brennanp 6.28.2000 ??Problems?? call x53796 // // Parameters to pass into text object //How to Initialize the InfoPoint object //object oInfoPoint = s_InfoPoint //oInfoPoint.location = //oInfoPoint.nIPWidth = //oInfoPoint.nIPHeight = //oInfoPoint.szIPTitle = //oInfoPoint.szIcon = //oInfoPoint.szRollover = //oInfoPoint.szRightClick = //initialize(oInfoPoint) s_InfoPoint { GUI_CREATE { int nIPWidth int nIPHeight int ClickTracker= 0 //Checks to see if a rightclick has already occured so it can do code on the 2nd click int nNav = 0 int nDrop = 0 string szIPTitle string szIcon string szRollover string szRightClick bitmap bmpImage location.z = nZ_INFOPOINT object oIcon = s_Pane oIcon.nFrames = 3 oIcon.nMode = 1 oIcon.fVolatile = 1 oIcon.fRegion = 0 oIcon.nHelpID = -1 } GUI_INIT { region = 0,0 to nIPWidth,nIPHeight if (nNav) { szIcon = "CM_Nav.tga" } else if (nDrop) { szIcon = "CM_DropPoint.tga" } else if (equal$(szIcon,".tga")) { szIcon = "CM_NoIcon.tga" } bmpImage = szPATH_GRAPHICS szIcon oIcon.location = location.x + (nIPWidth/2) - ((getwidth(bmpImage))/2),location.y + (nIPHeight/2) - ((getheight(bmpImage)/oIcon.nFrames)/2),location.z oIcon.szBitmap = szPATH_GRAPHICS szIcon oIcon.nCurrFrame = 0 initialize(oIcon) } REGION_ENTERED { oRollover.szText = szRollover mail (nMSG_INPUT_STRING,oRollover) oIcon.nCurrFrame = 1 initialize(oIcon) } REGION_EXITED { mail (nMSG_CLEARHELP,oRollover) oIcon.nCurrFrame = 0 initialize(oIcon) } GUI_ACTIVATE { activate(oIcon) } GUI_DEACTIVATE { deactivate(oIcon) } RBUTTON_UPDATE { if (mouse.right == BUTTON_CLICKED) { if (!ClickTracker) { oRollover.szText = szRightClick mail (nMSG_INPUT_STRING,oRollover) ClickTracker = 1 } else { oRollover.szText = szRollover mail (nMSG_INPUT_STRING,oRollover) ClickTracker = 0 } } if (mouse.right == BUTTON_PRESSED) { oIcon.nCurrFrame = 2 initialize(oIcon) } if (mouse.right == BUTTON_RELEASED) { oIcon.nCurrFrame = 0 initialize(oIcon) } } }