يصير كذا ولا كيف
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Edit = {}
GUIEditor_Window[1] = guiCreateWindow(0.2338,0.2483,0.6338,0.46,"by !F{p}_B^o~L|B|N|#لوحة التحكم بالطقس",true)
GUIEditor_Button[1] = guiCreateButton(12,26,85,31,"جو صافي",false,GUIEditor_Window[1])
GUIEditor_Button[2] = guiCreateButton(138,26,85,31,"شديد الحرارة",false,GUIEditor_Window[1])
GUIEditor_Button[3] = guiCreateButton(249,26,85,31,"مطر قوي",false,GUIEditor_Window[1])
GUIEditor_Button[4] = guiCreateButton(367,26,85,31,"عاصفة غبار",false,GUIEditor_Window[1])
GUIEditor_Button[5] = guiCreateButton(131,113,85,31,"ضباب",false,GUIEditor_Window[1])
GUIEditor_Button[6] = guiCreateButton(300,113,85,31,"مشمس",false,GUIEditor_Window[1])
GUIEditor_Label[1] = guiCreateLabel(11,64,483,29,"ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ",false,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[1],110,53,12)
guiSetFont(GUIEditor_Label[1],"clear-normal")
GUIEditor_Label[2] = guiCreateLabel(11,170,483,29,"ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ",false,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[2],175,228,164)
guiSetFont(GUIEditor_Label[2],"clear-normal")
GUIEditor_Edit[1] = guiCreateEdit(146,219,185,22,"",false,GUIEditor_Window[1])
GUIEditor_Button[8] = guiCreateButton(372,218,94,25,"موافق",false,GUIEditor_Window[1])
GUIEditor_Label[3] = guiCreateLabel(74,218,124,23,"التحكم بالوقت",false,GUIEditor_Window[1])
guiSetVisible (GUIEditor_Window[1], false)
function OpenWin()
if guiGetVisible ( GUIEditor_Window[1] ) then
guiSetVisible ( GUIEditor_Window[1], false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible ( GUIEditor_Window[1], true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("F5", "down", OpenWin)
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
addEventHandler("onClientGUIClick", root,
function ()
local setTime = guiGetText(GUIEditor_Edit[1])
if ( source == GUIEditor_Button[1] ) then
setWeather ( 10 )
elseif ( source == GUIEditor_Button[2] ) then
setWeather ( 17 )
elseif ( source == GUIEditor_Button[3] ) then
setWeather ( 16 )
elseif ( source == GUIEditor_Button[4] ) then
setWeather ( 19 )
elseif ( source == GUIEditor_Button[5] ) then
setWeather ( 5 )
elseif ( source == GUIEditor_Button[6] ) then
setWeather ( 11 )
end
end
)