当前位置: 首页>>代码示例>>Python>>正文


Python CharGenCommon.next方法代码示例

本文整理汇总了Python中CharGenCommon.next方法的典型用法代码示例。如果您正苦于以下问题:Python CharGenCommon.next方法的具体用法?Python CharGenCommon.next怎么用?Python CharGenCommon.next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CharGenCommon的用法示例。


在下文中一共展示了CharGenCommon.next方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
    MyChar = GemRB.GetVar("Slot")
    # GemRB.CreatePlayer ("charbase", MyChar | 0x8000 )
    Gender = GemRB.GetVar("Gender")
    GemRB.SetPlayerStat(MyChar, IE_SEX, Gender)
    CharGenCommon.next()
    return
开发者ID:jrial,项目名称:gemrb,代码行数:9,代码来源:GUICG1.py

示例2: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	#class	
	ClassIndex = GemRB.GetVar ("Class")-1
	Class = CommonTables.Classes.GetValue (ClassIndex, 5)
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerStat (MyChar, IE_CLASS, Class)
	CharGenCommon.next()
开发者ID:JeremyAgost,项目名称:gemrb,代码行数:9,代码来源:GUICG10.py

示例3: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	# find the class from the class table
	ClassName = GUICommon.GetClassRowName (GemRB.GetVar ("Class")-1, "index")
	Class = CommonTables.Classes.GetValue (ClassName, "ID")
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerStat (MyChar, IE_CLASS, Class)
	CharGenCommon.next()
开发者ID:shadowphoenix,项目名称:gemrb,代码行数:9,代码来源:GUICG2.py

示例4: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	global CharSoundWindow
	CharSound = VoiceList.QueryText ()
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerSound(MyChar,CharSound)
	CharGenCommon.next()
	return
开发者ID:gemrb,项目名称:gemrb,代码行数:9,代码来源:GUICG19.py

示例5: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	Name = NameField.QueryText()
	#check length?
	#seems like a good idea to store it here for the time being
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerName (MyChar, Name, 0)
	CharGenCommon.next()
	return
开发者ID:NickDaly,项目名称:GemRB-MultipleConfigs,代码行数:10,代码来源:GUICG5.py

示例6: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	MyChar = GemRB.GetVar ("Slot")
	GUICommon.SetColorStat (MyChar, IE_HAIR_COLOR, HairColor )
	GUICommon.SetColorStat (MyChar, IE_SKIN_COLOR, SkinColor )
	GUICommon.SetColorStat (MyChar, IE_MAJOR_COLOR, MajorColor)
	GUICommon.SetColorStat (MyChar, IE_MINOR_COLOR, MinorColor )
	CharGenCommon.next()
	return
开发者ID:NickDaly,项目名称:GemRB-MultipleConfigs,代码行数:10,代码来源:GUICG13.py

示例7: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	# find the class from the class table
	ClassIndex = GemRB.GetVar ("Class") - 1
	Class = CommonTables.Classes.GetValue (ClassIndex, 5)
	#protect against barbarians
	ClassName = CommonTables.Classes.GetRowName (CommonTables.Classes.FindValue (5, Class) )
	
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerStat (MyChar, IE_CLASS, Class)
	CharGenCommon.next()
开发者ID:NickDaly,项目名称:GemRB-MultipleConfigs,代码行数:12,代码来源:GUICG2.py

示例8: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	#class	
	ClassIndex = GemRB.GetVar ("Class")-1
	Class = CommonTables.Classes.GetValue (ClassIndex, 5)
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerStat (MyChar, IE_CLASS, Class)
	KitIndex = GemRB.GetVar ("Class Kit")
	#the same as the unusable field
	Kit = CommonTables.KitList.GetValue(KitIndex, 6)
	GemRB.SetPlayerStat (MyChar, IE_KIT, Kit)
	CharGenCommon.next()
开发者ID:NickDaly,项目名称:GemRB-MultipleConfigs,代码行数:13,代码来源:GUICG22.py

示例9: CustomDone

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def CustomDone():
    global AppearanceWindow

    Window = CustomWindow
    Portrait = PortraitList1.QueryText()
    GemRB.SetToken("LargePortrait", Portrait)
    Portrait = PortraitList2.QueryText()
    GemRB.SetToken("SmallPortrait", Portrait)
    if Window:
        Window.Unload()
    CharGenCommon.next()
    return
开发者ID:gemrb,项目名称:gemrb,代码行数:14,代码来源:GUICG12.py

示例10: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	#class	
	Class = CommonTables.Classes.GetValue (ClassName, "ID")
	MyChar = GemRB.GetVar ("Slot")
	GemRB.SetPlayerStat (MyChar, IE_CLASS, Class)
	KitIndex = GemRB.GetVar ("Class Kit")
	if ClassName == "MAGE":
		GemRB.SetVar("MAGESCHOOL", KitIndex)
	#the same as the unusable field
	Kit = CommonTables.KitList.GetValue(KitIndex, 6)
	GemRB.SetPlayerStat (MyChar, IE_KIT, Kit)
	CharGenCommon.next()
开发者ID:AlanWasTaken,项目名称:gemrb,代码行数:14,代码来源:GUICG22.py

示例11: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	GemRB.SetRepeatClickFlags(GEM_RK_DISABLE, OP_OR)
	
	AbilityTable = GemRB.LoadTable ("ability")
	AbilityCount = AbilityTable.GetRowCount ()
	
	# print our diagnostic as we loop (so as not to duplicate)
	for i in range (AbilityCount):
		StatID = AbilityTable.GetValue (i, 3)
		StatName = AbilityTable.GetRowName (i)
		StatValue = GemRB.GetVar ("Ability "+str(i))
		GemRB.SetPlayerStat (MyChar, StatID, StatValue)
		print "\t",StatName,":\t", StatValue

	GemRB.SetPlayerStat (MyChar, IE_STREXTRA, GemRB.GetVar ("StrExtra"))
	print "\tSTREXTRA:\t",GemRB.GetVar ("StrExtra")

        GemRB.SetRepeatClickFlags(GEM_RK_DISABLE, OP_OR)

	CharGenCommon.next()
开发者ID:AlanWasTaken,项目名称:gemrb,代码行数:22,代码来源:GUICG4.py

示例12: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
    PortraitTable = GemRB.LoadTable("pictures")
    PortraitName = PortraitTable.GetRowName(LastPortrait)
    GemRB.SetToken("SmallPortrait", PortraitName + "S")
    GemRB.SetToken("LargePortrait", PortraitName + "L")
    CharGenCommon.next()
开发者ID:gemrb,项目名称:gemrb,代码行数:8,代码来源:GUICG12.py

示例13: SpecialistPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def SpecialistPress():
	GemRB.SetVar("Specialist",1)

	GemRB.SetVar("Class Kit", 0)
	GemRB.SetVar("Class", 6)
	CharGenCommon.next()
开发者ID:shadowphoenix,项目名称:gemrb,代码行数:8,代码来源:GUICG2.py

示例14: MultiClassPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def MultiClassPress():
	GemRB.SetVar("Multi Class",1)
	CharGenCommon.next()
开发者ID:shadowphoenix,项目名称:gemrb,代码行数:5,代码来源:GUICG2.py

示例15: NextPress

# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def NextPress():
	MyChar = GemRB.GetVar ("Slot")
	LUProfsSelection.ProfsSave(MyChar, LUProfsSelection.LUPROFS_TYPE_CHARGEN)
	CharGenCommon.next()
开发者ID:AlanWasTaken,项目名称:gemrb,代码行数:6,代码来源:GUICG9.py


注:本文中的CharGenCommon.next方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。