Jump to content

[HELP]Help panel dx


DiGiTal

Recommended Posts

hi, i've done a dx help panel i done all objects to relatif , after on my resolution looks very nice, but on otheres ones as 1400x700,800x600

images

Quote

8VXDAXj.png

script

local screenW,screenH = guiGetScreenSize()
local dxShowing = false
function renderDX()
	  dxDrawLine((screenW * 0.1175) - 1, (screenH * 0.1000) - 1, (screenW * 0.1175) - 1, screenH * 0.9000, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(screenW * 0.8825, (screenH * 0.1000) - 1, (screenW * 0.1175) - 1, (screenH * 0.1000) - 1, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine((screenW * 0.1175) - 1, screenH * 0.9000, screenW * 0.8825, screenH * 0.9000, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(screenW * 0.8825, screenH * 0.9000, screenW * 0.8825, (screenH * 0.1000) - 1, tocolor(0, 0, 0, 255), 1, true)
        dxDrawRectangle(screenW * 0.1175, screenH * 0.1000, screenW * 0.7650, screenH * 0.8000, tocolor(100, 173, 247, 200), true)
        dxDrawLine(screenW * 0.1175, screenH * 0.1500, screenW * 0.8812, screenH * 0.1500, tocolor(255, 255, 255, 255), 1, true)
        dxDrawText("Zero Fear -Help Panel-", screenW * 0.4325, screenH * 0.1050, screenW * 0.9875, screenH * 0.1500, tocolor(0, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, true, false, false)
        dxDrawRectangle(screenW * 0.1175, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true)
        dxDrawRectangle(screenW * 0.4063, screenH * 0.1583, 141, 30, tocolor(26, 16, 27, 150), true)
        dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
        dxDrawLine((screenW * 0.4063) - 1, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(screenW * 0.5825, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine((screenW * 0.4063) - 1, screenH * 0.5733, screenW * 0.5825, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(screenW * 0.5825, screenH * 0.5733, screenW * 0.5825, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true)
        dxDrawRectangle(screenW * 0.4063, screenH * 0.2083, screenW * 0.1762, screenH * 0.3650, tocolor(26, 16, 27, 150), true)
        dxDrawText("Rules", screenW * 0.1737, screenH * 0.1717, screenW * 0.3425, screenH * 0.2083, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
        dxDrawText("[Founders]\nAnonymous\nGamer\n[Admins]\nSmoke\nTeodora\n[Staff]\n Linux\n JayZer", screenW * 0.4500, screenH * 0.2083, screenW * 0.6288, screenH * 0.5733, tocolor(244, 180, 205, 251), 1.00, "default", "left", "top", false, true, true, false, false)
        dxDrawText("", 94, 128, 94, 129, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
        dxDrawText("-Don't camp\n-Don't Hack\n-Don't GK in Shooter ! (GK=Kick)\n-Don't use any nick of admins 'ZF'\n-Respect the admins.\n-Don't insult anyone.\n-Don't ask for admin rights, Go apply on forum, if you don't have any answre Just WAIT.\n-Don't Ask Admins to vote vor you .\n", 99 + 1, 129 + 1, 323 + 1, 344 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, false, false)
        dxDrawText("-Don't camp\n-Don't Hack\n-Don't GK in Shooter ! (GK=Kick)\n-Don't use any nick of admins 'ZF'\n-Respect the admins.\n-Don't insult anyone.\n-Don't ask for admin rights, Go apply on forum, if you don't have any answre Just WAIT.\n-Don't Ask Admins to vote vor you .\n", 99, 129, 323, 344, tocolor(254, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, false, false)
        dxDrawRectangle(screenW * 0.1175, screenH * 0.2083, screenW * 0.2825, screenH * 0.2683, tocolor(26, 16, 27, 150), true)
        dxDrawLine(screenW * 0.1175, screenH * 0.8617, screenW * 0.8812, screenH * 0.8617, tocolor(255, 255, 255, 255), 1, true)
        dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
        dxDrawRectangle(503, 92, 141, 30, tocolor(26, 16, 27, 150), true)
        dxDrawLine(475 - 1, 126 - 1, 475 - 1, 513, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(695, 126 - 1, 475 - 1, 126 - 1, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(475 - 1, 513, 695, 513, tocolor(0, 0, 0, 255), 1, true)
        dxDrawLine(695, 513, 695, 126 - 1, tocolor(0, 0, 0, 255), 1, true)
        dxDrawRectangle(screenW * 0.5938, screenH * 0.2100, 220, 387, tocolor(26, 16, 27, 150), true)
        dxDrawText("FAQ", (screenW * 0.6963) + 1, (screenH * 0.1667) + 1, (screenW * 0.8175) + 1, (screenH * 0.2533) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
        dxDrawText("FAQ", screenW * 0.6963, screenH * 0.1667, screenW * 0.8175, screenH * 0.2533, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
        dxDrawText("Q)What is the forum\nA)http://Zerofear.boards.net\nQ) is the teaming allowed?\nA) Yes,it is.\nQ) A admin kicked,muted,banned me !\nA) Sure,your rule break.if you see any abuse about admins/staff please report in game or on forum.\nQ) How can i invite players to my team ?\nA) tap : /team invite [playername]\nQ) I would like to join ZF staff ?\nA) Sure , Go see the forum (zerofear.boards.net)\nQ) How can i accept invite ?\nA) Tap : /team accept\nQ) How to decline invite ?\nA) Tap : /team decline\n", screenW * 0.5962, screenH * 0.2267, screenW * 0.8712, screenH * 0.8700, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", true, true, true, false, false)
        dxDrawRectangle(screenW * 0.1237, screenH * 0.5633, screenW * 0.1550, screenH * 0.0367, tocolor(26, 16, 27, 150), true)
        dxDrawRectangle(screenW * 0.1237, screenH * 0.6067, screenW * 0.4637, screenH * 0.2450, tocolor(26, 16, 27, 150), true)
        dxDrawText("Premuim", screenW * 0.1725, screenH * 0.5633, screenW * 0.3412, screenH * 0.6000, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
        dxDrawText("why to donate?\n1) get your rewards(money,vip skin)\n2)Get Premuim Panel(premuim cars,lights)\n3)Get many features as the vip wheels.\n4)Ask admin for the others features\n5)with 1$ you get 1 week vip features.\n6)ask admin if help needed", screenW * 0.1263, screenH * 0.6150, screenW * 0.5750, screenH * 0.8383, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false)
   end
bindKey("F7","down",
	function()
		dxShowing = not dxShowing
		showCursor( dxShowing )
		if dxShowing then
			addEventHandler( "onClientRender",root, renderDX )
		else
			removeEventHandler( "onClientRender",root, renderDX )
		end		
	end
	)
	

 

Link to comment

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...