Hey Schmiddie,
The button for Port Royal is missing in your submod. I've looked into it, and found it is because the code for it in CvMainInterface.py is missing.
This is the line of code in the base mod. You can fix it if you add this at line 719:
The button for Port Royal is missing in your submod. I've looked into it, and found it is because the code for it in CvMainInterface.py is missing.
This is the line of code in the base mod. You can fix it if you add this at line 719:
Code:
#RaR, ray, Port Royal
screen.setImageButton("PortRoyalScreenButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_PORT_ROYAL").getPath(), iBtnX, (TOP_CENTER_HUD_HEIGHT - self.ADVISOR_BUTTON_SIZE) / 2, self.ADVISOR_BUTTON_SIZE, self.ADVISOR_BUTTON_SIZE, WidgetTypes.WIDGET_ACTION, gc.getControlInfo(ControlTypes.CONTROL_PORT_ROYAL_SCREEN).getActionInfoIndex(), -1 )
screen.setImageShape("PortRoyalScreenButton", ImageShapes.IMAGE_SHAPE_ELLIPSE, -1)
screen.setHitMargins("PortRoyalScreenButton", self.ADVISOR_BUTTON_SIZE / 6, self.ADVISOR_BUTTON_SIZE / 6)
self.appendtoHideState(screen, "PortRoyalScreenButton", HIDE_TYPE_MAP, HIDE_LEVEL_HIDE)
iBtnX += self.ADVISOR_BUTTON_SPACING
#RaR, ray, Port Royal END