AmadanNaBriona
March 26th, 2020, 04:12
Adding items to a character inventory sheet, it seems to default to "nonid" which means the name entered in the inventory list is the Non-ID Name. Even though by default the "Item Identified" icon is enabled for newly created items.
If I click the "Item Identified" icon (making it "not identified") and then click it again, thereafter dragging the item onto a character's inventory shows the proper name.
How do I make it show the IDed name by default?
Here is the relevant code from the character record inventory xml:
<windowclass name="char_invitem">
<margins control="0,0,0,2" />
<script>
function onInit()
onIDChanged();
getDatabaseNode().onDelete = onDelete;
end
function onIDChanged()
local bID = ItemManager.getIDState(getDatabaseNode(), true);
name.setVisible(bID);
nonid_name.setVisible(not bID);
end
function onDelete(node)
ItemManager.onCharRemoveEvent(node);
end
</script>
<sheetdata>
<hn name="isidentified">
<script>
function onValueChanged()
window.onIDChanged();
end
</script>
</hn>
If I click the "Item Identified" icon (making it "not identified") and then click it again, thereafter dragging the item onto a character's inventory shows the proper name.
How do I make it show the IDed name by default?
Here is the relevant code from the character record inventory xml:
<windowclass name="char_invitem">
<margins control="0,0,0,2" />
<script>
function onInit()
onIDChanged();
getDatabaseNode().onDelete = onDelete;
end
function onIDChanged()
local bID = ItemManager.getIDState(getDatabaseNode(), true);
name.setVisible(bID);
nonid_name.setVisible(not bID);
end
function onDelete(node)
ItemManager.onCharRemoveEvent(node);
end
</script>
<sheetdata>
<hn name="isidentified">
<script>
function onValueChanged()
window.onIDChanged();
end
</script>
</hn>