From: Jarda B. <edh...@us...> - 2005-03-06 22:54:40
|
Update of /cvsroot/gemrb/gemrb/gemrb/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16512/docs/en Modified Files: GUIScript_introduction.txt Log Message: Fixed some grammar Index: GUIScript_introduction.txt =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/docs/en/GUIScript_introduction.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GUIScript_introduction.txt 22 Feb 2005 23:35:52 -0000 1.1 --- GUIScript_introduction.txt 6 Mar 2005 22:54:30 -0000 1.2 *************** *** 59,63 **** GemRB API is provided to the scripts by means of GemRB module. The ! module is implemented together with Python interpreted glue in GUIScript plugin in gemrb/plugins/GUIScript/GUIScript.cpp. --- 59,63 ---- GemRB API is provided to the scripts by means of GemRB module. The ! module is implemented together with Python interpreter glue in GUIScript plugin in gemrb/plugins/GUIScript/GUIScript.cpp. *************** *** 66,73 **** GemRB.LoadTable ("RACES") ! Description of all functions in huge GemRB module is in ! gemrb/docs/en/GUIScript directory, GUIScript.cpp file itself by typing ! help(GemRB) in GemRB console (type ESC to open console). In this case ! the help is dumped to stdout. All scripts to be run have to define OnLoad() function, which is --- 66,73 ---- GemRB.LoadTable ("RACES") ! Description of all functions in the huge GemRB module is in ! gemrb/docs/en/GUIScript directory, GUIScript.cpp file itself or obtained ! by typing help(GemRB) in GemRB console (type ESC to open console). In ! that case the help is dumped to stdout. All scripts to be run have to define OnLoad() function, which is *************** *** 139,143 **** ## our own one (here Journal window). If Journal window already ## exists, it's closed and the control is returned to the caller ! ## (which implements toggling of a window) if CloseOtherWindow (OpenJournalWindow): --- 139,143 ---- ## our own one (here Journal window). If Journal window already ## exists, it's closed and the control is returned to the caller ! ## (this implements toggling of a window) if CloseOtherWindow (OpenJournalWindow): *************** *** 189,193 **** ## labels and callbacks to them ! ## Prefix the button processing with the label of the button for ## easy maintenance --- 189,193 ---- ## labels and callbacks to them ! ## Comment the button processing with the label of the button for ## easy maintenance *************** *** 237,241 **** with DLTCEP or NearInfinity. ! - Copy & paste common parts of the script from another one opening the similar windows. --- 237,241 ---- with DLTCEP or NearInfinity. ! - Copy & paste common parts of the script from another one opening similar windows. *************** *** 244,248 **** copy & pasting from another script. Usually start with magic trinity of GetControl, SetText, SetEvent for each button. Use dummy numbers ! for now. Beware, NearInfinity displays wrong IDs for labels. You have to add the label's control ID to "buffer size" << 32 to get the right control ID. --- 244,248 ---- copy & pasting from another script. Usually start with magic trinity of GetControl, SetText, SetEvent for each button. Use dummy numbers ! for now. Beware, NearInfinity displays wrong IDs for labels. You will have to add the label's control ID to "buffer size" << 32 to get the right control ID. |