Hero192 Posted June 26, 2015 Share Posted June 26, 2015 Hello everyone,anyone of you guys know a good way to calcul the normal Gui size to the function getScreenSize? that will shows to all different computers the same size ,like if you did it in middle it show in middle but i need a good way please and how to calculs it to make it exactly and easier to any pos you want,thank you for your care Link to comment
2013martin1212 Posted June 26, 2015 Share Posted June 26, 2015 local x,y = guiGetScreenSize() -- Get players resolution and this way u can use it with the function dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) -- Create our black transparent MOTD background Rectangle. Link to comment
Hero192 Posted June 26, 2015 Author Share Posted June 26, 2015 Anyone can explain how to calcul and put the guiGetScreenSize in the place of crosshair for the custom crosshair that show for all different computers in same location , please tell me how Link to comment
Walid Posted June 26, 2015 Share Posted June 26, 2015 Anyone can explain how to calcul and put the guiGetScreenSize in the place of crosshair for the custom crosshair that show for all different computers in same location , please tell me how All what you need is -- Functions dxCreateShader() dxCreateTexture() getControlState() dxSetShaderValue() engineApplyShaderToWorldTexture() -- Events onClientRender() 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