Ejemplo n.º 1
0
 def textBoxName_TextChanged(self, event):
     """updates the selected actor's name"""
     DM.updateObjectName(
         self.SelectedActor,
         event.GetString(),
         self.listBoxActors,
         len(kernel.Config.getUnified()['GameObjects']['Actors'])
     )
Ejemplo n.º 2
0
    def textCtrlName_TextChanged(self, event):
        """updates the selected actor's name"""
        try:
            max_classes = int(kernel.Config.getUnified()['GameObjects']['Classes'])
        except Exception as e:
            kernel.Log("Bad Config Value", error=True)
            max_classes = 999

        DM.updateObjectName(self.SelectedClass, event.GetString(),
                            self.listBoxClasses, max_classes)
Ejemplo n.º 3
0
 def textCtrlName_TextChanged(self, event):
     """updates the selected skill's name"""
     try:
         skills_max = int(kernel.Config.getUnified()['GameObjects']['Skills'])
     except Exception as e:
         kernel.Log("Bad Config Value", error=True)
         skills_max = 9999   
     
     DM.updateObjectName(self.SelectedSkill, event.GetString(),
                         self.listBoxSkills, skills_max)
Ejemplo n.º 4
0
 def textCtrlName_TextChanged(self, event):
     """updates the selected items's name"""
     DM.updateObjectName(self.SelectedItem, event.GetString(),
                         self.listBoxItems, len(kernel.Config.getUnified()['GameObjects']['Items']))
Ejemplo n.º 5
0
 def textCtrlName_TextChanged(self, event):
     """updates the selected weapon's name"""
     DM.updateObjectName(self.SelectedWeapon, event.GetString(),
                         self.listBoxWeapons, len(kernel.Config.getUnified()['GameObjects']['Weapons']))