From: <ave...@us...> - 2003-10-26 00:46:42
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript In directory sc8-pr-cvs1:/tmp/cvs-serv24759/GUIScript Modified Files: GUIScript.cpp Log Message: RadioButton implementation started Index: GUIScript.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript/GUIScript.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** GUIScript.cpp 25 Oct 2003 22:50:20 -0000 1.13 --- GUIScript.cpp 26 Oct 2003 00:43:30 -0000 1.14 *************** *** 210,217 **** static PyObject * GemRB_SetVarAssoc(PyObject *self, PyObject *args) { ! int WindowIndex, ControlIndex; ! char* varname; ! if(!PyArg_ParseTuple(args, "iis", &WindowIndex, &ControlIndex, &varname)) { printMessage("GUIScript", "Syntax Error: SetVarAssoc(WindowIndex, ControlIndex, VariableName)\n", LIGHT_RED); return NULL; --- 210,217 ---- static PyObject * GemRB_SetVarAssoc(PyObject *self, PyObject *args) { ! int WindowIndex, ControlIndex, Value; ! char* VarName; ! if(!PyArg_ParseTuple(args, "iisi", &WindowIndex, &ControlIndex, &VarName,Value)) { printMessage("GUIScript", "Syntax Error: SetVarAssoc(WindowIndex, ControlIndex, VariableName)\n", LIGHT_RED); return NULL; *************** *** 226,230 **** return NULL; ! strncpy(ctrl->VarName, varname, MAX_VARIABLE_LENGTH); Py_INCREF(Py_None); --- 226,231 ---- return NULL; ! strncpy(ctrl->VarName, VarName, MAX_VARIABLE_LENGTH); ! ctrl->Value=Value; Py_INCREF(Py_None); |