Jump to content

شلون استخدم هذا الكود ؟


Recommended Posts

السلام عليكم ورحمة الله تعالى وبركاته

كيف الحال شباب ؟

تعرفون فري روم تطوير ؟ عالاغلب اكيد

المهم انا دورت بالمفات علشان اعرف كيف خلا الزر يصير صورة

لقيت ذا الكود

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
function guiCreateButton( x2, y2, width2, height2, titleBarText2, relative2,y ) ----شيل ذا وحط كود الصوره مكانه 
        local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "file/But.png", relative2,y )  

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

Link to comment

ما أعـتقـد فيه احـد بـ يجلس يشرح لك الاكواد حق Mta

رح الـويكي وتعـلم !

هذه الاكواد الي طلبتها , شرح بس

function    ---  الوظيفة 

mainBackground         ---  الخلفية الرئيسية 

guiCreateStaticImage       --- عمل صورة ثابته للواجهة الرئيسية 

Link to comment

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