0
0
mirror of https://github.com/marcrobledo/savegame-editors.git synced 2025-04-28 09:05:10 +00:00

Merge pull request #196 from ViViDboarder/filter-item-selects

BotW: Filter item select options based on tab
This commit is contained in:
Marc Robledo 2023-07-08 12:48:11 +02:00 committed by GitHub
commit 81b9e6225b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,7 @@ SavegameEditor={
editItem:function(i){
currentEditingItem=i;
this.selectItem.value=this._loadItemName(i);
this.filterItems(currentTab);
document.getElementById('item-name'+i).innerHTML='';
document.getElementById('item-name'+i).parentElement.appendChild(this.selectItem);
this.selectItem.focus();
@ -274,6 +275,9 @@ SavegameEditor={
},
filterItems:function(category){
for (let key in this.selectItem.categories) {
this.selectItem.categories[key].hidden = (category !== null && category !== key);
}
},
_getModifierOffset1:function(type){