Update of /cvsroot/gemrb/gemrb/gemrb/plugins/2DAImporter
In directory sc8-pr-cvs1:/tmp/cvs-serv29119/2DAImporter
Modified Files:
2DAImp.h 2DAImp.cpp
Log Message:
Added some Python functions:
* GetTableRowName(TableIndex, RowIndex) : Returns the Name of the given Row
* GetTableRowCount(TableIndex) : Returns the Number of Rows in the given Table
* SetButtonPicture(WindowIndex, ControlIndex, PictureResRef) : Sets the Picture/Portrait associated with a Button Control
Fixed a Bug in Button: Never shows the Picture when the IE_BUTTON_NO_IMAGE flag was set
Index: 2DAImp.h
===================================================================
RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/2DAImporter/2DAImp.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** 2DAImp.h 29 Oct 2003 16:18:45 -0000 1.5
--- 2DAImp.h 29 Oct 2003 23:50:30 -0000 1.6
***************
*** 61,64 ****
--- 61,71 ----
return rows[rowi][coli];
};
+
+ inline char *GetRowName(int index) const
+ {
+ if(index < rowNames.size())
+ return rowNames[index];
+ return NULL;
+ };
};
Index: 2DAImp.cpp
===================================================================
RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/2DAImporter/2DAImp.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** 2DAImp.cpp 29 Oct 2003 18:21:41 -0000 1.5
--- 2DAImp.cpp 29 Oct 2003 23:50:31 -0000 1.6
***************
*** 27,31 ****
str->CheckEncrypted();
str->ReadLine(Signature,10);
! if(strncmp(Signature, "2DA V1.0", 8) != 0) {
str = olds;
return false;
--- 27,34 ----
str->CheckEncrypted();
str->ReadLine(Signature,10);
! char * strp = Signature;
! while(*strp == ' ')
! strp++;
! if(strncmp(strp, "2DA V1.0", 8) != 0) {
str = olds;
return false;
|