Jump to content

طلب دي اكس


Recommended Posts

Posted

سلام عليكم

 

معي كلام دي اكس بس ما يجي لكل الشاشات

dxDrawText( "#ffffffWelcome", 10, 457, 790, 500, tocolor(255, 0, 0, 255), 2.50, "default", "center", "center", false, false, true, true, false )

ابيه يجي زي كذا

p_9501nycv1.png

للكل الشاشات

 

Posted
On 22/03/2018 at 17:18, #َxLysandeR said:

function convertToAllScreens(x, y, w, h, resolutionX, resolutionY)
	if tonumber(x) and tonumber(y) and tonumber(w) and tonumber(h) and tonumber(resolutionX) and tonumber(resolutionY) then
		local screenW, screenH = guiGetScreenSize()
		local newX, newY, newW, newH = (x/resolutionX)*screenW, (y/resolutionY)*screenH, (w/resolutionX)*screenW, (h/resolutionY)*screenH
		return newX, newY, newW, newH
	end
	return false
end

x, y, w, h  = الاحداثيات و الحجم

resolutionX, resolutionY = مقاس شاشتك الي صممت به اللوحه

-----------

returns x, y, w, h = الاحداثيات و الحجم الجديد الي يناسب كل الشاشات

Example : 


addEventHandler("onClientRender", root,
	function()
		local x, y, w, h = convertToAllScreens(383, 186, 515, 31, 1280, 800)
		dxDrawRectangle(x, y, w, h, tocolor(255, 255, 255, 125), false)
	end
)

الفانكشن تنفع لي الـ

GUI + DX

 

 

Chillin' with some demons, satans and vamps

Posted
Just now, +Source|> said:

ما فهمت

 

يعني ابدل 

resolutionX, resolutionY

بشاشتي بس ؟

 

ول 

up ?

اسهل طريقة بالنسبة لي

عندك يوم تيجي تسوي شي بالجيو ايديتور

حدد عليه من كليك يمين

وانزل حدد علي realtive

بيظبط لكل الشاشات تلقائي

بس اهم شي قبل ما تسوي الخطوة ذي

لازم تخلي مقاس شاشتك

800 x 600

هذي الطريقة استخدمها وشغالة 100%

  • Like 1
  • Thanks 1
Posted
8 minutes ago, #DesTroeyR said:

اسهل طريقة بالنسبة لي

عندك يوم تيجي تسوي شي بالجيو ايديتور

حدد عليه من كليك يمين

وانزل حدد علي realtive

بيظبط لكل الشاشات تلقائي

بس اهم شي قبل ما تسوي الخطوة ذي

لازم تخلي مقاس شاشتك

800 x 600

هذي الطريقة استخدمها وشغالة 100%

يعطيك العافيه

  • Like 1
Posted
2 minutes ago, #DesTroeyR said:

حياك الله ^ :) 

رد خآص ض1

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
1 hour ago, #DesTroeyR said:

اسهل طريقة بالنسبة لي

عندك يوم تيجي تسوي شي بالجيو ايديتور

حدد عليه من كليك يمين

وانزل حدد علي realtive

بيظبط لكل الشاشات تلقائي

بس اهم شي قبل ما تسوي الخطوة ذي

لازم تخلي مقاس شاشتك

800 x 600

هذي الطريقة استخدمها وشغالة 100%

+1
تقدر تستعمله علي طول من guieditor 

1 hour ago, #DesTroeyR said:

حياك الله ^ :) 

تعال السيرفر

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