コード例 #1
0
def ReviewPress():
    global PartyFormationWindow, ReviewWindow

    ReviewWindow = GemRB.LoadWindow(8, "GUISP")

    DoneButton = ReviewWindow.GetControl(1)
    DoneButton.SetText(11973)
    DoneButton.MakeDefault()
    DoneButton.MakeEscape()
    DoneButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, ReviewDonePress)

    LeftTextArea = ReviewWindow.GetControl(2)
    RightTextArea = ReviewWindow.GetControl(3)

    MyChar = GemRB.GetVar("Slot")
    import GUIREC
    GUIREC.DisplayGeneral(MyChar, LeftTextArea)
    GUIREC.DisplaySkills(MyChar, RightTextArea)

    ReviewWindow.ShowModal(MODAL_SHADOW_GRAY)
    return
コード例 #2
0
def ReviewPress ():
	global PartyFormationWindow, ReviewWindow

	PartyFormationWindow.SetVisible (WINDOW_INVISIBLE)
	ReviewWindow = GemRB.LoadWindow (8)

	DoneButton = ReviewWindow.GetControl (1)
	DoneButton.SetText (11973)
	DoneButton.SetFlags (IE_GUI_BUTTON_DEFAULT, OP_OR)
	DoneButton.SetFlags (IE_GUI_BUTTON_CANCEL, OP_OR)
	DoneButton.SetEvent (IE_GUI_BUTTON_ON_PRESS, ReviewDonePress)

	LeftTextArea = ReviewWindow.GetControl (2)
	RightTextArea = ReviewWindow.GetControl (3)

	MyChar = GemRB.GetVar ("Slot")
	import GUIREC
	GUIREC.DisplayGeneral (MyChar, LeftTextArea)
	GUIREC.DisplaySkills (MyChar, RightTextArea)

	ReviewWindow.SetVisible (WINDOW_VISIBLE)
	return