Jump to content

سؤآل .!


Recommended Posts

local screen = { guiGetScreenSize( ) } 
local w, h = 173, 215 
local x, y = ( screen[1] - w ) / 2, ( screen[2] - h ) / 2 
        window = guiCreateWindow( 307, 173, 173, 215, "Support Team", false) 
guiSetVisible( window, false ) 
  guiSetProperty( window, "CaptionColour", "FF01B5B3") 
      GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 154, 184, false, window) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) 
        for i = 1, 10 do 
            guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "-", false, false)     
    end 
) 
  
function guiAddInterpolateEffect( ... ) 
    return call( getResourceFromName( "GIE" ), "guiAddInterpolateEffect", unpack( { ... } ) ) 
end 
  
    bindKey('F5','down', 
    function( ) 
        local isVisible = guiGetVisible( window ) 
        if isVisible then 
            local cx, cy = guiGetPosition( window, false ) 
            local cw, ch = guiGetSize( window, false ) 
            guiAddInterpolateEffect( window, cx, cy, cw, ch, 0, 0, 0, 0, 2, "Linear", "Linear", false ) 
        else 
            guiAddInterpolateEffect( window, 0, 0, 0, 0, x, y, w, h, 2, "Linear", "Linear", true ) 
        end 
        showCursor( not isVisible ) 
    end 
) 
  
   

Link to comment

متأكد كامل؟

جرب ذا

local screen = { guiGetScreenSize() } 
local w, h = 173, 215 
local x, y = (screen[1] - w) / 2, ( screen[2] - h ) / 2 
  
GUIEditor = { 
    gridlist = {} 
} 
window = guiCreateWindow( 307, 173, 173, 215, "Support Team", false) 
guiSetVisible(window, false) 
guiSetProperty(window, "CaptionColour", "FF01B5B3") 
GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 154, 184, false, window) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) 
for i = 1, 10 do 
    guiGridListAddRow(GUIEditor.gridlist[1]) 
end 
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "-", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "-", false, false)     
  
function guiAddInterpolateEffect(...) 
    return call(getResourceFromName("GIE"), "guiAddInterpolateEffect", unpack({...})) 
end 
  
bindKey("F5", "down", 
function() 
    local isVisible = guiGetVisible(window) 
    if isVisible then 
        local cx, cy = guiGetPosition(window, false) 
        local cw, ch = guiGetSize( window, false) 
        guiAddInterpolateEffect(window, cx, cy, cw, ch, 0, 0, 0, 0, 2, "Linear", "Linear", false) 
    else 
        guiAddInterpolateEffect(window, 0, 0, 0, 0, x, y, w, h, 2, "Linear", "Linear", true) 
    end 
    showCursor(not isVisible) 
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...