Jump to content

dxDrawImage


Recommended Posts

Posted (edited)

من المعروف الدي اكس يسبب ضعف في الاف بي اس ع حسب جهازك

فيه اجهزة تتحمل الدي اكس  وفيه اجهزة لا

وسوء الاستخدام برضه يجيب العيد في الاف بي اس 

في البداية تاكد ان م فيه اخطاء

اكتب في اف8

debugscript 3

وصور الكلام الي بيجيك

Edited by !Qut,
Posted (edited)
On 29/05/2020 at 21:06, #\_oskar_/# said:

debugscript 3 ?

 

17 hours ago, !Qut, said:

من المعروف الدي اكس يسبب ضعف في الاف بي اس ع حسب جهازك

فيه اجهزة تتحمل الدي اكس  وفيه اجهزة لا

وسوء الاستخدام برضه يجيب العيد في الاف بي اس 

في البداية تاكد ان م فيه اخطاء

اكتب في اف8

debugscript 3

وصور الكلام الي بيجيك

لا يوجد اي خطا بالدي بق

 

مو طبيعي ينزل من 100 ل 20 واقل

وجوده الصوره صارت ضعيفه

Edited by MohamedSead
Posted
3 minutes ago, -Ilker. said:

طيب اطرح الكود 

addEventHandler("onClientRender", root,
    function()
    	if ( guiGetVisible ( Window ) == true ) then
        dxDrawImage(screenW * 0.2881, screenH * 0.3156, screenW * 0.2568, screenH * 0.2788, ":3.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
        dxDrawImage(screenW * 0.5575, screenH * 0.2943, screenW * 0.1568, screenH * 0.1788, ":4.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
    end

 

Posted
3 minutes ago, -Ilker. said:

ناقصك end للوظيفة وتقفل الحدث بالقوس )

end )

وشبل الـ : من مسار الصوره

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

طيب لو كنت ابي اسوي زر في نظام الدي اكس

وش افضل طريقة

Posted
5 minutes ago, -Ilker. said:

الله يعافيك 

شوف هذا سويته لواحد قبل

 

local function onClick ( button, state )
	if button == 'left' and state == 'up' then
		if isMouseInPosition ( screenW * 0, screenH * 0, screenW * 0, screenH * 0 ) then

هذا ممكن يكون فيه مشكله ؟

Posted
1 minute ago, -Ilker. said:

لا بس ماراح يتفعل لإن اتوقع الماوس ماراح يجي ع الاحداثيات الي حاطها

ماحطيت احداثيات لكن لو فيه ممكن يشتغل ؟

Posted
addEventHandler ( "onClientRender" , root , function ( ) 
dxDrawRectangle ( 400 , 200 , 200 , 20 )
end ) 

addEventHandler ( "onClientClick" , root , function ( button , state )
if ( button == "left" and state == "up" ) then 
if ( isMouseInPosition ( 400,200,200,20 ) ) then 
outputChatBox("done")
end
end
end ) 

شغال معي

Posted (edited)
6 minutes ago, -Ilker. said:

addEventHandler ( "onClientRender" , root , function ( ) 
dxDrawRectangle ( 400 , 200 , 200 , 20 )
end ) 

addEventHandler ( "onClientClick" , root , function ( button , state )
if ( button == "left" and state == "up" ) then 
if ( isMouseInPosition ( 400,200,200,20 ) ) then 
outputChatBox("done")
end
end
end ) 

شغال معي


if ( isMouseInPosition (screenW * 0.2794, screenH * 0.2433, screenW * 0.4412, screenH * 0.5222) ) then
 

هل يضر لو كان بهذا الشكل ؟

يعني الاحداثيات

Edited by MohamedSead
Posted
Just now, #\_oskar_/# said:

طيب اذا عندك اكثر من زر ؟

Metatables  استخدم 

او الجداول اللي يريحك 

ما اعرف اسوي جداول ><

Posted
4 minutes ago, MohamedSead said:

اذا قصدك تعريف

 

screenH , screenW

معرفه باللوحة

طيب ايش الخطأ اللي يظهر بالديبق ؟

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