Second, if ActorProject:project is passed a function for its damtype parameter, it passes tg (a nonexistent global variable) to that function for its tg parameter. It looks like the intent is to pass t.
Third, ListColumns:setupInput inadequately clears the previous UI state. This can be seen in the default Birther.lua, which reuses a ListColumns display to display several different lists in a row. If you click on the item B in the first list, then when the second list is displayed, item B is highlighted, but the tooltip for the second list's item A is still shown. To fix this, add the following to the beginning of setupInput (duplicated from ListColumns:init):
Code: Select all
self.prev_sel = 0
self.mouse_pos = { x = 0, y = 0 }