Jump to content

تعديل على نافذة-تمت الافادة


Mr.king

Recommended Posts

شباب انا عندي checkbox

في النافذة لو علمت عليه صح

مداك تضغط زر

لو ماعلمت عليه يسير الزر مقفول ظاهر بس مقفول يعني ما يمداك تضغط عليه

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Checkbox = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.1387,0.1693,0.7207,0.6589,"",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,720,476,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("؟",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(5,6,708,382,"images/tarkep.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(275,397,158,45,"الزر",false,GUIEditor_Tab[1]) 
GUIEditor_Checkbox[1] = guiCreateCheckBox(97,400,139,46,"العلامة",false,false,GUIEditor_Tab[1]) 
  

يعني اول مايبدا الزر يكون مقفول لو عملت صح ينفتح الزر

Edited by Guest
Link to comment
  
function guiClick (button, state, absoluteX, absoluteY) 
    local scheck = guiGridListGetItemText ( Grid_Wheel, guiGridListGetSelectedItem ( Grid_Wheel ), 1 ) 
    if (source == Butto_Wheel_on) then 
        if ( guiCheckBoxGetSelected(Checkbox_txd_for_wheel_on) ) then 
        triggerServerEvent ( "addWheel", getLocalPlayer(), scheck) 
        else 
        outputChatBox ( "رسائله التضهر بل شات هنا " , 0, 217,176, false ) 
  

هذى مثال

Link to comment

جررب ذا الكود

و خليت النافذه تفتح بـ اف3

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Checkbox = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.1387,0.1693,0.7207,0.6589,"",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,720,476,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("؟",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(5,6,708,382,"images/tarkep.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(275,397,158,45,"الزر",false,GUIEditor_Tab[1]) 
GUIEditor_Checkbox[1] = guiCreateCheckBox(97,400,139,46,"العلامة",false,false,GUIEditor_Tab[1]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
function op() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("f3","down",op) 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor_Checkbox[1] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) then 
                guiSetEnabled(GUIEditor_Button[1],true) 
            else 
                guiSetEnabled(GUIEditor_Button[1],false) 
            end 
        end 
    end 
) 
  

Link to comment
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Checkbox = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.1855,0.194,0.6631,0.5859,"لوحة ",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,661,417,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(2,3,656,308,"sr/ls.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(250,334,109,47,"",false,GUIEditor_Tab[1]) 
GUIEditor_Checkbox[1] = guiCreateCheckBox(64,350,14,14,"",false,false,GUIEditor_Tab[1]) 
GUIEditor_Label[1] = guiCreateLabel(90,347,152,31,"",false,GUIEditor_Tab[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,255,2) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Tab[2] = guiCreateTab("",GUIEditor_TabPanel[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(4,3,654,315,"sr/ls.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(256,333,118,49,"",false,GUIEditor_Tab[2]) 
GUIEditor_Checkbox[2] = guiCreateCheckBox(73,348,14,16,"",false,false,GUIEditor_Tab[2]) 
GUIEditor_Label[2] = guiCreateLabel(29,-174,5,5,"",false,GUIEditor_Checkbox[2]) 
GUIEditor_Label[3] = guiCreateLabel(90,347,152,31,"",false,GUIEditor_Tab[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,255,2) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Tab[3] = guiCreateTab("",GUIEditor_TabPanel[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(5,4,651,315,"sr/ls.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[3] = guiCreateButton(261,332,119,51,"",false,GUIEditor_Tab[3]) 
GUIEditor_Checkbox[3] = guiCreateCheckBox(61,345,15,15,"",false,false,GUIEditor_Tab[3]) 
GUIEditor_Label[4] = guiCreateLabel(86,342,118,33,"1",false,GUIEditor_Tab[3]) 
guiLabelSetColor(GUIEditor_Label[4],255,255,2) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
-------------------------------------- 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true ) 
        showCursor ( true ) 
    guiSetEnabled(GUIEditor_Button[1],false) 
    guiSetEnabled(GUIEditor_Button[2],false) 
    guiSetEnabled(GUIEditor_Button[3],false) 
    end 
) 
-------------------------------------- 
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor_Checkbox[1] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) then 
                guiSetEnabled(GUIEditor_Button[1],true) 
            else 
                guiSetEnabled(GUIEditor_Button[1],false) 
        elseif ( source == GUIEditor_Checkbox[2] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) then 
                guiSetEnabled(GUIEditor_Button[2],true) 
            else 
                guiSetEnabled(GUIEditor_Button[2],false) 
    elseif ( source == GUIEditor_Checkbox[3] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[3]) then 
                guiSetEnabled(GUIEditor_Button[3],true) 
            else 
                guiSetEnabled(GUIEditor_Button[3],false) 
    elseif ( source == GUIEditor_Button[3] ) then 
           guiSetVisible ( GUIEditor_Window[1] ,false ) 
           showCursor ( false ) 
  
    elseif ( source == GUIEditor_Button[2] ) then 
           guiSetVisible ( GUIEditor_Window[1] ,false ) 
           showCursor ( false ) 
  
    elseif ( source == GUIEditor_Button[1] ) then 
           guiSetVisible ( GUIEditor_Window[1] ,false ) 
           showCursor ( false ) 
            end 
        end 
    end 
) 
  
  

Link to comment

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Checkbox = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.1855,0.194,0.6631,0.5859,"لوحة ",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,661,417,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(2,3,656,308,"sr/ls.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(250,334,109,47,"",false,GUIEditor_Tab[1]) 
GUIEditor_Checkbox[1] = guiCreateCheckBox(64,350,14,14,"",false,false,GUIEditor_Tab[1]) 
GUIEditor_Label[1] = guiCreateLabel(90,347,152,31,"",false,GUIEditor_Tab[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,255,2) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Tab[2] = guiCreateTab("",GUIEditor_TabPanel[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(4,3,654,315,"sr/ls.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(256,333,118,49,"",false,GUIEditor_Tab[2]) 
GUIEditor_Checkbox[2] = guiCreateCheckBox(73,348,14,16,"",false,false,GUIEditor_Tab[2]) 
GUIEditor_Label[2] = guiCreateLabel(29,-174,5,5,"",false,GUIEditor_Checkbox[2]) 
GUIEditor_Label[3] = guiCreateLabel(90,347,152,31,"",false,GUIEditor_Tab[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,255,2) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Tab[3] = guiCreateTab("",GUIEditor_TabPanel[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(5,4,651,315,"sr/ls.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[3] = guiCreateButton(261,332,119,51,"",false,GUIEditor_Tab[3]) 
GUIEditor_Checkbox[3] = guiCreateCheckBox(61,345,15,15,"",false,false,GUIEditor_Tab[3]) 
GUIEditor_Label[4] = guiCreateLabel(86,342,118,33,"1",false,GUIEditor_Tab[3]) 
guiLabelSetColor(GUIEditor_Label[4],255,255,2) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
-------------------------------------- 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function () 
      guiSetVisible ( GUIEditor_Window[1] ,true ) 
        showCursor ( true ) 
    guiSetEnabled(GUIEditor_Button[1],false) 
    guiSetEnabled(GUIEditor_Button[2],false) 
    guiSetEnabled(GUIEditor_Button[3],false) 
    end 
) 
-------------------------------------- 
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor_Checkbox[1] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) then 
                guiSetEnabled(GUIEditor_Button[1],true) 
            else 
                guiSetEnabled(GUIEditor_Button[1],false) 
             end 
        elseif ( source == GUIEditor_Checkbox[2] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) then 
                guiSetEnabled(GUIEditor_Button[2],true) 
            else 
                guiSetEnabled(GUIEditor_Button[2],false) 
                end 
    elseif ( source == GUIEditor_Checkbox[3] ) then 
            if guiCheckBoxGetSelected(GUIEditor_Checkbox[3]) then 
                guiSetEnabled(GUIEditor_Button[3],true) 
            else 
                guiSetEnabled(GUIEditor_Button[3],false) 
          end 
    elseif ( source == GUIEditor_Button[3] ) then 
           guiSetVisible ( GUIEditor_Window[1] ,false ) 
           showCursor ( false ) 
    elseif ( source == GUIEditor_Button[2] ) then 
           guiSetVisible ( GUIEditor_Window[1] ,false ) 
           showCursor ( false ) 
    elseif ( source == GUIEditor_Button[1] ) then 
           guiSetVisible ( GUIEditor_Window[1] ,false ) 
           showCursor ( false ) 
         end 
end 
) 
  
  
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...