- //uitarget.py
- //arat
- def SetEnemyVID(self, vid):
- //içerisinde bul
- (textWidth, textHeight) = self.name.GetTextSize()
- self.infoButton.SetPosition(textWidth + 25, 12)
- self.infoButton.SetWindowHorizontalAlignLeft()
- self.vnum = vnum
- self.infoButton.Show()
- //degiştir
- if not chr.GetInstanceType(self.vid) == chr.INSTANCE_TYPE_PLAYER:
- (textWidth, textHeight) = self.name.GetTextSize()
- self.infoButton.SetPosition(textWidth + 25, 12)
- self.infoButton.SetWindowHorizontalAlignLeft()
- self.vnum = vnum
- self.infoButton.Show()