本文整理汇总了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
示例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()
示例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()
示例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
示例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
示例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
示例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()
示例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()
示例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
示例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()
示例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()
示例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()
示例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()
示例14: MultiClassPress
# 需要导入模块: import CharGenCommon [as 别名]
# 或者: from CharGenCommon import next [as 别名]
def MultiClassPress():
GemRB.SetVar("Multi Class",1)
CharGenCommon.next()
示例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()