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
def _makeFrame(self, shipId, shipName, shipClass, mastInfo, shipHp, shipSp, cargo, crew, time, siegeTeam, avatarName, 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) return shipFrame
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