Jump to content

longsnake34

Members
  • Posts

    7
  • Joined

  • Last visited

Details

  • Location
    Bulgaria

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

longsnake34's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. how to move text to red zone ? Image local screenX, screenY = guiGetScreenSize() local responsiveMultiplier = (screenX + 2048) / (2048 * 2) local testRectangleWidth = 350 * responsiveMultiplier local testRectangleHeight = 225 * responsiveMultiplier local testFont = dxCreateFont("font.ttf", 14 * responsiveMultiplier, false, "antialiased") local marginOffset = 10 local rightSideOfTheScreen = (screenX - marginOffset) - testRectangleWidth local centerTheBoxY = (screenY - testRectangleHeight) / 2 function render() dxDrawRectangle(rightSideOfTheScreen, centerTheBoxY, testRectangleWidth, testRectangleHeight, tocolor(0, 0, 0, 150)) for i = 1, 5 do dxDrawText ( ""..i..". GridList DX",rightSideOfTheScreen, centerTheBoxY+50*i, testRectangleWidth, testRectangleHeight, tocolor ( 255, 255, 255, 255 ), 0.8,testFont,"center","center",true,true,true,true,false) end end addEventHandler("onClientRender", root, render)
  2. I don't know I need your help 800x600 Image 1 1360x768 Image 2
  3. @iPrestege Would problem in Resolution? (1360x, 800x600, 2960x, 640x) local sx, sy = guiGetScreenSize( ) addEventHandler( "onClientRender", root, function( ) dxDrawText( "Resolution example", sx*( 684/1024 ), sy*( 731/768 ), sx*( 732/1024 ), sy( 766/768 ), tocolor(0,255,255,175), sx/1000*1.0,"bankgothic","left","top",false,false,false ) end )
  4. @Bonsai I couldn't find it can you give example to all screen resolutions ? but 800x600 screen resolution is problem
  5. Hi dude how are you ? My problem is screen resolution for example(1360x and 1690x or 2960x) and how to make all screen resolutions ?
×
×
  • Create New...