Dr.Xen Posted June 8, 2014 Share Posted June 8, 2014 السلام عليكم ورحمة الله وبركاته.. ممكن كود لون للزر ابيه يكون كذا احط بــ كلنت كل الي بالكلنت تتلون مولازم احط اسم الازرار.. لانها كثير . وشكرآ Link to comment
xX|KeMo|Xx Posted June 8, 2014 Share Posted June 8, 2014 لو كثير سويهـآ في جدول افضل شيء وهذا الكود الي يلون guiSetProperty Link to comment
jafar Posted June 8, 2014 Share Posted June 8, 2014 for i, v in ipairs ( getElementsByType ( "gui-button" ), resourceRoot ) do guiSetProperty ( v, "NormalTextColour", "FFFF0000" ); end Link to comment
#DRAGON!FIRE Posted June 8, 2014 Share Posted June 8, 2014 for i, v in ipairs ( getElementsByType ( "gui-button" ), resourceRoot ) do guiSetProperty ( v, "NormalTextColour", "FFFF0000" ); end عندكـ غلط getElementsByType بين القوسين حق resourceRoot الـ Link to comment
Dr.Xen Posted June 8, 2014 Author Share Posted June 8, 2014 جدول ؟ طيب ممكن مثال عالجدول ! Link to comment
#DRAGON!FIRE Posted June 8, 2014 Share Posted June 8, 2014 يعني تسوي جدول وتحط فيه اسماء الازرار local table = { button1, button2, button3, button4 } Link to comment
</Mr.Tn6eL> Posted June 9, 2014 Share Posted June 9, 2014 Table = { Button1, -- Button2, } for k,v in ipairs(Table) do guiSetProperty(v, "NormalTextColour", "FFFFFFFF") end Link to comment
فاّرس Posted June 11, 2014 Share Posted June 11, 2014 انت تبي كل الازرار الي في ملف الكلينت تتلون ؟ هذا طلبك : for i, v in ipairs ( getElementsByType ( "gui-button" ), resourceRoot ) do guiSetProperty ( v, "NormalTextColour", "FFFF0000" ); end Link to comment
mo76m554 Posted June 22, 2014 Share Posted June 22, 2014 هذه الكود يخلي لون الزر يتغير لألوان عشوائيه setTimer(function() guiSetProperty(اسم الزر, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 250, 0) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now