Jump to content

ممكن مساعدة


Recommended Posts

اذا تبي تلون لبل ,

guiLabelSetColor(getControl(wndMain, "X"), 255,0,0) 

X = الكلام حق اللبل

يعني كذا,

{"lbl"; id = "NONAME", text = "X", width = 120},  

اما الزر ,

guiSetProperty(getControl(wndMain, "Kill"), "NormalTextColour", "FF00CCCC") 

Kill = اسم الزر,

يعني كذا,

{"btn"; id = "Kill", onclick = killLocalPlayer, width = 100},  
Link to comment
أنا أبي الكود ذا
{"lbl"; id = "Name", text = "lbl name", width = 120,x = 50}, 

وداخله كود الألوان اللي هوا 255.0.0

مدري وش

فهمتواااا ؟

اذا تبي تلون لبل ,

guiLabelSetColor(getControl(wndMain, "X"), 255,0,0) 

X = الكلام حق اللبل

Link to comment
طيب هاذي كيف أحركها ؟
    guiLabelSetColor(getControl(wndMain, "X"), 255,0,0) 

X = هو الكلام الي داخل اللبل الاساسي ,

يعني لو كان الكلام كذا,

{"lbl"; id = "NONAME", text = "Your Name", width = 120}, 

يصير كود اللون كذا,

guiLabelSetColor(getControl(wndMain, "Your Name"), 255,0,0) 

255,0,0 = الالوان غيرها للي تبيه,

Link to comment

مع هالكود,

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