mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes quest journal
This commit is contained in:
@@ -1240,3 +1240,37 @@ def pbDrawImagePositions(bitmap,textpos)
|
||||
srcbitmap.dispose
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
#added for quest log script ( edit )
|
||||
def renderMultiLine(bitmap,xDst,yDst,normtext,maxheight,baseColor,shadowColor)
|
||||
for i in 0...normtext.length
|
||||
width=normtext[i][3]
|
||||
textx=normtext[i][1]+xDst
|
||||
texty=normtext[i][2]+yDst
|
||||
if shadowColor
|
||||
height=normtext[i][4]
|
||||
text=normtext[i][0]
|
||||
bitmap.font.color=shadowColor
|
||||
bitmap.draw_text(textx-2,texty-2,width,height,text,0)
|
||||
bitmap.draw_text(textx,texty-2,width,height,text,0)
|
||||
bitmap.draw_text(textx+2,texty-2,width,height,text,0)
|
||||
bitmap.draw_text(textx-2,texty,width,height,text,0)
|
||||
bitmap.draw_text(textx+2,texty,width,height,text,0)
|
||||
bitmap.draw_text(textx-2,texty+2,width,height,text,0)
|
||||
bitmap.draw_text(textx,texty+2,width,height,text,0)
|
||||
bitmap.draw_text(textx+2,texty+2,width,height,text,0)
|
||||
end
|
||||
if baseColor
|
||||
height=normtext[i][4]
|
||||
text=normtext[i][0]
|
||||
bitmap.font.color=baseColor
|
||||
bitmap.draw_text(textx,texty,width,height,text,0)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def drawTextExMulti(bitmap,x,y,width,numlines,text,baseColor,shadowColor)
|
||||
normtext=getLineBrokenChunks(bitmap,text,width,nil,true)
|
||||
renderMultiLine(bitmap,x,y,normtext,numlines*32,baseColor,shadowColor)
|
||||
end
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user