1984plusplus
Chieftain
- Joined
- May 23, 2011
- Messages
- 59
I'm trying to use the setImageButton function to add a button for a new screen to the main interface. Mimicking the code for the other buttons, I managed to make it show up and determine that iData1 is apparently what's responsible for what happens when you click the button. Where do I add the code to make a new iData1 entry that opens the new window? I've already added the necessary code for the new screen to CvScreenEnums.py and CvScreensInterface.py.
void setImageButton ( string szName, string szAttachTo, string szTexture, int iX, int iY, int iWidth, int iHeight, WidgetTypes eWidgetType, int iData1, int iData2 )
void setImageButton ( string szName, string szAttachTo, string szTexture, int iX, int iY, int iWidth, int iHeight, WidgetTypes eWidgetType, int iData1, int iData2 )