EmperorFool
Deity
Dresden pointed me to a thread that shows how to use a theme to create our own buttons that behave just like Civ's minimap/advisor buttons, meaning they
Note that we would add button definitions to the Civ4 theme files under (a) without affecting the game when not running BUG or using a different mod. We won't replace any Civ4 objects. You would only see a difference when running BUG. In the (b) case, this isn't even an issue since all the files would be in the BUG Mod folder.
How do users feel about this? I know that even though we can assert that our changes won't affect the regular game, people may feel skittish about modifying core Civ4 files. We would of course make a backup of the file.
And it would of course be up to you, NikNaks, to create these new buttons, but I think you're game if it means no more blurry buttons, right? Also, the buttons should be easier to make as the base button background is separate from the image that goes on the individual button--just like you were proposing for a font-symbol-based button. And they're TGAs allowing non-power-of-2 sizes.
Making the Change
We need to add a single line to the file "Resource/Themes/Civ4/Civ4Theme.thm":
And then add a new file to that same directory: "Civ4Theme_BUG.thm". We should be able to make the installer act differently depending on how they install BUG.
- Highlight when you hover
- Can be prettier: no scaling means no blurriness
- Can be cooler: different images for the different states (hover, click, toggled)
Note that we would add button definitions to the Civ4 theme files under (a) without affecting the game when not running BUG or using a different mod. We won't replace any Civ4 objects. You would only see a difference when running BUG. In the (b) case, this isn't even an issue since all the files would be in the BUG Mod folder.
How do users feel about this? I know that even though we can assert that our changes won't affect the regular game, people may feel skittish about modifying core Civ4 files. We would of course make a backup of the file.
And it would of course be up to you, NikNaks, to create these new buttons, but I think you're game if it means no more blurry buttons, right? Also, the buttons should be easier to make as the base button background is separate from the image that goes on the individual button--just like you were proposing for a font-symbol-based button. And they're TGAs allowing non-power-of-2 sizes.
Making the Change
We need to add a single line to the file "Resource/Themes/Civ4/Civ4Theme.thm":
include "Civ4Theme_BUG.thm";
And then add a new file to that same directory: "Civ4Theme_BUG.thm". We should be able to make the installer act differently depending on how they install BUG.