Tipologie server:pvm
*Resursă folosită:-
*ServerFiles utilizat:serverfiles+sursa
*Syserr:-
Poză:https://gyazo.com/e0beb7dbc76b2bbfa35238c3932e51ec
*Detalii suplimentare:
Ma tot joc cu appendtextline din uitooltip.py si nu reusesc sa-l fac, el alinieaza incepand de la cel mai lung text in jos
def AppendTextLine(self, text, color = FONT_COLOR, centerAlign = True): textLine = ui.TextLine() textLine.SetParent(self) textLine.SetFontName(self.defFontName) textLine.SetPackedFontColor(color) textLine.SetText(text) textLine.SetOutline() textLine.SetFeather(False) textLine.Show() (textWidth, textHeight)=textLine.GetTextSize() textWidth += 45 textHeight += 5 if self.toolTipWidth < textWidth: self.toolTipWidth = textWidth if centerAlign: textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight) textLine.SetHorizontalAlignCenter() else: textLine.SetPosition(10, self.toolTipHeight) self.childrenList.append(textLine) self.toolTipHeight += textHeight self.ResizeToolTip() return textLine




