Ligo
-
Posts
2 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Ligo
-
-
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
uiquest.py problem
in Community Support - Questions & Answers
Posted
Works like a charm! Thank you so much.