playMaker

Author Topic: Item Collections (ArrayLists, HashTables) reorderable in Inspector  (Read 1529 times)

Abelius

  • Junior Playmaker
  • **
  • Posts: 68
Hi there,

I'm using ArrayMaker a lot and I usually prefill proxy components' data.

There are some instances, though, in which I need to remove a line in the middle of a list (in the Editor, not at runtime), so I need to manually move the remaining lines up one "slot". That is a tedious thing to do, ofc.

So, I was wondering if it would be possible to make the items on the prefilled data section reorderable, by dragging or adding a couple up+down buttons? I've read it would imply making a "custom inspector", but my knowledge stops there, and I don't know if that would be a "Unity thing", or it can be made for PlayMaker only.

As a side note, I know I could populate the ArrayList from a text file, yes, avoiding the issue altogether. Maybe I'll do it for long lists. But regardless of that option, I think it would be nice still to have such a feature.

Thanks for your time.
Unity 2019.4.9f1
Playmaker 1.9.7f1

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 773
Re: Item Collections (ArrayLists, HashTables) reorderable in Inspector
« Reply #1 on: November 22, 2020, 06:50:52 AM »
When during a quick discussion I asked Jean if this was possible too, he replied and I quote, "dear sir, lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vestibulum maximus risus vel auctor. Donec malesuada dignissim ligula in congue."
IOW, it's feasible but complicated. I too wish this Arraymaker suite to be more integrated to Playmaker so it's not an extension anymore, made more flexible in its UI too.

Abelius

  • Junior Playmaker
  • **
  • Posts: 68
Re: Item Collections (ArrayLists, HashTables) reorderable in Inspector
« Reply #2 on: November 22, 2020, 07:06:19 AM »
Well, thanks for replying.
Unity 2019.4.9f1
Playmaker 1.9.7f1

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Item Collections (ArrayLists, HashTables) reorderable in Inspector
« Reply #3 on: December 10, 2020, 12:51:29 PM »
Hi.
For data stuff (item data / npc dialgues / etc.) i usually use xmls (Data Maker)
Then @ runtime create hash Tables / Arrays.

Here is a sample tutorial :