Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: beings on August 03, 2015, 05:07:02 AM
Title:
UIWidget.PanelCompareFunc issue?
Post by:
beings
on
August 03, 2015, 05:07:02 AM
I think that the sort function has something wrong.
if (leftMat != null) return -1;
if (rightMat != null) return 1;
===>
if (leftMat != null && rightMat == null) return -1;
if (leftMat == null && rightMat != null) return 1;
or ===>
if (rightMat == null) return -1;
if (leftMat == null) return 1;
Title:
Re: UIWidget.PanelCompareFunc issue?
Post by:
ArenMook
on
August 05, 2015, 08:48:34 AM
I'd say if anything, it should be
if
(
leftMat
==
null
)
return
1
;
if
(
rightMat
==
null
)
return
-
1
;
Title:
Re: UIWidget.PanelCompareFunc issue?
Post by:
beings
on
August 17, 2015, 04:27:24 AM
And then?
Quote from: ArenMook on August 05, 2015, 08:48:34 AM
I'd say if anything, it should be
if
(
leftMat
==
null
)
return
1
;
if
(
rightMat
==
null
)
return
-
1
;