Changing the size of the unit info box

Discussion in 'Rise of Mankind: A New Dawn' started by Noyyau, Dec 25, 2014.

  1. Noyyau

    Noyyau Privateer Captain

    Joined:
    Jun 9, 2012
    Messages:
    1,443
    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 :
     

    Attached Files:

  2. Combat Wombat

    Combat Wombat Warlord

    Joined:
    Oct 26, 2009
    Messages:
    201
    Location:
    Minnesota
    I would love to see the useless flag axed and the minimap made much larger
     
  3. Afforess

    Afforess The White Wizard

    Joined:
    Jul 31, 2007
    Messages:
    12,239
    Location:
    Austin, Texas
    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.
     
  4. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    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.
     

Share This Page