1. //uitarget.py
  2. //arat
  3. def SetEnemyVID(self, vid):
  4. //içerisinde bul
  5. (textWidth, textHeight) = self.name.GetTextSize()
  6. self.infoButton.SetPosition(textWidth + 25, 12)
  7. self.infoButton.SetWindowHorizontalAlignLeft()
  8. self.vnum = vnum
  9. self.infoButton.Show()
  10. //degiştir
  11. if not chr.GetInstanceType(self.vid) == chr.INSTANCE_TYPE_PLAYER:
  12. (textWidth, textHeight) = self.name.GetTextSize()
  13. self.infoButton.SetPosition(textWidth + 25, 12)
  14. self.infoButton.SetWindowHorizontalAlignLeft()
  15. self.vnum = vnum
  16. self.infoButton.Show()