コード例 #1
0
 protected int ClickRoutine()
 {
     if (Collect)
     {
         return(0);
     }
     HoverMousedown();
     if (zParent != null && !IsUnderCursor())
     {
         Globals.GuiManager.zDoGetWindows = true;
         return(0);
     }
     if (Mouse.ButtonReleased(MouseButtons.LeftButton))
     {
         Functions.UnclipCursor();
         OnClick();
         Globals.GuiManager.zDoGetWindows = true;
         return(0);
     }
     if (zParent == null && !Immovable)
     {
         Drag();
     }
     return(1);
 }