I've been tinkering with (i.e. scavenging) your civilopedia and noticed that the building section had quite the annoying behavior: when you select a new building, the entire list is redrawn and the scroll bar reset, which is annoying when you are selecting a building down the list as it bumps that building to the lower end of the visible part of the list.
I'm not entirely sure but I think the code doesn't quite recognize the category as being the same (which should avoid a redraw) because of the split categories for buildings. However, if you change the handleInput() method in CvPediaMain to
It works fine (True to False, in bold). I suppose the bIsLink isn't required in this case. I've tried it from a couple configurations and other ways of linking to buildings (text link, button links) still work without problems.Code:def handleInput(self, inputClass): if inputClass.getPythonFile() == PEDIA_LEADERS: return self.pediaLeader.handleInput(inputClass) if inputClass.getButtonType() == WidgetTypes.WIDGET_PEDIA_JUMP_TO_HR_BUILDING: self.pediaJump(PEDIA_BUILDINGS, inputClass.getData1(), True, [B]False[/B]) elif inputClass.getButtonType() == WidgetTypes.WIDGET_PEDIA_JUMP_TO_RESOURCE: self.pediaJump(PEDIA_RESOURCES, inputClass.getData1(), True, True) return 0
This was on my todo list to fix. Cheers!