so can someone do the ScrW and ScrH maths. of this and show me a finished example because i'm a bit confused atm
surface.SetDrawColor (255,0,0)
surface.DrawLine( 805, h, 854, 612 )
surface.SetDrawColor (255,0,0)
surface.DrawLine( 50, h, 0, 615)
surface.SetDrawColor (255,0,0)
surface.DrawLine( 0, 0, 0, 615)
surface.SetDrawColor (255,0,0)
surface.DrawLine( 852, 0, 852, 615)
it's like i know how to do the maths for ScrW/Scrh but im new to glua so i don't know how the complete code would look like.
P.S this is for a scoreboard.
Thanks in advance to anyone that helps me.
It also depends on your current screen resolution, which we don't know.
these are red lines not that it matters but resolution 1280x1024. i want these though to work on everyones resolution.
if your resolution is 1280x1024 then: ScrW() == 1280; ScrH() == 1024;
And when you draw something at (0 width && 0 height) then you are positioning it at the upper left corner.
That's all you need to know
once again i know how to do the math.
Basically you're telling someone who knows math but doesn't know how to code. that the math is all he needs.
once again i asked for someone to finish these. so i can look at the completed code.
don't bother you wont understand me. multiple people tried to understand me but they failed. the only way you can help is by getting me the completed code.
If you are that smart you could learn Lua instead of wasting our time.
get over your self mate. if you don't wanna help. go hate someplace else. i was specific in the thread. for someone to help me finish this code. that simple.
if you still wanna keep flaming here? go ahead ill simply report you.
The x positions are horizontal, and the y positions are vertical. If something were to be drawn in the center of the screen, the starting position for the x axis would be ScrW() * 0.5 and the starting position of the y axis would be ScrH() * 0.5
surface.DrawLine
Ok now that's math. But he already knows that.
No one’s said this yet?
This is not the place to get spoon-fed code, which is what you’re asking for but under a couple different words. Try stuff for yourself, and when you think it should work as you want and it doesn’t, then ask for help.
mate
ive been looking through the 22 or so threads that you made so far, and in almost all of them you literally want US to do the code for you, and do everything, as fast as possible.
This is not how this works here. You can ask simple questions like "why does this not work", but not tell us to fix EVERYTHING and do EVEVERYTHING for you..
if a mod sees my post, i know this isnt really helping but i had to get this off my chest. In almost all of his threads he wants us to do the code, instead of learning it himself and fixing it himself..
Sorry, you need to Log In to post a reply to this thread.