Author Topic: [WIP] UI components "pack" -- Scrollable PopupList available for download  (Read 24683 times)

MMOARgames

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 7
    • View Profile
Re: [WIP] Creating a UI Components pack! (Want something? Post here!)
« Reply #15 on: December 12, 2014, 11:43:06 AM »
Good Sir, I am also interested in this wonderful package.

P.y.r.0

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: [WIP] Creating a UI Components pack! (Want something? Post here!)
« Reply #16 on: January 08, 2015, 05:16:27 AM »
I am very interested in your scrollable popup list too.
Can you give me a test version via PM?
I will give you my feedback after testing it.

sdete

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: [WIP] Creating a UI Components pack! (Want something? Post here!)
« Reply #17 on: January 21, 2015, 04:10:12 AM »
I'm interested too by your scrollable popup list. Can I have the latest version please ?

Kira

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: [WIP] Creating a UI Components pack! (Want something? Post here!)
« Reply #18 on: January 29, 2015, 06:06:09 PM »
Hi !

I was looking for the scrollable popup list for a few days for now and found this topic. I'm very interested in it and I would be glad to have the chance to test it and of course get you some feed back !

Silvalencia

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: [WIP] Creating a UI Components pack! (Want something? Post here!)
« Reply #19 on: February 05, 2015, 01:25:07 PM »
Nice post! i'm really interested in it

Lumos

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 4
  • Posts: 21
    • View Profile
Re: [WIP] Creating a UI Components pack! (Want something? Post here!)
« Reply #20 on: February 19, 2015, 12:08:43 PM »
Greetings everyone, and first of all, let me apologise for being inactive for so long.
Certain events happened, I changed computers, I even moved to a different country (lol excuses), and I kind of drifted away from NGUI... which means that I'm unlikely to actually make a "pack" out of this and add more stuff to it.
However, people do seem to be interested in the scrollable list right now, and - fortunately - I've still got the file and the "instructions" for it. Long live MediaFire and forum PM saving!
In clearer words, I intend to "release" this to the public as it is in its current state. Please check the first post again. ;)

Once again, I'm really sorry for not doing this earlier.

@Aren: I know you don't want people to have access to your code like this, but this is just one file, so I hope you won't mind.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [WIP] UI components "pack" -- Scrollable PopupList available for download
« Reply #21 on: February 19, 2015, 05:39:39 PM »
I only object to people pasting the entirety of NGUI on the forum. Individual files I don't mind at all.

caiorosisca

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
I've came across this topic today and it was very usefull to me, I had only one problem with the scrollbar not working and I found out that because the scrollbar is linked to the scrollview after it was created it doesn´t pass throught this if inside UIScrollView:

  1. if (verticalScrollBar != null)
  2.         {
  3.                 EventDelegate.Add(verticalScrollBar.onChange, OnScrollBar);
  4.                 verticalScrollBar.alpha = ((showScrollBars == ShowCondition.Always) || shouldMoveVertically) ? 1f : 0f;
  5.         }

so what I did to solve this problem was adding it inside UIScrollablePopupList after creating the scroll bar inside OnClick method, at the very end.

  1. EventDelegate.Add(mScroller.verticalScrollBar.onChange, mScroller.OnScrollBar);
  2. mScroller.verticalScrollBar.alpha = ((mScroller.showScrollBars == UIScrollView.ShowCondition.Always) || mScroller.shouldMoveVertically) ? 1f : 0f;

Hope it helps someone

SkobbejakGames

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 9
    • View Profile
Unfortunately getting the following error:

Assets/NGUI/Scripts/UI/UIScrollablePopupList.cs(772,45): error CS0029: Cannot implicitly convert type `void' to `UnityEngine.BoxCollider'

Please if anyone can help it would be much appreciated.

Mikkel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 4
    • View Profile
Unfortunately getting the following error:

Assets/NGUI/Scripts/UI/UIScrollablePopupList.cs(772,45): error CS0029: Cannot implicitly convert type `void' to `UnityEngine.BoxCollider'

Please if anyone can help it would be much appreciated.

Probably something that changed in NGUI after the "scrollable popup list" was made.

Replace the offending line with this snippet taken from UIPopupList.cs:

  1. NGUITools.AddWidgetCollider(lbl.gameObject);
  2. lbl.autoResizeBoxCollider = false;
  3. BoxCollider bc = lbl.GetComponent<BoxCollider>();

edit: there are a number of other issues with this component - hardly surprising as it's not being actively supported. I was initially going to fix it up for the latest NGUI, but turns out there are more issues than I have time for. Still, the above is correct in so far as it allows the thing to compile.
« Last Edit: August 17, 2015, 07:39:26 AM by Mikkel »

weilies

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: [WIP] UI components "pack" -- Scrollable PopupList available for download
« Reply #25 on: February 23, 2016, 05:50:02 PM »
Sorry to bump up an old post.

How can I get a copy of the custom made popup list?

Thanks Lumos!