playMaker

Author Topic: ArrayMaker ListView for Mobile  (Read 2288 times)

maxxiedivine

  • Playmaker Newbie
  • *
  • Posts: 5
ArrayMaker ListView for Mobile
« on: June 07, 2013, 01:48:03 PM »
I am having trouble figuring out how to make a listView for mobile using the ArrayMaker stuffs. This is the way I have it in my head:

- Create a txt file with a list of words that have different sword names
- click a button on the main menu that says inventory
- then when in inventory click "swords"
- Then there is a long list of sword names, but you have to scroll through them. They are also buttons so they link to another txt file that talks about the sword.

Can anyone help me figure out how to implement that? I can make all the buttons leading up to the list of swords. I would it to look similarly to this:

https://picasaweb.google.com/lh/photo/jvkL-dEpYX79un0MCMZGiJ9A608_2wDmahlUnDbvF70?feat=directlink

Thank you for your help!

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: ArrayMaker ListView for Mobile
« Reply #1 on: June 08, 2013, 12:10:08 AM »
I'm currently working on a game that reads strings from a txt file and its for mobile ... So I can help :)

Create a Resources folder in your project folder - put all of your txt files in here
Add an ArrayList Proxy to a gameobject
Use the 'Split Text to array list' action to get the strings from the txt file
Pull all the swordnames from the array and store them as strings - Use Array list get
Then set the GuiText or 3DText to that string .... that should get you started.

Let me know if you need more clarification on anything.