mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed: "X time counter(s)" for suspend keyword, caused by not adding number hints for non-numeric things;
No longer request thumbnails of missing images git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@714 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -203,7 +203,7 @@ void DropDownChoiceListBase::generateThumbnailImages() {
|
||||
ScriptableImage& img = s.choice_images[name];
|
||||
if (!img.update(ctx) && status == THUMB_CHANGED) {
|
||||
status = THUMB_OK; // no need to rebuild
|
||||
} else {
|
||||
} else if (img.isReady()) {
|
||||
// request this thumbnail
|
||||
thumbnail_thread.request( new_intrusive4<ChoiceThumbnailRequest>(
|
||||
&cve, i, status == THUMB_NOT_MADE && !img.local(), img.threadSafe()
|
||||
|
||||
@@ -122,13 +122,14 @@ String do_english_num(String input, String(*fun)(int)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return _("<hint-2>") + input;
|
||||
} else {
|
||||
long i = 0;
|
||||
if (input.ToLong(&i)) {
|
||||
return fun(i);
|
||||
}
|
||||
return input;
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
SCRIPT_FUNCTION(english_number) {
|
||||
|
||||
Reference in New Issue
Block a user