Author Topic: NGUI 2.00  (Read 9455 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
NGUI 2.00
« on: April 11, 2012, 02:37:07 AM »
Next version of NGUI is going to be 2.00. I'm still likely going to be adding a few more things, but NGUI Professional users already have access to it and can use it now. The changes have been fairly extensive, and have a chance of not being 100% backwards-compatible with older versions -- but fortunately all of it is easy to fix and everything was made easier rather than more complicated.

List of changes so far:

- NEW: Redesigned the way UIDragCamera and UIDragPanelContents work, making them much more straightforward.
- NEW: New widget has been added: Scroll Bar. It does exactly what you think it does.
- NEW: UIDraggableCamera script is used on the camera to make it draggable via UIDragCamera.
- NEW: UIDraggablePanel script is used on the panel to make it draggable via UIDragPanelContents.
- NEW: UIDraggablePanel natively supports scroll bars with "always show", "fade out if not needed" and "fade in only when dragging" behaviors.
- NEW: Scroll View (DragPanel) and Quest Log examples have been updated with scroll bars.
- NEW: Reorganized all examples to be in a more logical order -- starting with the basic, common functionality and going up from there.
- NEW: Localization will now try to automatically load the language file via Resources.Load if it wasn't found in the local list.
- FIX: EditorPrefs are now used instead of PlayerPrefs to store editor-related data.
- FIX: Popup list will no longer try to call SendMessage in edit mode.
- FIX: UIEventListener.Add is now UIEventListener.Get, making the function make more sense with the -= operator.
- DEL: Scroll View example that was using UIDragObject has been removed as it's now obsolete.
« Last Edit: April 11, 2012, 02:42:44 AM by ArenMook »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #1 on: April 11, 2012, 02:50:06 AM »
Some examples of the scroll bar being used:

http://www.tasharen.com/ngui/ex7.html
http://www.tasharen.com/ngui/ex9.html

In both of them all I did was simply add a scroll bar using the Widget Tool then referenced it on the UIDraggablePanel script. That's it!

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: NGUI 2.00
« Reply #2 on: April 11, 2012, 07:31:38 AM »
Would it be at all possible to get popup list to be scrollable and configured to only show a certain number of lines?
I need to know otherwise I have to figure out an alternate way of doing things currently using popup list for.

ty!

ps: new forums are great!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #3 on: April 11, 2012, 12:54:05 PM »
Not in 2.00, but maybe in a future version. For now I suggest finding an alternative until I add it. :)

soofaloofa

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: NGUI 2.00
« Reply #4 on: April 11, 2012, 02:18:28 PM »
Any thoughts on providing a paging solution for the draggable camera? Something like a photo browsing app that snaps to the next item in the grid.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #5 on: April 11, 2012, 11:50:37 PM »
I've thought about it, but it will be in a later version.

dlewis

  • Guest
Re: NGUI 2.00
« Reply #6 on: April 12, 2012, 01:33:22 AM »
Looks good. Do you have any estimation as to when non-professional users can get it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #7 on: April 12, 2012, 01:34:19 AM »
In about 20 minutes.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #8 on: April 12, 2012, 01:45:39 AM »
It's out. And now the real fun begins... I have to go through all the tutorials and docs and update them to the latest version.

-_-

icepick912

  • Guest
Re: NGUI 2.00
« Reply #9 on: April 12, 2012, 01:49:55 AM »
Great tool, thank you. First purchase I have made on the asset store while using unity for almost 2 years now, and definitely worth it.
« Last Edit: April 12, 2012, 01:52:41 AM by icepick912 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #10 on: April 12, 2012, 01:53:46 AM »
:)

Shelt

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: NGUI 2.00
« Reply #11 on: April 12, 2012, 08:51:18 AM »
Hi Aren!
Great to see that you are adding scroll bars! Any thoughts of expanding the dropdown class to be able to support scroll list if the amount of dropdown items is greater then a value you can specify? Would be great in for example an option menu where you want to have a dropdown to change the resolution, so you don't get a huge dropdown list because the amount of resolution choices and you only want X amount to be visible.

Thanks for a great asset!
regards,
Shelt
« Last Edit: April 12, 2012, 08:53:12 AM by Shelt »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.00
« Reply #12 on: April 12, 2012, 01:40:45 PM »
It's not one of my "soon" features, but perhaps in the future.

Tjockisbulle

  • Guest
Re: NGUI 2.00
« Reply #13 on: April 13, 2012, 06:28:30 AM »
Any thoughts on providing a paging solution for the draggable camera? Something like a photo browsing app that snaps to the next item in the grid.

This!!

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: NGUI 2.00
« Reply #14 on: April 22, 2012, 04:46:55 AM »
This!!

I really wish you would reconsider doing this asap. It *is* pretty standard drop down list functionality, and limits nguis usability imo.

cheers,
pc