Jump to content

مساعدة .. طريقة التعديل على الفري روم


Recommended Posts

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

اليوم قلت بسوي فري روم بنفسي .. بس المشكلة لاحظت أكواد الفري روم معقدهـ شوي

يعني احسها اختصارات ومدري كيف .. يعني مثلا وين الاقي احداثيات النافذة والأزرار وفنكشنات الضغط على الزر في الفري روم الأصلي

وكيف اعدل عليها وعلى احداثيات الزر و النافذة و الفنكشنات .. لأنها مو زي النافذة العادية

وهل أقدر أحول النافذة والأزرار لـ دي اكس مع نفس الفنكشنات

وشكرآآ ..

Link to comment

تعديلك يكون على ملف ال fr_client

تروح عند كود النافذه والازرار

ذا

  
wndMain = { 
    'wnd', 
    text = 'FR GUI',  
    x = 10, احداثيات نحريك النافذه يسار او يمين 
    y = 150, تحريك النافذه فوق او تحت 
    width = 280, للتحكم فى حجم النافذه 
    controls = { 
        {'lbl', text='Local player'}, 
        {'br'}, 
        {'btn', id='kill', onclick=killLocalPlayer},  
        {'btn', id='skin', window=wndSkin}, 
        {'btn', id='anim', window=wndAnim}, 
        {'btn', id='weapon', window=wndWeapon}, 
        {'btn', id='clothes', window=wndClothes}, 
        {'btn', id='playergrav', text='grav', window=wndGravity}, 
        {'btn', id='warp', window=wndWarp}, 
        {'btn', id='stats', window=wndStats}, 
        {'btn', id='bookmarks', window=wndBookmarks}, 
        {'br'}, 
        {'chk', id='jetpack', onclick=toggleJetPack}, 
        {'chk', id='falloff', text='fall off bike', onclick=toggleFallOffBike}, 
        {'br'}, 
         
        {'lbl', text='Pos:'}, 
        {'lbl', id='xpos', text='x', width=45}, 
        {'lbl', id='ypos', text='y', width=45}, 
        {'lbl', id='zpos', text='z', width=45}, 
        {'btn', id='setpos', text='map', window=wndSetPos}, 
        {'btn', id='setinterior', text='int', window=wndSetInterior}, 
        {'br'}, 
        {'br'}, 
         
        {'lbl', text='Vehicles'}, 
        {'br'}, 
        {'lbl', text='Current:'}, 
        {'lbl', id='curvehicle'}, 
        {'br'}, 
        {'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, 
        {'btn', id='repair', onclick=repairVehicle}, 
        {'btn', id='flip', onclick=flipVehicle}, 
        {'btn', id='upgrades', window=wndUpgrades}, 
        {'btn', id='color', onclick=openColorPicker}, 
        {'btn', id='paintjob', window=wndPaintjob}, 
        {'br'}, 
        {'chk', id='lightson', text='Lights on', onclick=forceLightsOn}, 
        {'chk', id='lightsoff', text='Lights off', onclick=forceLightsOff}, 
        {'br'}, 
        {'br'}, 
         
        {'lbl', text='Environment'}, 
        {'br'}, 
        {'btn', id='time', window=wndTime}, 
        {'chk', id='freezetime', text='freeze', onclick=toggleFreezeTime}, 
        {'btn', id='weather', window=wndWeather}, 
        {'btn', id='speed', window=wndGameSpeed} 
    }, 
    oncreate = mainWndShow, 
    onclose = mainWndClose 
  
  

عشان تعدل على احداثيات الزر

تسوى كذا

مثال على زر الانتحار

{'btn', id='kill', onclick=killLocalPlayer,x = 20,width = 120,}, 

والفرى روم تعديله سهل جدا بس تفهمه وان شاء الله تصير محترف فيه

Link to comment
تعديلك يكون على ملف ال fr_client

تروح عند كود النافذه والازرار

ذا

  
wndMain = { 
    'wnd', 
    text = 'FR GUI',  
    x = 10, احداثيات نحريك النافذه يسار او يمين 
    y = 150, تحريك النافذه فوق او تحت 
    width = 280, للتحكم فى حجم النافذه 
    controls = { 
        {'lbl', text='Local player'}, 
        {'br'}, 
        {'btn', id='kill', onclick=killLocalPlayer},  
        {'btn', id='skin', window=wndSkin}, 
        {'btn', id='anim', window=wndAnim}, 
        {'btn', id='weapon', window=wndWeapon}, 
        {'btn', id='clothes', window=wndClothes}, 
        {'btn', id='playergrav', text='grav', window=wndGravity}, 
        {'btn', id='warp', window=wndWarp}, 
        {'btn', id='stats', window=wndStats}, 
        {'btn', id='bookmarks', window=wndBookmarks}, 
        {'br'}, 
        {'chk', id='jetpack', onclick=toggleJetPack}, 
        {'chk', id='falloff', text='fall off bike', onclick=toggleFallOffBike}, 
        {'br'}, 
         
        {'lbl', text='Pos:'}, 
        {'lbl', id='xpos', text='x', width=45}, 
        {'lbl', id='ypos', text='y', width=45}, 
        {'lbl', id='zpos', text='z', width=45}, 
        {'btn', id='setpos', text='map', window=wndSetPos}, 
        {'btn', id='setinterior', text='int', window=wndSetInterior}, 
        {'br'}, 
        {'br'}, 
         
        {'lbl', text='Vehicles'}, 
        {'br'}, 
        {'lbl', text='Current:'}, 
        {'lbl', id='curvehicle'}, 
        {'br'}, 
        {'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, 
        {'btn', id='repair', onclick=repairVehicle}, 
        {'btn', id='flip', onclick=flipVehicle}, 
        {'btn', id='upgrades', window=wndUpgrades}, 
        {'btn', id='color', onclick=openColorPicker}, 
        {'btn', id='paintjob', window=wndPaintjob}, 
        {'br'}, 
        {'chk', id='lightson', text='Lights on', onclick=forceLightsOn}, 
        {'chk', id='lightsoff', text='Lights off', onclick=forceLightsOff}, 
        {'br'}, 
        {'br'}, 
         
        {'lbl', text='Environment'}, 
        {'br'}, 
        {'btn', id='time', window=wndTime}, 
        {'chk', id='freezetime', text='freeze', onclick=toggleFreezeTime}, 
        {'btn', id='weather', window=wndWeather}, 
        {'btn', id='speed', window=wndGameSpeed} 
    }, 
    oncreate = mainWndShow, 
    onclose = mainWndClose 
  
  

عشان تعدل على احداثيات الزر

تسوى كذا

مثال على زر الانتحار

{'btn', id='kill', onclick=killLocalPlayer,x = 20,width = 120,}, 

والفرى روم تعديله سهل جدا بس تفهمه وان شاء الله تصير محترف فيه

يعطيك العآفية .. بس ممكن تقلي وين ألاقي أسماء الأزرار والوظائف حقتها .. مثلا زي الزر حق اظهار لوحة المواتر .. وين الاقي اسمه والوظيفة حقت اظهار النافذة حقت السيارات ؟ .. وشكرآ

Link to comment
{'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, 

createvehicle = اسم الزر

واذا كنت تبي تضيف لوحه جديده

{"btn"; id = 'اسم الزر', window = اسم اللوحه,x = 20,width = 250}, 

وبعدين تسوى لوحه

اسم اللوحه = { 
"wnd"; 
text = "Text",  
width = 330, 
x =290, 
y = 180, 
controls = { 
{"btn"; id = "إغلاق", closeswindow = true}},} 

Edited by Guest
Link to comment
{'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, 

createvehicle = اسم الزر

واذا كنت تبي تضيف لوحه جديده

{"btn"; id = 'اسم الزر', window = اسم اللوحه,x = 20,width = 250}, 

وبعدين تسوى لوحه

اسم اللوحه = { 
"wnd";  
text = "Text",   
width = 330, 
x =290, 
y = 180, 
controls = { 
{"btn"; id = "إغلاق", closeswindow = true}},} 

طيب كيف أقدر أضيف مثلا أداة غير الزر .. زي شيك بوكس أو اديت بوكس ووين أضيفها ؟

Link to comment
{'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, 

createvehicle = اسم الزر

واذا كنت تبي تضيف لوحه جديده

{"btn"; id = 'اسم الزر', window = اسم اللوحه,x = 20,width = 250}, 

وبعدين تسوى لوحه

اسم اللوحه = { 
"wnd";  
text = "Text",   
width = 330, 
x =290, 
y = 180, 
controls = { 
{"btn"; id = "إغلاق", closeswindow = true}},} 

طيب كيف أقدر أضيف مثلا أداة غير الزر .. زي شيك بوكس أو اديت بوكس ووين أضيفها ؟

فيه ملف اسمه gui

افتحه راح تحصل

ذا الكود ب اول السطر

  
classInfo = { 
    wnd = {className = 'Window', padding = {25, 10, 10, 10}, isContainer = true}, 
    tbp = {className = 'TabPanel'}, 
    tab = {className = 'Tab', padding = 10, isContainer = true}, 
    lbl = {className = 'Label', height = 20}, 
    btn = {className = 'Button', height = 20, padding = {0, 4}}, 
    chk = {className = 'CheckBox', height = 20, padding = {0, 6}}, 
    rad = {className = 'RadioButton', height = 20, padding = {0, 10}}, 
    txt = {className = 'Edit', width=100, height = 24}, 
    lst = {className = 'GridList', width = 250, height = 400}, 
    img = {className = 'StaticImage'} 
} 

اذا تبي تضيف شئ غير البوتون

قبل ال = فيه تعريف الزر او التشيك بوكس والخ

wnd = تعريف اللوحه

btn = تعريف البوتون

chk = تعريف ال تشيك تبوكس

والخ

واى استفسار تفضل قوله

Link to comment
{'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, 

createvehicle = اسم الزر

واذا كنت تبي تضيف لوحه جديده

{"btn"; id = 'اسم الزر', window = اسم اللوحه,x = 20,width = 250}, 

وبعدين تسوى لوحه

اسم اللوحه = { 
"wnd";  
text = "Text",   
width = 330, 
x =290, 
y = 180, 
controls = { 
{"btn"; id = "إغلاق", closeswindow = true}},} 

طيب كيف أقدر أضيف مثلا أداة غير الزر .. زي شيك بوكس أو اديت بوكس ووين أضيفها ؟

فيه ملف اسمه gui

افتحه راح تحصل

ذا الكود ب اول السطر

  
classInfo = { 
    wnd = {className = 'Window', padding = {25, 10, 10, 10}, isContainer = true}, 
    tbp = {className = 'TabPanel'}, 
    tab = {className = 'Tab', padding = 10, isContainer = true}, 
    lbl = {className = 'Label', height = 20}, 
    btn = {className = 'Button', height = 20, padding = {0, 4}}, 
    chk = {className = 'CheckBox', height = 20, padding = {0, 6}}, 
    rad = {className = 'RadioButton', height = 20, padding = {0, 10}}, 
    txt = {className = 'Edit', width=100, height = 24}, 
    lst = {className = 'GridList', width = 250, height = 400}, 
    img = {className = 'StaticImage'} 
} 

اذا تبي تضيف شئ غير البوتون

قبل ال = فيه تعريف الزر او التشيك بوكس والخ

wnd = تعريف اللوحه

btn = تعريف البوتون

chk = تعريف ال تشيك تبوكس

والخ

واى استفسار تفضل قوله

مشكور .. لكن ما قلت لي وين احصل الفنكشن حق الزر

مثلا زر الانتحار

onclick=killLocalPlayer 

مو هذا اختصار ؟ .. وين الفنشكن الحقيقي حق الانتحار

Link to comment
تبغى تريح راسكـ .. سو لك فري روم من جديد بنفسكـ وضبطه ع كيفك

أنا نفسي أسويه دي اكس .. بس المشكلة في عندي أكواد ناقصهـ

نساعدك مافي مشكلة .. ولو احتجت ضيفني سكايب .. هذا لو ودك تغيره كله اما لو تعديلات بسيطة ما يحتاج ..

لكن لو تبي واحد دي اكس وكل شي زي ما تبيه سو واحد جديد احسن لك

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