Changing the size of the unit info box

Noyyau

Privateer Captain
Joined
Jun 9, 2012
Messages
1,446
Location
Italy
Recently I downloaded the latest rev (859) from dkblk's launcher, and (after solving a couple of issues) noticed that the user interface has gotten a bit bigger than in previous revs, however nothing else has been resized, giving especially the unit info box a feeling of "being too small".

Is there any way to change the size of that, to make the unit name and the promotion columns closer to the borders of the UI?

See image: on top, the UI from an old rev (666), bottom on latest rev.

Spoiler :
 

Attachments

  • Civ4ScreenShot0011.JPG
    Civ4ScreenShot0011.JPG
    234.3 KB · Views: 187
The bottom left "unit text area" increased in size as a result of a change in the city menu screen (to show building icons in the city building lists).

I toyed with making the unit 3d hover larger but the main interface is a royal pain to make changes to.
 
Code:
	def updateInfoPaneStrings( self ):
	
		iRow = 0
	
		screen = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE )

		pHeadSelectedCity = CyInterface().getHeadSelectedCity()
		pHeadSelectedUnit = CyInterface().getHeadSelectedUnit()
		
		xResolution = screen.getXResolution()
		yResolution = screen.getYResolution()

		bShift = CyInterface().shiftKey()

		screen.addPanel( "SelectedUnitPanel", u"", u"", True, False, 8, yResolution - 140, 280, 130, PanelStyles.PANEL_STYLE_STANDARD )
		screen.setStyle( "SelectedUnitPanel", "Panel_Game_HudStat_Style" )
		screen.hide( "SelectedUnitPanel" )

		screen.addTableControlGFC( "SelectedUnitText", 3, 10, yResolution - 109, 183, 102, False, False, 32, 32, TableStyles.TABLE_STYLE_STANDARD )
		screen.setStyle( "SelectedUnitText", "Table_EmptyScroll_Style" )
		screen.hide( "SelectedUnitText" )
		screen.hide( "SelectedUnitLabel" )
		
		screen.addTableControlGFC( "SelectedCityText", 3, 10, yResolution - 139, 183, 128, False, False, 32, 32, TableStyles.TABLE_STYLE_STANDARD )
		screen.setStyle( "SelectedCityText", "Table_EmptyScroll_Style" )
		screen.hide( "SelectedCityText" )

Just change the x, y, w, h of this section wherever it is in this mod.
 
Top Bottom