Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aammfe

Pages: [1] 2
1
NGUI 3 Support / Re: Scroll View List-View effect
« on: October 30, 2016, 03:50:56 PM »
UICenterOnClick

UIScrollView sv = panel.GetComponent<UIScrollView>();
         Vector3 offset = -panel.cachedTransform.InverseTransformPoint(transform.position);
         if (!sv.canMoveHorizontally) offset.x = panel.cachedTransform.localPosition.x;
         if (!sv.canMoveVertically) offset.y = panel.cachedTransform.localPosition.y;
         SpringPanel.Begin(panel.cachedGameObject, offset, 6f);


i could not figure out how i will use it in my case , ..?

2
NGUI 3 Support / Re: Scroll View List-View effect
« on: October 28, 2016, 06:53:38 AM »
i have attached other script , for scrolling events , link pull up , and pull down , etc ,
if
 "Cancel Drag if Fits = true"
it stop scrolling means , use could not pull down , etc

3
NGUI 3 Support / Scroll View List-View effect
« on: October 26, 2016, 08:31:30 AM »
Hi!
Scroll view have one child size(100,100) .
when scroll this child to bottom it remain in bottom and do not go to top again.
 
i have attach an animation , it have two examples first , NGUI , and second is UGUI , and UGUI is working as it is , as supposed to , (changed pivot.y = 1).
how to do it in NGUI.

https://we.tl/fV0LBUQlHa


 

4
NGUI 3 Support / Re: Having issues Regarding UIWrapContent
« on: October 25, 2016, 05:26:11 AM »
i m attaching animation with this post . plz take a look on it ,
WrapContent
Range is -1 => 0
there is only one item
but when we scroll item shift it self
https://we.tl/6gcy2IIJva


5
NGUI 3 Support / Re: Having issues Regarding UIWrapContent
« on: October 24, 2016, 01:29:18 PM »
so what should i do ?
assuming realIndex = dataIndex

if (realIndex > data.count)
{
;
    //error
}


 

6
NGUI 3 Support / Having issues Regarding UIWrapContent
« on: October 21, 2016, 06:23:34 AM »
Hi!

i m having some difficulties regarding UIWrapContent

this script attached to wrapConent GameObject

  1. public class wrapConentHelper : MonoBehaviour {
  2.  
  3.        
  4.         void Start ()
  5.     {
  6.         GetComponent<UIWrapContent>().onInitializeItem += OniniItem;
  7.         }
  8.  
  9.  
  10.  
  11.  
  12.     private void OniniItem(GameObject go, int wrapIndex, int realIndex)
  13.     {
  14.         print(wrapIndex + " wrapIndex   " + realIndex + "  realIndex");
  15.     }
  16. }
  17.  

set wrapConent limit to 0 - 1.

animation
https://we.tl/3Q5rlABJdE

see console in animation

why realIndex is >0




7
NGUI 3 Support / NGUI UGUI Composition
« on: October 09, 2016, 06:42:09 AM »
is there any way to use NGUI and UGUI at Same Time?
Means Some Component of NGUI Like "ListView" (WrapConent) with UGUI.


how we can set position and Size of a NGUI Widget According to UGUI Panel..

8
NGUI 3 Support / Re: Wrap Content With "Fixed Size Variable" Height Items
« on: October 02, 2016, 02:27:21 PM »
where even rows are 100 pixels height and odd rows are 200
each 2 rows will vary, but they will always have fixed values (either 100 or 200)

9
NGUI 3 Support / Wrap Content With "Fixed Size Variable" Height Items
« on: September 27, 2016, 11:40:04 AM »
Hi!

Can you make wrap content compatible with Items of Fixed Variable Size ?
this is what i m asking for.

--wrapContent
     --itemHeight_x
     --itemHeight_2x
     --itemHeight_3x
     --itemHeight_x
     --itemHeight_2x


 

10
NGUI 3 Support / Re: pull Down and Pull Up events
« on: September 09, 2016, 07:33:21 PM »
Plz check this event Class



  1. using UnityEngine;
  2. using System.Collections;
  3. using System;
  4.  
  5.  
  6. public class ScrollEvents : MonoBehaviour
  7. {
  8.  
  9.     public Action OnPullDown;
  10.     public Action OnPullUp;
  11.  
  12.  
  13.  
  14.  
  15.  
  16.     [Range(0 ,250)]
  17.     public int PullDownThreshold;
  18.  
  19.  
  20.     [Range(0, 250)]
  21.     public int PullUpThreshold;
  22.  
  23.  
  24.     private UIScrollView ScrollView;
  25.     private UIPanel Panel;
  26.  
  27.  
  28.  
  29.  
  30.  
  31.     void Awake()
  32.     {
  33.  
  34.         Panel = GetComponent<UIPanel>();
  35.         ScrollView = GetComponent<UIScrollView>();
  36.  
  37.  
  38.         ScrollView.onDragFinished += DragFinished;
  39.     }
  40.  
  41.  
  42.  
  43.    
  44.  
  45.  
  46.  
  47.     private void DragFinished()
  48.     {
  49.         Bounds b = ScrollView.bounds;
  50.         Vector3 constraint = Panel.CalculateConstrainOffset(b.min, b.max);
  51.  
  52.  
  53.         if (constraint.y > PullDownThreshold)
  54.         {
  55.             if (OnPullDown != null) OnPullDown.Invoke();
  56.         }
  57.         else  if (constraint.y < -PullUpThreshold)
  58.         {
  59.            if (OnPullUp != null) OnPullUp.Invoke();
  60.         }
  61.     }
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.     void OnDestroy()
  81.     {
  82.         ScrollView.onDragFinished -= DragFinished;
  83.     }
  84. }
  85.  

11
NGUI 3 Support / Re: Problem Tile View Using WrapContent
« on: September 09, 2016, 07:23:06 PM »
 thanx for replying   :)

;) fortunately just before reading you post , i  resolve how to do it ,


scrollView.ResetPosition(); reset scroll to "0",
which i dont want ,every time i change device rotation and list resets to "0"

i used scrollView.RestrictWithinBounds(true); it worked perfectly for me, but it change scrollView.transform.localPosition.x , some time ,
so i have to reset "x" to zero



i was trying to use textMeshPro With NGUi that's why Mesh Filters where there


yes there is problem some time you have to click and then items are being created and arranged i think it is because of onGeometryUpdated
but
there is no way to catch resize from panel , so i have to use onGeometryUpdated
i always avoid, to write code in update , if there are  10 panel in my scene means in every update same code is being run?


can you update NGUI so we can listen these types of events easily.

 

12
NGUI 3 Support / Re: Disposing List Items (solved)
« on: September 09, 2016, 12:59:57 PM »


Thanx i have soled it

i was execute this
NGUITools.DestroyChildren(wrapContent.transform);

OnDestroy Which was creating these errors.. 



13
NGUI 3 Support / Disposing List Items (solved)
« on: September 08, 2016, 12:21:51 PM »
i m having difficulty in disposing List Items
when scene is stopped these it shows these errors.

http://prnt.sc/cfotk4


14
NGUI 3 Support / pull Down and Pull Up events
« on: September 06, 2016, 04:59:15 AM »
How can we add pull up/down events along with such visual indicators?
 
https://www.smashingmagazine.com/wp-content/uploads/2013/10/Twitter.gif

15
NGUI 3 Support / Re: Problem Tile View Using WrapContent
« on: September 06, 2016, 04:27:26 AM »
Sorry for inconvenience and Thank you very much  for giving me your precious time.
I m sending project again , this time its contain simple scripts , no inheritance.



1- ListTileView                             // to set data on items
2-ListTileViewItemsManager         //to create items in tile or list
3- ItemRendererListTileView         //to set data on item



i m not having any issue regarding grid animation ,
the issue is https://we.tl/9Wos9uUEhN



and pkg is https://we.tl/TKvLVPw9KZ


 

Pages: [1] 2