CvMainInterface.py - unit/promotion info pane

Tholal

Emperor
Joined
May 19, 2009
Messages
1,676
I really hate this file. It is so convoluted and confusing. Can someone point me to the code I need to change to move this info pane to the right?

Arghhh... for some unknown reason, Civ4 is now only taking screenshots that dont show the interface so I have to try and describe what I'm talking about.

I'm referring the the info panel in the lower left corner, right above the selected unit info. It appears when you mouseover a unit or a promotion.
 
That would be the help text area. Its position should be set via the various calls to screen.setHelpTextArea. The X position should be the 3rd argument.
 
Is this?

attachment.php
 

Attachments

  • help.jpg
    help.jpg
    94.1 KB · Views: 252
VOID setHelpTextArea (FLOAT fWidth, FontType eFont, FLOAT fX, FLOAT fY, FLOAT fZ, BOOL bFloating, STRING szArtFile, BOOL bExpandRight, BOOL bExpandDown, INT uiFlags, INT iMinWidth)

First one
 
CyMainInterface.py
Code:
   # Help Text Area
        screen.setHelpTextArea( 350 FontTypes.SMALL_FONT, 0, 0, -2.2, True, ArtFileMgr.getInterfaceArtInfo("POPUPS_BACKGROUND_TRANSPARENT").getPath(), True, True, CvUtil.FONT_LEFT_JUSTIFY, 0 )

Changing the 350 did't change anything ingame. What code changes did you do?
 
Certain changes only take effect upon loading.
Also, there are various help text areas in that file, so depends on which you changed
 
Add you are apparently missing a comma after the 350, if what you posted is what you really have in there...

There may be some upper limit. The highest number used in BtS is 390. In CvMainInterface 6 out of 7 uses are 350 (and the other one is the 390). So if it is a 350 you are adjusting, then 390 ought to work, but anything bigger may be subject to some upper limit (although 390 seems like an odd upper limit).

Interestingly, I just searched the Python of a number of mods, some of which make significant changes to the look of the screen such as FfH2 and Dune Wars, and not one of them has changed these values. A couple moved the area a bit but none that I searched changed the widths.
 
Back
Top Bottom