Overkillz Posted July 11, 2015 Share Posted July 11, 2015 Hey all, I would like to change dxDrawText to dxText:create I have tried it but I couldnt do it. I hope you can help me please. function mapandimagetext() local fontY = dxGetFontHeight(1.0,Racemap.font) local x = fontY/10 if not cRedo then if not Racemap.nextName then dxDrawText("Map: "..Racemap.mapName,x+2*scale,sY-x-fontY-2*scale,sX,sY*1.005-x,tocolor(0,0,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Map: #ffffff"..Racemap.mapName,x,sY-x-fontY,sX,sY*1.005-x,tocolor(255,136,0,255),1.0,"default-bold","left","center",true,true,false,true,false) else dxDrawText("Next Map: "..Racemap.nextName,x+2*scale,sY-fontY-fontY-2*scale,sX,sY*1.005-fontY,tocolor(0,0,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Next Map: #ffffff"..Racemap.nextName,x,sY-fontY-fontY,sX,sY*1.005-fontY,tocolor(255,136,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Map: "..Racemap.mapName,x+2*scale,sY-x-fontY-2*scale,sX,sY*1.005-x,tocolor(0,0,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Map: #ffffff"..Racemap.mapName,x,sY-x-fontY,sX,sY*1.005-x,tocolor(255,136,0,255),1.0,"default-bold","left","center",true,true,false,true,false) end else dxDrawText("Next Map: "..Racemap.mapName,x+2*scale,sY-fontY-fontY-2*scale,sX,sY*1.005-fontY,tocolor(0,0,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Next Map: #ffffff"..Racemap.mapName,x,sY-fontY-fontY,sX,sY*1.005-fontY,tocolor(255,136,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Map: "..Racemap.mapName,x+2*scale,sY-x-fontY-2*scale,sX,sY*1.005-x,tocolor(0,0,0,255),1.0,"default-bold","left","center",true,true,false,true,false) dxDrawText("Map: #ffffff"..Racemap.mapName,x,sY-x-fontY,sX,sY*1.005-x,tocolor(255,136,0,255),1.0,"default-bold","left","center",true,true,false,true,false) end end Thanks for all Regards. Link to comment
LabiVila Posted July 11, 2015 Share Posted July 11, 2015 https://wiki.multitheftauto.com/wiki/OOP_Introduction it's not all about changing the look, you have to deal with some other stuff then Link to comment
ixjf Posted July 11, 2015 Share Posted July 11, 2015 Don't mess with OOP if you don't know what it is or you don't even know how to code. 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