blinkerchris Posted March 18, 2014 Share Posted March 18, 2014 (edited) Hey, I'm doing a clanwar script, and it has bad letters (thick ones), I'd like normal letters at the cwboard. Look at the picture below. http://tinypic.com/r/2wpupmp/8 How can I make more thin and more readable letters? those unlcear to read. What command should I use? The letters are very right on the picture where it says 'awdawd' and 'Others' Thanks! Edited March 19, 2014 by Guest Link to comment
JR10 Posted March 18, 2014 Share Posted March 18, 2014 There are two arguments in dxDrawText, one specifies the scale and the other specifies the font. dxDrawText Link to comment
blinkerchris Posted March 18, 2014 Author Share Posted March 18, 2014 And thats to edit the letters very right on the photo? sorry for many re-uploads. the photo was very bad. Link to comment
JR10 Posted March 18, 2014 Share Posted March 18, 2014 Yes, if you can find the lines that draw that, you can change the scale and the font. Link to comment
blinkerchris Posted March 18, 2014 Author Share Posted March 18, 2014 Okay, thank you very much! Link to comment
blinkerchris Posted March 18, 2014 Author Share Posted March 18, 2014 dxDrawText ( hexColorHome..homeName..":"..displayHome, (screenWidth/2)+600, screenHeight-390, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), 1.1, "default-bold" , nil, nil, nil, nil, nil, true) dxDrawText ( hexColorVisit..visitName..":"..displayVisit, (screenWidth/2)+600, screenHeight-370, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 1.1, "default-bold", nil, nil, nil, nil, nil, true ) This is what I found, what should I edit here to get a clear text to read? Thanks, I appreciate your help! Link to comment
JR10 Posted March 18, 2014 Share Posted March 18, 2014 dxDrawText ( hexColorHome..homeName..":"..displayHome, (screenWidth/2)+600, screenHeight-390, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), 1.1, "default-bold" , nil, nil, nil, nil, nil, true) These 2 bolded arguments are the ones you shall edit to get the result you want. Changing the scale to 1.0 and the font to default might help. Try this: dxDrawText ( hexColorHome..homeName..":"..displayHome, (screenWidth/2)+600, screenHeight-390, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), 1.0, "default" , nil, nil, nil, nil, nil, true) dxDrawText ( hexColorVisit..visitName..":"..displayVisit, (screenWidth/2)+600, screenHeight-370, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 1.0, "default", nil, nil, nil, nil, nil, true ) Link to comment
blinkerchris Posted March 18, 2014 Author Share Posted March 18, 2014 That went very well! A new bug discovered: I have the resolution 1366x768x32. And the display is not showing on other players screen (they have resolution 1024 and something more. How can I make it show for everyone? no matter what resolution? is there a way to do that? would be great. I have already done the local screenWidth, screenHeight = guiGetScreenSize ( ) command, but it doesn't help. Thanks Link to comment
JR10 Posted March 19, 2014 Share Posted March 19, 2014 You can use try to position it relative to the resolution: local screenWidth, screenHeight = guiGetScreenSize() local relativeWidth, relativeHeight = screenWidth / 1366, screenHeight / 768 dxDrawText ( hexColorHome..homeName..":"..displayHome, relativeWidth * 1283, relativeHeight * 378, screenWidth, screenHeight, tocolor ( 255, 102, 1, 255 ), relativeWidth * 1.0, "default" , nil, nil, nil, nil, nil, true) dxDrawText ( hexColorVisit..visitName..":"..displayVisit, relativeWidth * 1283, relativeHeight * 398, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), relativeWidth * 1.0, "default", nil, nil, nil, nil, nil, true ) Link to comment
blinkerchris Posted March 19, 2014 Author Share Posted March 19, 2014 Okay, I tried that. I have to wait for people to test it now. Do you know any way to make the script save the teamname and points? ForExample: If EG// had 8 points and a yellow team color, and if I do /reconnect when the team has those points. Then when I'm joining, it's 0 points and the team color is back to normal. How to make them save the current points & team color? Thanks Link to comment
JR10 Posted March 19, 2014 Share Posted March 19, 2014 There are several ways, you can use an xml file to list the teams with their colors, and then load it onResourceStart. You can use a database too. 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