HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: _itemCurrencyValueMap read only in hotspot GUI  (Read 1872 times)

EitrGin

  • General Accounts
  • *
  • Posts: 14
    • View Profile
_itemCurrencyValueMap read only in hotspot GUI
« on: Jan 14, 14, 09:40:55 PM »

I'm trying to create items via the spec oracle that the Foundation Framework has laid out, but when using the currency system I can't seem to add a value to the item because the interface is greyed out.

Through the utilities interface: I created an item, glommed the _ValueItemSpecDecorator onto it, and then hit edit. Cannot enter anything for the index/value fields.

Here's where the GUI gets built in _ValueItemSpecDecoratorClassMethods:

Code: [Select]
shared function _createNodePropertyEditorCellForField( fieldName as String ) as NodeRef of Class _GUINodePropertyEditorCell
// Allows a class methods script to create a specific editor cell for a particular field.  The cell must inherit from _GUINodePRopertyEditorCell
//   and implement overrides for methods as needed.

  edit_cell as NodeRef of Class _GUINodePropertyEditorCell
 
  when ToLower(fieldName)
//    is "_itemcurrencyvaluemap"
//      edit_cell = CreateNodeFromPrototype("_nodePropertyEditorCellItemValue")
//      edit_cell.build = true
//    .
  .
 
  return edit_cell
.

It seems as though something is missing. Uncommenting those lines throws an error because it can't find the prototype.
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: _itemCurrencyValueMap read only in hotspot GUI
« Reply #1 on: Jan 14, 14, 10:59:23 PM »

edit_cell = CreateNodeFromPrototype("_nodePropertyEditorCellItemValue")

This might need to be created, as the _nodePropertyEditorCellItemValue is not in the list of GUIs. To search for some options, in the gui editor above the little buttons near bottom, type in _nodeProperty.... and you will start to narrow down the list.

Some of these GUIs might have something close to what you might need, and you might be able to copy part of it. Even if just for the script to work, or you could change the name to something that is already there.
Logged

EitrGin

  • General Accounts
  • *
  • Posts: 14
    • View Profile
Re: _itemCurrencyValueMap read only in hotspot GUI
« Reply #2 on: Jan 15, 14, 10:35:34 AM »

Yeah, I wasn't sure if I was missing something, or the Foundation Framework was.

I was hoping to not have to build a GUI for it and edit base code that will eventually be overwritten. It might be easier just to make my own currency decorator, considering I'm only going to have one type.
Logged

Irushian

  • General Accounts
  • *
  • Posts: 44
    • View Profile
Re: _itemCurrencyValueMap read only in hotspot GUI
« Reply #3 on: May 01, 15, 06:43:09 AM »

Edit: The editor isn't complete with the variable types, so the control that it creates is read-only if the list contains no data.
« Last Edit: May 11, 15, 02:58:50 PM by Irushian »
Logged