11 March 2016 - Forum Rules
Started by creeperton, May 17, 2015, 03:51:31 AM
QuoteEvery time a user selects a different item int the top-left combo box, the rest of the GUI in this tab needs to be updated to reflect the entry in the item data table for that item. What should I google to learn more about this?
QuoteI think I'll have a dictionary/map that where the key is the item name (a string) and the value another dictionary/map that is all of the bytes for that item's entry in the item data table. That way when I need to read from it, I input the item name and then the index of the byte I want to get, and I have a bunch of switch case statements and whatnot for updating the gui elements that represent the state of that item's entry. When I want to write to it it's the same, except when I'm only writing a single bit in which case I need to do a bit of math.
QuoteDoes this sound sane? I could also do it with an array (or an array of arrays) but I want to do it in the easiest possible way to maintain and focus on performance once I have all the features I want.
Page created in 0.078 seconds with 19 queries.