Author Topic: Is It Possible To Create A Dynamic Menu In NGUI  (Read 2640 times)

Flasheart

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 4
    • View Profile
Is It Possible To Create A Dynamic Menu In NGUI
« on: October 07, 2014, 05:29:48 PM »
My game uses a weight based inventory and bag system and I wish to generate a dynamic list of items in inventory (separate from player - ie stash box) and the bag attached to the player.

For each item in the bag or inventory box, I wish the menu to generate a data set for each item that is in the bag/box. For example, an Image of the item, its weight, its value, the count of the item (how many in bag) and of course option buttons for each item. The layout of the data table is common for all items, just the data will change but for each item a new line of data needs be created on the fly as the bag/box contents changes.

I am not sure if NGUI can do this as I see no examples or demos about this topic. I only see inventory boxes that are filled and empty ones show as empty.

Hoping i am not confusing with my explanation.

I have attached an image to show what I want to do.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is It Possible To Create A Dynamic Menu In NGUI
« Reply #1 on: October 08, 2014, 01:14:32 PM »
NGUI is just a UI system. What you do with it is the only limit as to what's possible or not. I've seen people do all kinds of inventory systems in the past, including ones with items that take multiple slots. You can probably find those posts just by searching this forum for keywords like "inventory".