Update terrain dialog and some other tweaks/fixes

- Fix documentation of how to format map graphics, to match the logic in the code
- Fix display of map graphics both on the automap and in dialogs
- Add Choose button to select the map graphic
- Fix the vanishing text bug again (this time it only triggered for fields with a single character in them)
This commit is contained in:
2015-06-06 02:51:30 -04:00
parent 2b4ca2d0a5
commit 510da3cf72
6 changed files with 36 additions and 33 deletions

View File

@@ -201,7 +201,7 @@ void cTextField::draw(){
size_t ip_offset = 0;
hilite_t hilite = {insertionPoint, selectionPoint};
if(selectionPoint < insertionPoint) std::swap(hilite.first,hilite.second);
if(haveFocus && contents.length() > 1 && changeMade) {
if(haveFocus && contents.length() >= 1 && changeMade) {
text_rect = frame;
text_rect.inset(2,2);
// Determine which line the insertion and selection points are on

View File

@@ -122,9 +122,9 @@ void cPict::setPict(pic_num_t num, ePicType type){
picNum -= 10000;
picType += PIC_PARTY;
} else {
picType += PIC_CUSTOM;
if(picType != PIC_CUSTOM_TER_MAP)
picNum %= 1000;
picType += PIC_CUSTOM;
}
}
recalcRect();