Exemple #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
Exemple #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
Exemple #3
0
def QuickLoadPressed():
    global QuickLoadSlot

    GetQuickLoadSlot()
    if QuickLoadSlot != None:
        LoadScreen.StartLoadScreen()
        GemRB.LoadGame(QuickLoadSlot)
        GemRB.EnterGame()
    return
Exemple #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
Exemple #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
Exemple #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
Exemple #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)