جرب الكود مختلف عن عناد تماما ذذ :
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 )
mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "1.png", relative2 )
local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground )
guiSetEnabled ( mainBackgroundLabel, false )
return mainBackground
end
GUIEditor_Button = {}
wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false)
guiSetVisible(wnd, false)
guiSetAlpha(wnd,1)
GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd)
GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[2],"default-bold-small")
GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[3],"default-bold-small")
GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[4],"default-bold-small")
GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[5],"default-bold-small")
GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[6],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd)
GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[8],"default-bold-small")
GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[9],"default-bold-small")
GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[10],"default-bold-small")
GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[11],"default-bold-small")
GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[12],"default-bold-small")
GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd)
guiSetFont(GUIEditor_Button[13],"default-bold-small")
GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"تغير الخلفية",false,wnd)
guiSetFont(GUIEditor_Button[15],"default-bold-small")
isMove = false
bindKey("F9", "down",
function()
if isMove then return end
if guiGetVisible( wnd ) then
guiSetVisible(wnd, false)
showCursor(false)
else
guiSetPosition(wnd, -300, 54, false)
guiSetVisible(wnd, true)
showCursor(true)
if isTimer(Time) then
return
end
Time = setTimer(function()
local x, y = guiGetPosition(wnd, false)
guiSetPosition(wnd, x + 8, y, false)
end, 50, 50)
isWindowMove(true)
setTimer(isWindowMove, 100, 1, false)
end
end
)
function isWindowMove(bole)
isMove = bole
end
local load = false
addEventHandler ( "onClientGUIClick", root,
function ( )
if source == GUIEditor_Button[15] then
guiStaticImageLoadImage(mainBackground,load and "1.png" or "2.png")
load = not load
end
end
)
اسم الصورهـ الثانية :
2.png