Jump to content

استفسار


Recommended Posts

Posted
25 minutes ago, MR.StoRm said:

Label :
 


setTimer
guiLabelSetColor
math.random

Button :
 


"onClientResourceStart"
setTimer
getElementsByType
guiSetProperty
math.random

 

مثال؟

Posted
37 minutes ago, MR.StoRm said:

حاول ورح أساعدك 


GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(227, 112, 334, 362, "تجربة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(29, 70, 270, 77, "تجربة", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], math.random(255),math.random(255),math.random(255) )    

 

Posted (edited)
3 minutes ago, A7MEDENO said:

GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(227, 112, 334, 362, "تجربة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(29, 70, 270, 77, "تجربة", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], math.random(255),math.random(255),math.random(255) )    

 

p_530dkq3m1.png

Edited by #Soking
Posted (edited)

test

 
GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(227, 112, 334, 362, "تجربة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(29, 70, 270, 77, "تجربة", false, GUIEditor.window[1])

        addEventHandler ( "onClientResourceStart", root, function (    ) 
setTimer(function() 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end, 50, 0) 

 

Edited by F_F
Posted
1 minute ago, F_F said:

test


 
GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(227, 112, 334, 362, "تجربة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(29, 70, 270, 77, "تجربة", false, GUIEditor.window[1])

        addEventHandler ( "onClientResourceStart", root, function (    ) 

     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.button[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 300, 0 ) 
end )  

 

حبيبي انا كنت مؤدب معك مره واثنين ونصحتك مره واثنين اروهذي الثالثه

ارجوك لا تساعد احد غلط

@!#NssoR_)

شوف حل مع الاخ يا قلبي كانه يتعمد وضع الاخطاء في اكواده

Posted
9 hours ago, A7MEDENO said:

GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(227, 112, 334, 362, "تجربة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(29, 70, 270, 77, "تجربة", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], math.random(255),math.random(255),math.random(255) )    

 

طيب صح ! -_- 

Posted
1 minute ago, #_iMr.[E]coo said:

نو , اذا استخدم الفنكشن هذا ^

لازم يستعمل tl tr bl br 

وش  ذي وكيف استعملها

 

Posted
1 minute ago, #_iMr.[E]coo said:

هذي الوان , استخدم فنكشن


guiLabelSetColor 

 

انا ما ابيها للابل

ابيها للزر

Posted
12 hours ago, F_F said:

test


 
GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(227, 112, 334, 362, "تجربة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(29, 70, 270, 77, "تجربة", false, GUIEditor.window[1])

        addEventHandler ( "onClientResourceStart", root, function (    ) 
setTimer(function() 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end, 50, 0) 

 

متاكد انك مسوي الكود ؟ 

+ صاحب الموضوع ، طلبك هنا

 

Posted
2 hours ago, A7MEDENO said:

string.format("%.2X%.2X%.2X%.2X"

 وش هي

وش فايدتها

وهل لازم تكون موجوده

هذي لتحويل الارقام الى الهيكس او اكواد الهيكس 

 

Posted
Just now, iMr.WiFi..! said:

هذي لتحويل الارقام الى الهيكس او اكواد الهيكس 

 

هل هو ثابت في اي لوحه

ول يتغير من زر لاخر

Posted
Just now, A7MEDENO said:

يعني هي لما اسوي اي لوحه تكون نفسها

ول اغيرها في كل زر

اذا تبي تلون كل ازرار السيرفر تقدر تسوي لوب على الالمنتات بأسم

gui-button

وتغير اللون حقه باستعمال :
 

guiSetProperty

 

Posted
1 minute ago, iMr.WiFi..! said:

اذا تبي تلون كل ازرار السيرفر تقدر تسوي لوب على الالمنتات بأسم

gui-button

وتغير اللون حقه باستعمال :
 


guiSetProperty

 

شكرا

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