Jump to content

DxDraw(AGAIN -.-)


Mefisto_PL

Recommended Posts

Posted (edited)

Okey... I have script to show news it's working on every resolution.. But on 1366 x 768 it looks like: Click

Can somebody make it working on every resolution? I was struggling with this for a long time.. And I don't know how can I do that..

Edited by Guest
Posted

you don't use the screen width and height values you had, so it doesn't work well.

if you want picture to be y pixels from bottom use posY=sHeight-y

Posted

example:

  
local screenWidth, screenHeight = guiGetScreenSize() 
local recWidth = screenWidth 
local recHeight = 75 
dxDrawRectangle(0, screenHeight - recHeight, recWidth, recHeight, tocolor(0, 0, 0, 192), false) 
  

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...