Example #1
0
 def _makeFrame(self, shipId, shipName, shipClass, mastInfo, shipHp, shipSp,
                cargo, crew, time, siegeTeam, avatarName, customHull,
                customRigging, customPattern, customLogo, callback):
     shipFrame = self.getFrame(shipId)
     if shipFrame:
         shipFrame.addCrewMemberName(avatarName)
     else:
         shipFrame = ShipFrameDeploy(parent=None,
                                     relief=None,
                                     shipId=shipId,
                                     shipName=shipName,
                                     shipClass=shipClass,
                                     mastInfo=mastInfo,
                                     shipType=ShipFrameDeploy.STFriend,
                                     siegeTeam=siegeTeam,
                                     avatarName=avatarName,
                                     command=callback,
                                     extraArgs=[shipId])
         shipFrame.enableStats(shipName, shipClass, mastInfo, shipHp,
                               shipSp, cargo, crew, time)
         shipFrame.setCustomization(customHull=customHull,
                                    customRigging=customRigging,
                                    customPattern=customPattern,
                                    customLogo=customLogo)
     return shipFrame
Example #2
0
 def _makeFrame(self, shipId, shipName, shipClass, mastInfo, shipHp, shipSp, cargo, crew, time, siegeTeam, avatarName, customHull, customRigging, customPattern, customLogo, callback):
     shipFrame = self.getFrame(shipId)
     if shipFrame:
         shipFrame.addCrewMemberName(avatarName)
     else:
         shipFrame = ShipFrameDeploy(parent = None, relief = None, shipId = shipId, shipName = shipName, shipClass = shipClass, mastInfo = mastInfo, shipType = ShipFrameDeploy.STFriend, siegeTeam = siegeTeam, avatarName = avatarName, command = callback, extraArgs = [
             shipId])
         shipFrame.enableStats(shipName, shipClass, mastInfo, shipHp, shipSp, cargo, crew, time)
         shipFrame.setCustomization(customHull = customHull, customRigging = customRigging, customPattern = customPattern, customLogo = customLogo)
     return shipFrame