Jump to content

Ligo

Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

About Ligo

Informations

  • Gender
    Male

Recent Profile Visitors

1680 profile views

Ligo's Achievements

Newbie

Newbie (1/16)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Works like a charm! Thank you so much.
  2. Hello, I'm using 40k client compiled from source but file uiquest.py is broken. This how it looks in game: I dont really know how to fix this. I belive this part of code is handling item showing: # QUEST_IMAGE def OnInsertItemIcon(self, type, idx, title, desc, index=0, total=1): if "item" != type: return import item item.SelectItem(idx) filename = item.GetIconImageFileName() underTitle = title if not title and not desc: title = item.GetItemName() desc = item.GetItemDescription() tempDesc = desc desc = "" import grpText lineCount = grpText.GetSplitingTextLineCount(tempDesc, 25) for i in xrange(lineCount): desc += grpText.GetSplitingTextLine(tempDesc, 25, i) + "/" desc = desc[:-1] self.OnInsertImage(filename, underTitle, title, desc, index, total) def OnInsertImage(self, filename, underTitle, title, desc, index=0, total=1): if index == 0: event.AddEventSetLocalYPosition(self.descIndex, 24) y = event.GetEventSetLocalYPosition(self.descIndex) xBoard, yBoard = self.board.GetGlobalPosition() try: img = ToolTipImageBox() img.SetParent(self.board) img.LoadImage(filename) pos_x = (self.board.GetWidth() * (index + 1) / (total + 1)) - (img.GetWidth() / 2) img.SetPosition(pos_x, y) #img.SetWindowHorizontalAlignCenter() img.DestroyToolTip() if title and desc: img.CreateToolTip(self.board, title, desc, 0, yBoard + y + img.GetHeight()) img.Show() self.images.append(img) except RuntimeError: pass event.AddEventSetLocalYPosition(self.descIndex, img.GetHeight() - 20) if underTitle: event.AddEventSetLocalYPosition(self.descIndex, 3) event.InsertTextInline(self.descIndex, underTitle, (self.board.GetWidth() * (index + 1) / (total + 1))) if index != total - 1: event.AddEventSetLocalYPosition(self.descIndex, -( 3 + 16 )) else: if index == total - 1: event.AddEventSetLocalYPosition(self.descIndex, 4) if index != total - 1: event.AddEventSetLocalYPosition(self.descIndex, -(img.GetHeight() - 20)) # END_OF_QUEST_IMAGE
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.