For the UI components there is also a file that imports all the *.ldl files called:
C:\civ3_project\civ3_data\english\uidata\layouts\c iv3.ldl
I mention this, because it is important to know which *.ldl file is actual used.
At least the thing above must be the path on Activion's computer, for the CTP1 version. So we see here another reason why I don't play Sid Meyers Civ3. Activion already made it and they made also a sequel to it so we actually modding Civ4, so no need to downgrate.
But back to topic: So what you can do with these UI componets is to replace graphics, rezize them (that was done to the CTP1 trade screen. And maybe adding graphics if you only do it with strings. You can modify the min and max values with those spinners like I did it with the city size spinner in the cheat editor.
But had never any luck to add new buttons or new pages for example I tried to add on the select numbers of opponents screen to add new buttons so that you can start a game with more than eigth without modifying the userprofile.txt by hand.
So I added to this code some entries:
PHP Code:
|
Group {
PlayerOne:POPUP_CHECKBOX {
string text "str_ldl_3"
int ypix 45
}
PlayerTwo:POPUP_CHECKBOX {
string text "str_ldl_4"
int ypix 75
}
PlayerThree:POPUP_CHECKBOX {
string text "str_ldl_5"
int ypix 105
}
PlayerFour:POPUP_CHECKBOX {
string text "str_ldl_6"
int ypix 135
}
PlayerFive:POPUP_CHECKBOX {
string text "str_ldl_7"
int ypix 165
}
PlayerSix:POPUP_CHECKBOX {
string text "str_ldl_8"
int ypix 195
}
}
}
|
like PlayerSeven:POPUP_CHECKBOX
But there was no effect the game just ignores it. You could do a string search in the ctp2.exe: And you will find all the UI components that works like: ScenarioButton. So I guess adding buttons (if they are not in a list box) and adding new pages would require to rewrite the ctp2.exe. So what you have is difined in the ctp2.exe to do the fine work you have the *.ldl files that does make sense as you can write the *.exe first and finish the graphics later.
-Martin