Jump to content

مشكلة showCursor -- تم الافادة


^#Dream

Recommended Posts

آلسسلآم عليكم

انا عندي مشكلة مسوي لوحة يضغط على صوره يفتح له لوحة واذا قفلت اللوحة الي فتحها يرجعني للوحة الاصلية واضغط اف 5 يبقى الماوس موجود مآيروحح

local Key = "F5" 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window,false) 
        showCursor(false) 
    else 
        guiSetVisible(Window,true) 
        showCursor(false) 
    end 
end) 

  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == Pic then 
            guiSetVisible ( NewWindow, true ) 
            showCursor ( true ) 
            guiSetInputEnabled ( true ) 
             
        elseif source == CloseWindow then 
            guiSetVisible ( NewWindow, false ) 
            showCursor ( false ) 
        end 
    end 
) 

Edited by Guest
Link to comment
local Key = "F5" 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window,false) 
        showCursor(false) 
    else 
        guiSetVisible(Window,true) 
        showCursor(true) 
    end 
end) 
  
  
------------------------ 
  
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == Pic then 
                guiSetVisible ( NewWindow, true ) 
                showCursor ( true ) 
                guiSetInputEnabled ( true ) 
        elseif source == CloseWindow then 
                guiSetVisible(NewWindow,true) 
                showCursor(true) 
        end 
    end 
) 

اتوقع كذا قصدك :D

Link to comment
local Key = "F5" 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window,false) 
        showCursor(false) 
    else 
        guiSetVisible(Window,true) 
        showCursor(true) 
    end 
end) 
  
  
------------------------ 
  
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == Pic then 
                guiSetVisible ( NewWindow, true ) 
                showCursor ( true ) 
                guiSetInputEnabled ( true ) 
        elseif source == CloseWindow then 
                guiSetVisible(NewWindow,true) 
                showCursor(true) 
        end 
    end 
) 

اتوقع كذا قصدك :D

CloseWindow

يبي يقفل النافذه هو ليه تسوي اظهار نافذة وماوس ×_×

Link to comment
if source == Pic then

guiSetVisible ( NewWindow, true )

showCursor ( true )

guiSetInputEnabled ( true )

^

ذا الي يفتح النافذه

+

داوي كودك مآزبط

كيف يعني انت تبيه اذا فتح الأساسيه وكان فاتح نافذة الثانيه وقفل الأساسيه تقفل الثانيه معه صح ؟

اذا كذا هذا الكود

  
local Key = "F5" 
  
bindKey(Key,"Down",function() 
   guiSetVisible(window,not guiGetVisible(Window)) 
   showCursor(guiGetVisible(Window)) 
     if guiGetVisible(NewWindow) == true then 
     guiSetVisible(NewWindow,false) 
     showCursor(false) 
     end 
end) 
  

Link to comment

^

مشكور زبط بس اذا قفل النافذه الثانية والي هي NewWindow

يروح الماوس لازم يقفل اللوحة ويرجع يفتحها

انا ابيه لو قفل النافذه الثانية يبقى الماوس عشان يقدر يضغط على صوره ثانية

واذا قفل النافذه الاساسية والي هي Window

يروح الماوس

Link to comment
^

مشكور زبط بس اذا قفل النافذه الثانية والي هي NewWindow

يروح الماوس لازم يقفل اللوحة ويرجع يفتحها

انا ابيه لو قفل النافذه الثانية يبقى الماوس عشان يقدر يضغط على صوره ثانية

واذا قفل النافذه الاساسية والي هي Window

يروح الماوس

showCurosr بس شيل

  
  
local Key = "F5" 
  
bindKey(Key,"Down",function() 
   guiSetVisible(window,not guiGetVisible(Window)) 
   showCursor(guiGetVisible(Window)) 
     if guiGetVisible(NewWindow) == true then 
     guiSetVisible(NewWindow,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...