Vadus
pretend the impossible
Hi python pros,
I want to add a new button to the Civ4 Main-Interface, so I have to change the CvInterface.py . This class (or interface) uses an instance of CyGInterface.
So currently I have to get to know the CyGInterface Class, ... at least the
setButtonGFC( ) method.
( Because I want to add my Button in the CityScreen right under the "show only wonders to build" - button. And this selectionButtons are set with the setButtonGFC( ) method , see CvMainInterface.py line:289)
The API shows this signature :
So my questions are :
1. What for a type is a 'wstring' in python ?
2. Refer the 2 iData params to the method, which is called, when this button was pressed ? If so, where can I find the implementation of this methods ? Mostly there are values from -1 to 2 consigned.
If not, where and how do I have to implement the method for this new button ?
regards
I want to add a new button to the Civ4 Main-Interface, so I have to change the CvInterface.py . This class (or interface) uses an instance of CyGInterface.
So currently I have to get to know the CyGInterface Class, ... at least the
setButtonGFC( ) method.
( Because I want to add my Button in the CityScreen right under the "show only wonders to build" - button. And this selectionButtons are set with the setButtonGFC( ) method , see CvMainInterface.py line:289)
The API shows this signature :
Code:
setButtonGFC(...) - void ( string szName, wstring szText, string szTexture,
int iX, int iY, int imageWidth, int imageHeight,
WidgetTypes eWidgetType,
int iData1, int iData2,
ButtonStyles eStyle )
1. What for a type is a 'wstring' in python ?
2. Refer the 2 iData params to the method, which is called, when this button was pressed ? If so, where can I find the implementation of this methods ? Mostly there are values from -1 to 2 consigned.

If not, where and how do I have to implement the method for this new button ?
regards