*/}}
Bläddra i källkod

Why did keep the ui list detect in collection selector

YimingWu 3 månader sedan
förälder
incheckning
4c01633aff
1 ändrade filer med 8 tillägg och 8 borttagningar
  1. 8 8
      resources/la_widgets.c

+ 8 - 8
resources/la_widgets.c

@@ -3238,14 +3238,14 @@ int OPMOD_CollectionSelector(laOperator *a, laEvent *e){
         return LA_FINISHED;
     }
 
-    int lx = e->x, ly = e->y;
-    laUiList *ToUil =
-        a->ToPanel->MenuRefer ? a->ToPanel->MenuRefer : &a->ToPanel->UI;
-    laUiList* uil = la_DetectUiListRecursive(ToUil, lx, ly, 10000, 0, 0, 0, 0, 0);
-    if (uil != ((laUiListDrawItem *)a->LocalUiLists.pFirst)->Target) {
-        printf("%d %d EXIT\n",((laUiListDrawItem *)a->LocalUiLists.pFirst)->Target, uil);
-        return LA_FINISHED;
-    }
+    //int lx = e->x, ly = e->y;
+    //laUiList *ToUil =
+    //    a->ToPanel->MenuRefer ? a->ToPanel->MenuRefer : &a->ToPanel->UI;
+    //laUiList* uil = la_DetectUiListRecursive(ToUil, lx, ly, 10000, 0, 0, 0, 0, 0);
+    //if (uil != ((laUiListDrawItem *)a->LocalUiLists.pFirst)->Target) {
+    //    printf("%d %d EXIT\n",((laUiListDrawItem *)a->LocalUiLists.pFirst)->Target, uil);
+    //    return LA_FINISHED;
+    //}
 
     if (e->type == LA_TIME_IDLE && !ui->State && !NoTooltip){
         int GX = e->x, GY = e->y; laLocalToWindow(a, a->ToPanel, &GX, &GY);