Jump to content

طلبب اكوااد


Recommended Posts

addEventHandler("onClientMouseEnter", root, 
function( ) 
    if (source == Button1) then 
    guiSetText (Button1, 'Login' ) 
    end 
end 
) 
  
addEventHandler("onClientMouseLeave", root, 
function( ) 
    if (source == Button1) then 
    guiSetText (Button1,  '' ) 
    end 
end 

onClientMouse Enter اذا حط الماوس على الزر

يطلع له 'Login'

onClientMouseLeave

يمسح الكلمه من الزر . .

غير Button1

= لاسم الزر اللي تبيه

واذا هو ليبل اللي عندك

غير Button1

لاسم الليبل اللي يطلع فيه الكلام

Link to comment

اخوي انا سويت كذاا بسس اللوحه ماتفتح

addEventHandler("onClientMouseEnter", root, 
function( ) 
    if (source == wnd) then 
    guiSetText (onlogin, 'تسجيل الدحول' ) 
    end 
end 
) 
  
addEventHandler("onClientMouseLeave", root, 
function( ) 
    if (source == wnd) then 
    guiSetText (onregister,  'التسجيل' ) 
    end 
end 

Link to comment
اخوي انا سويت كذاا بسس اللوحه ماتفتح
addEventHandler("onClientMouseEnter", root, 
function( ) 
    if (source == wnd) then 
    guiSetText (onlogin, 'تسجيل الدحول' ) 
    end 
end 
) 
  
addEventHandler("onClientMouseLeave", root, 
function( ) 
    if (source == wnd) then 
    guiSetText (onregister,  'التسجيل' ) 
    end 
end 

نزل اللوحه

Link to comment

اللوحه مثاال ابي مثلا ZR1 اذا حطيت الماوس عليه يظهر كلام فوق الزر

وبمجرد ماوخر الماوس يختفي الكلام

--------------------------------

GUIEditor = { 
    memo = {}, 
    staticimage = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(20, 15, 1323, 725, "Gta-Fox", false) 
        guiWindowSetSizable(wnd, false) 
        showCursor(true) 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 1304, 695, "Fox.png", false, wnd) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FFFC0B00 tr:FFFC0B00 bl:FFFC0B00 br:FFFC0B00") 
  
        ZR1 = guiCreateButton(481, 384, 346, 64, "انتقل الى السيرفر الجديد اضغط هناااا !!!!", false, GUIEditor.staticimage[1]) 
        guiSetFont(ZR1, "default-bold-small") 
        guiSetProperty(ZR1, "NormalTextColour", "FF00FDFB") 
        GUIEditor.memo[1] = guiCreateMemo(471, 174, 370, 141, "mtasa://92.222.25.232:55511  << اي بي سيرفر الزومبي\n\n[url=mtasa://92.222.25.232:22002]mtasa://92.222.25.232:22002[/url]   <<  اي بي سيرفر الديث ماتش  \n\n                                     [Gta-Fox] ", false, GUIEditor.staticimage[1]) 
        KTT = guiCreateLabel(481, 454, 346, 15, "=====================================================", false, GUIEditor.staticimage[1]) 
        KT = guiCreateLabel(481, 355, 346, 15, "=====================================================", false, GUIEditor.staticimage[1])     
    end 
) 

Link to comment

طيب اذا تبي فوق الزر

سوي ليبل فوق احداثيات الزر

اما اذا تبي تغير كلمة الزر نفسه

امسح

انتقل الى السيرفر الجديد اضغط هناااا !!!

خله فاضي واستخدم الكود اللي عطيتك فوق

Link to comment

جرب كذا ولا تنسى تستبدل متغير الزر حقكـ .. :

addEventHandler( "onClientMouseEnter", resourceRoot, function( ) 
  if ( source == button ) then 
    if not ( isElement ( label ) ) then 
         local pX, pY = guiGetPosition ( source, false ) 
         local sX, sY = guiGetSize ( source, false ) 
         label = guiCreateLabel  ( ( pX ) + 20, pY, sX, sY, "* تسجيل الدخول .", false ) 
  else 
         destroyElement ( label ) 
      end 
   end 
end )  
  
addEventHandler( "onClientMouseLeave", resourceRoot, function( ) 
  if ( source == button ) then 
    if ( isElement ( label ) ) then 
          destroyElement ( label ) 
      end 
   end 
end ) 
Link to comment

^ ???? :(

-----

: هذا رابط تحميله وشرح استعماله تلقاه بالدسكربشن GUI Tooltips بالنسبة لصاحب الموضوع استخدم مود

https://community.multitheftauto.com/index.php?p=resources&s=details&id=3054

: لو مافهمت زين ع الشرح، شوف الشرح هذا ^

button = guiCreateButton(50,100,200,200, "TEST", false, theWindow) -- مثال على زر 
setElementData(button, "tooltip-text", "الكلام الي تبيه هنا", false) -- أضافة الكلام للزر 
setElementData(button, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط 
setElementData(button, "tooltip-background", "#666666", false) -- تغيير لون الخلفية 
setElementData(button, "tooltip-font", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط 

Link to comment
^ ???? :(

-----

: هذا رابط تحميله وشرح استعماله تلقاه بالدسكربشن GUI Tooltips بالنسبة لصاحب الموضوع استخدم مود

https://community.multitheftauto.com/index.php?p=resources&s=details&id=3054

: لو مافهمت زين ع الشرح، شوف الشرح هذا ^

button = guiCreateButton(50,100,200,200, "TEST", false, theWindow) -- مثال على زر 
setElementData(button, "tooltip-text", "الكلام الي تبيه هنا", false) -- أضافة الكلام للزر 
setElementData(button, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط 
setElementData(button, "tooltip-background", "#666666", false) -- تغيير لون الخلفية 
setElementData(button, "tooltip-font", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط 

100%

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