Пример #1
0
def LoadGamePress ():
	if LoadWindow:
		LoadWindow.Unload ()
	Pos = GemRB.GetVar ("TopIndex")+GemRB.GetVar ("LoadIdx")
	LoadScreen.StartLoadScreen ()
	GemRB.LoadGame(Games[Pos]) # load & start game
	GemRB.EnterGame ()
	return
Пример #2
0
def LoadGamePress(btn):
    if LoadWindow:
        LoadWindow.Unload()
    Pos = GemRB.GetVar("TopIndex") + btn.Value
    LoadScreen.StartLoadScreen()
    GemRB.LoadGame(Games[Pos])  #loads and enters savegame
    GemRB.EnterGame()
    return
Пример #3
0
def QuickLoadPressed():
    global QuickLoadSlot

    GetQuickLoadSlot()
    if QuickLoadSlot != None:
        LoadScreen.StartLoadScreen()
        GemRB.LoadGame(QuickLoadSlot)
        GemRB.EnterGame()
    return
Пример #4
0
def LoadGamePress():
    if LoadWindow:
        LoadWindow.Unload()
    Pos = GemRB.GetVar("TopIndex") + GemRB.GetVar("LoadIdx")
    LoadScreen.StartLoadScreen()
    #loads savegame
    GemRB.LoadGame(Games[Pos])

    #enters game
    GemRB.EnterGame()  #it will close windows, including the loadscreen
    return
Пример #5
0
def LoadGamePress ():
	if LoadWindow:
		LoadWindow.Unload ()
	Pos = GemRB.GetVar ("TopIndex")+GemRB.GetVar ("LoadIdx")
	LoadScreen.StartLoadScreen()
	#loads savegame
	GemRB.LoadGame (Games[Pos])

	#enters game
	if GameCheck.IsIWD1():
		GemRB.SetNextScript ("PartyFormation")
	else:
		# it will close windows, including the loadscreen
		GemRB.EnterGame ()
	return
Пример #6
0
def LoadGamePress(btn, val):
    if GemRB.GetView(
            "GC"):  # FIXME: is this the best way to know if we are ingame?
        OpenLoadMsgWindow(btn, val)
        return

    Pos = GemRB.GetVar("TopIndex") + val
    LoadScreen.StartLoadScreen()
    #loads savegame
    GemRB.LoadGame(Games[Pos])

    #enters game
    if GameCheck.IsIWD1():
        GemRB.SetNextScript("PartyFormation")
    else:
        # it will close windows, including the loadscreen
        GemRB.EnterGame()
    return
Пример #7
0
def ConfirmedSaveGame():
    Window = SaveDetailWindow

    Pos = GemRB.GetVar("TopIndex") + GemRB.GetVar("SaveIdx")
    Label = Window.GetControl(1)
    Slotname = Label.QueryText()

    # Empty save name. We can get here if user presses Enter key
    if Slotname == "":
        return

    # We have to close floating window first
    OpenSaveDetailWindow()
    LoadScreen.StartLoadScreen(LoadScreen.LS_TYPE_SAVING)
    CloseSaveWindow()
    if Pos < len(Games):
        GemRB.SaveGame(Games[Pos], Slotname)
    else:
        GemRB.SaveGame(None, Slotname)