iMr.TZ[W]ER Posted June 27, 2014 Share Posted June 27, 2014 السلام عليكم ورحمة الله تعالى وبركاته كيف الحال شباب ؟ تعرفون فري روم تطوير ؟ عالاغلب اكيد المهم انا دورت بالمفات علشان اعرف كيف خلا الزر يصير صورة لقيت ذا الكود newFont = guiCreateFont ( "file/Font.ttf", 11 ) guiSetFont ( mainBackgroundLabel, newFont ) function guiCreateButton( x2, y2, width2, height2, titleBarText2, relative2,y ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "file/But.png", relative2,y ) local mainBackgroundLabel = guiCreateLabel ( 15,2,250, 100, titleBarText2, false, mainBackground ) guiLabelSetColor(mainBackgroundLabel,0,255,255) guiLabelSetColor(GridList,0,255,255) guiSetEnabled ( mainBackgroundLabel, false ) guiSetFont ( mainBackgroundLabel, newFont ) return mainBackground end جربته و م ضبط قبل لا تسأل كل شي ضفته لل ميتا وكل شي صحيح مثل ما يبي الكود بس م غير الزر لصورة المهم اللي يعرف كيف استخدمه يقلي اذا في غير هذا الكود عطوني تراني محتاجه مرة وشكرا Link to comment
xFace[B]ook Posted June 28, 2014 Share Posted June 28, 2014 عادي سوه بـ guiCreateStaticImage Link to comment
1REDBULL Posted June 28, 2014 Share Posted June 28, 2014 function guiCreateButton( x2, y2, width2, height2, titleBarText2, relative2,y ) ----شيل ذا وحط كود الصوره مكانه local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "file/But.png", relative2,y ) وعدل الاحداثيات Link to comment
iMr.TZ[W]ER Posted June 28, 2014 Author Share Posted June 28, 2014 يا فيس بوك مش عارف كيف استخدمه ويا ريد بول ايش اشيل فيه ؟ ي ريت لو تحطلي الكود كامل Link to comment
nxFairlywell Posted June 28, 2014 Share Posted June 28, 2014 ما أعـتقـد فيه احـد بـ يجلس يشرح لك الاكواد حق Mta رح الـويكي وتعـلم ! هذه الاكواد الي طلبتها , شرح بس function --- الوظيفة mainBackground --- الخلفية الرئيسية guiCreateStaticImage --- عمل صورة ثابته للواجهة الرئيسية Link to comment
acount deleted Posted June 28, 2014 Share Posted June 28, 2014 انت سو صورة على شكل زر باي شي حتى بالفوتوشوب و استخدم فنكشن guiCreateStaticImage و حطها من غير زر مخفي و خلاص مافيها شي Link to comment
iMr.TZ[W]ER Posted June 28, 2014 Author Share Posted June 28, 2014 طيب شلون اخلي الماوس لما يمر يصير الالفا حق الصورة اقل يعني يصير تأثيرها مثل الزر Link to comment
xFace[B]ook Posted June 28, 2014 Share Posted June 28, 2014 طيب شلون اخلي الماوس لما يمر يصير الالفا حق الصورة اقل يعني يصير تأثيرها مثل الزر 'onClientMouseEnter' 'onClientMouseLeave' guiSetAlpha Link to comment
iMr.TZ[W]ER Posted June 28, 2014 Author Share Posted June 28, 2014 لما اضغط عالخلفية صور الازرار ترجع للخلف Link to comment
acount deleted Posted June 28, 2014 Share Posted June 28, 2014 لما اضغط عالخلفية صور الازرار ترجع للخلف اطرح كودك 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