xienwolf
Deity
Working with the joys of interface screens once again, and I was wondering if there is an inbuilt limitation against placing something scrollable inside of something else which is scrollable.
I seem to be able to use the command attachMultilineText without issue as long as I am placing the text in the background, but as soon as I try to change the AttachID to something which has a scrollable area, I start getting C++ exceptions.
So:
screen.attachMultilineText(self.TITLE_TOP_PANEL, szPaneIDHelp, szHelpText, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
Works fine, with self.TITLE_TOP_PANEL having been created using:
screen.addPanel( self.TITLE_TOP_PANEL, u"", u"", True, False, 0, 0, self.W_SCREEN, self.PANEL_HEIGHT, PanelStyles.PANEL_STYLE_TOPBAR )
But:
screen.attachMultilineText(self.self.QUICKVIEW_ADD, szPaneIDHelp, szHelpText, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
Doesn't work, with self.QUICKVIEW_ADD having been created using:
screen.addScrollPanel( self.QUICKVIEW_ADD, u"", 0, 0, self.W_SCREEN, self.PANEL_HEIGHT-20, PanelStyles.PANEL_STYLE_EXTERNAL )
Is there any way around this? Something else I can add to the scrollable area which will move with it and be capable of holding another scrollable within itself maybe?
Alternatively, if anyone even knows somewhere in Civ where a scrollable appears inside a scrollable I can figure things out from there.
I seem to be able to use the command attachMultilineText without issue as long as I am placing the text in the background, but as soon as I try to change the AttachID to something which has a scrollable area, I start getting C++ exceptions.
So:
screen.attachMultilineText(self.TITLE_TOP_PANEL, szPaneIDHelp, szHelpText, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
Works fine, with self.TITLE_TOP_PANEL having been created using:
screen.addPanel( self.TITLE_TOP_PANEL, u"", u"", True, False, 0, 0, self.W_SCREEN, self.PANEL_HEIGHT, PanelStyles.PANEL_STYLE_TOPBAR )
But:
screen.attachMultilineText(self.self.QUICKVIEW_ADD, szPaneIDHelp, szHelpText, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
Doesn't work, with self.QUICKVIEW_ADD having been created using:
screen.addScrollPanel( self.QUICKVIEW_ADD, u"", 0, 0, self.W_SCREEN, self.PANEL_HEIGHT-20, PanelStyles.PANEL_STYLE_EXTERNAL )
Is there any way around this? Something else I can add to the scrollable area which will move with it and be capable of holding another scrollable within itself maybe?
Alternatively, if anyone even knows somewhere in Civ where a scrollable appears inside a scrollable I can figure things out from there.