frenchman
Present is past of future
- Joined
- Aug 15, 2003
- Messages
- 1,039
Hello,
I try to change the size of the icons in the civilopedia.
The first step, I change the "self.ICON_SIZE = 64 to 160" in CvPediaBonus.
It works, I have a bigger icon for the resource (Aluminium), so I increase the size of the dds file in order to have a beautiful picture (I create a new one) ==> it works
The problem comes when I go to the Unit civilopedia screen.For the modern tank I use the resource... And in the screen the icon has the size of the dds file (too big), it seems that the code in the CvPediaUnit is "GenericButtonSizes.BUTTON_SIZE_CUSTOM" but I tried, without success, to change this to have a 64 size...
To summarize I would like to have a 160x160 dds resource icon which appears at this size in the resource screen (it works) and at the size of 64 in the Unit screen (doesn't work for the moment...)
Does someone know how to proceed ?
I try to change the size of the icons in the civilopedia.
The first step, I change the "self.ICON_SIZE = 64 to 160" in CvPediaBonus.
It works, I have a bigger icon for the resource (Aluminium), so I increase the size of the dds file in order to have a beautiful picture (I create a new one) ==> it works
The problem comes when I go to the Unit civilopedia screen.For the modern tank I use the resource... And in the screen the icon has the size of the dds file (too big), it seems that the code in the CvPediaUnit is "GenericButtonSizes.BUTTON_SIZE_CUSTOM" but I tried, without success, to change this to have a 64 size...
To summarize I would like to have a 160x160 dds resource icon which appears at this size in the resource screen (it works) and at the size of 64 in the Unit screen (doesn't work for the moment...)
Does someone know how to proceed ?
