From: Laszlo T. <ave...@us...> - 2005-07-10 17:03:42
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/pst In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25994 Modified Files: GUILOAD.py Log Message: pst: fixed strrefs in GUILOAD/delete game Index: GUILOAD.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/pst/GUILOAD.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** GUILOAD.py 28 Feb 2005 22:49:47 -0000 1.8 --- GUILOAD.py 10 Jul 2005 17:03:32 -0000 1.9 *************** *** 10,19 **** # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software ! # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # $Header$ --- 10,19 ---- # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software ! # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # $Header$ *************** *** 67,71 **** ScrollBar=GemRB.GetControl(LoadWindow, 13) GemRB.SetEvent(LoadWindow, ScrollBar, IE_GUI_SCROLLBAR_ON_CHANGE, "ScrollBarPress") ! GameCount=GemRB.GetSaveGameCount() #count of games in save folder? if GameCount>3: TopIndex = GameCount-4 --- 67,71 ---- ScrollBar=GemRB.GetControl(LoadWindow, 13) GemRB.SetEvent(LoadWindow, ScrollBar, IE_GUI_SCROLLBAR_ON_CHANGE, "ScrollBarPress") ! GameCount=GemRB.GetSaveGameCount() #count of games in save folder? if GameCount>3: TopIndex = GameCount-4 *************** *** 135,139 **** if TopIndex>0: GemRB.SetVar("TopIndex",TopIndex-1) ! GameCount=GemRB.GetSaveGameCount() #count of games in save folder? GemRB.SetVarAssoc(LoadWindow, ScrollBar, "TopIndex", GameCount) ScrollBarPress() --- 135,139 ---- if TopIndex>0: GemRB.SetVar("TopIndex",TopIndex-1) ! GameCount=GemRB.GetSaveGameCount() GemRB.SetVarAssoc(LoadWindow, ScrollBar, "TopIndex", GameCount) ScrollBarPress() *************** *** 153,159 **** ConfirmWindow=GemRB.LoadWindow(1) Text=GemRB.GetControl(ConfirmWindow, 0) ! GemRB.SetText(ConfirmWindow, Text, 15305) DeleteButton=GemRB.GetControl(ConfirmWindow, 1) ! GemRB.SetText(ConfirmWindow, DeleteButton, 13957) GemRB.SetEvent(ConfirmWindow, DeleteButton, IE_GUI_BUTTON_ON_PRESS, "DeleteGameConfirm") CancelButton=GemRB.GetControl(ConfirmWindow, 2) --- 153,159 ---- ConfirmWindow=GemRB.LoadWindow(1) Text=GemRB.GetControl(ConfirmWindow, 0) ! GemRB.SetText(ConfirmWindow, Text, 28639) DeleteButton=GemRB.GetControl(ConfirmWindow, 1) ! GemRB.SetText(ConfirmWindow, DeleteButton, 28640) GemRB.SetEvent(ConfirmWindow, DeleteButton, IE_GUI_BUTTON_ON_PRESS, "DeleteGameConfirm") CancelButton=GemRB.GetControl(ConfirmWindow, 2) |