Ouch. I apologize for posting it without testing it. Like I said, I can be slow at times. Thank you for catching that.
Ok, so I checked it again and everything works except, like you said, the equipment that I bought or sold is not updated so it doesn't look like I did anything, but when I back out of it one level and click back in it is updated and it shows that it worked correctly.
So how does one refresh that information without having to back out and reenter? Is there a way of doing a callback? Is there an onEvent event that fires that can be used? I am stumped here. Through me a friggin bone. lol.
ok, so since I am not a dev, and this is a user modification, and I dont have to be proper with my methods, only functional, I add this at the end of my previous code:
button refresh
{
string "_Refresh"
tooltip "_Refresh Inventory"
image ui/button_background
pos "387 293"
size "100 25"
color "1 1 1 1"
selectcolor "0 0.8 0 1"
font f_small
onClick { cmd "team_updateequip;update_item_list;" }
}
my screen looks like the picture attached below. It's functional. It does the job, but I aint happy about it. Sure, for my purposes it works, and I don't have to back out of the screen 2 levels to buy something I forgot to buy and then click in 2 levels to equip it, but it aint right.
How do I fix it please?