Author Topic: In-Game Store Inquiry  (Read 1316 times)

lixobags

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
In-Game Store Inquiry
« on: July 22, 2014, 01:34:18 AM »
Hello,

New to NGUI

How do you go about making an in-game store with NGUi?
Are there any sample scripts that i can look at to understand how to set this up?

ie

Create a store with 3 items (Gold) and they are different values.  When you click them it changes the users overall gold total

I can change the gold value with 1 item in the store but when you start getting multiple items in the store, what NGUI script do you use to manage all the different items and values?
and how?

Sorry if this is a super newbie question

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: In-Game Store Inquiry
« Reply #1 on: July 22, 2014, 08:56:59 PM »
NGUI is a UI system. It lets you create labels, show textures on the screen, and script interaction -- pressing on something, clicking, etc.

A store window is something you'd make using the UI system. There are no scripts to help you here, as this is not a UI task. Anything involving using the UI -- from creating a screen XYZ to the store window ABC is up to you to create.

I suggest starting with the scroll view example that comes with NGUI. It's a scrollable list of items with names and gold values.