TamerNWSC Posted May 10, 2020 Share Posted May 10, 2020 Hello everyone i want to do something like this I want to do something like this but i cannot find true command,function for that black bars i dont know can we do like a tunnel look like this but can you boys help me to how can i add black area like this i can complete my cod rest of them is not too complicated thanks for everyone Link to comment
TamerNWSC Posted May 11, 2020 Author Share Posted May 11, 2020 14 hours ago, Furzy said: image with center png So you mean im gonna make a png and make the script add it into the screen am i get it ? Link to comment
Furzy Posted May 11, 2020 Share Posted May 11, 2020 5 hours ago, TamerNWSC said: So you mean im gonna make a png and make the script add it into the screen am i get it ? no, i mean use functions like this to get black bars dxDrawImage guiCreateStaticImage Link to comment
Gordon_G Posted May 11, 2020 Share Posted May 11, 2020 1 - Download an image like this one (or make it yourself) https://www.google.fr/search?q=transparent+with+black+vignette&tbm=isch&ved=2ahUKEwjwpvrU96zpAhX6gM4BHcEBC8oQ2-cCegQIABAA&oq=transparent+with+black+vignette&gs_lcp=CgNpbWcQAzoECCMQJzoECAAQQzoCCAA6BAgAEB46BAgAEBM6CAgAEAgQHhATOgYIABAIEB46BggAEAUQHlCcnAZYnbgGYKq5BmgAcAB4AIABQIgB9wiSAQIyMJgBAKABAaoBC2d3cy13aXotaW1n&sclient=img&ei=1Nu5XvDsO_qBur4PwYOs0Aw&bih=631&biw=1366#imgrc=dXC6_MSyTzxFAM 2 - Add it to your resource's meta.xml by adding a line like this one <file src="your name file.extension" /> 3 - Draw it to the player's screen by using script You'll need to retrieve player's screen weight and height in order to draw the image fullscreen guiGetScreenSize Then draw the image with one of the functions that Furzy gave you 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