z24d Posted September 25, 2015 Share Posted September 25, 2015 hi guys i download [guimessages] mod but i had a little problem on the fonts see this pecture http://cdn.top4top.co/i_8a5a3cd1051.png and this? http://cdn.top4top.co/i_b6c6f003c01.png why the text is unclear? CODE LUA local x, y = guiGetScreenSize() local Rows = {} local R = 0 function outputClient(text, r, g, b) local r = r or 255 local g = g or 255 local b = b or 255 local color = tocolor(r, g, b, 255) R = R + 17 table.insert(Rows, {text, color, R}) setTimer(function() setTimer(function() if R > 0 then R = R - 1.0 for i, row in pairs(Rows) do Rows[i] = {row[1], row[2], row[3] - 1.0} if row[3] <= 0 then table.remove(Rows, i) end end end end, 50, 17) end, 10000, 1) end addEvent("calloutputClient", true) addEventHandler("calloutputClient", root, outputClient) function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 250)) for i, row in pairs(Rows) do dxDrawText(row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.0, "default-bold", "center", "center", true, false, false, true, true) end end addEventHandler("onClientPreRender", root, drawRows)) Link to comment
TAPL Posted September 25, 2015 Share Posted September 25, 2015 It's because you're using a resource that never been released and it was leaked. Link to comment
z24d Posted September 26, 2015 Author Share Posted September 26, 2015 sorry but i see that unclear font in gui and if i use drawText i see that unclear font so where is the problem Link to comment
z24d Posted September 26, 2015 Author Share Posted September 26, 2015 i fix it thanx : ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now