mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
Fixed: custom keywords not immediatly active;
Version bump; Moved the busy cursor to actual loading of set; git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@364 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -404,9 +404,9 @@ void SetWindow::onFileNew(wxCommandEvent&) {
|
|||||||
|
|
||||||
void SetWindow::onFileOpen(wxCommandEvent&) {
|
void SetWindow::onFileOpen(wxCommandEvent&) {
|
||||||
if (!askSaveAndContinue()) return;
|
if (!askSaveAndContinue()) return;
|
||||||
wxBusyCursor busy;
|
|
||||||
wxFileDialog dlg(this, _TITLE_("open set"), _(""), _(""), import_formats(), wxOPEN);
|
wxFileDialog dlg(this, _TITLE_("open set"), _(""), _(""), import_formats(), wxOPEN);
|
||||||
if (dlg.ShowModal() == wxID_OK) {
|
if (dlg.ShowModal() == wxID_OK) {
|
||||||
|
wxBusyCursor busy;
|
||||||
setSet(import_set(dlg.GetPath()));
|
setSet(import_set(dlg.GetPath()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -415,6 +415,7 @@ void SetWindow::onFileSave(wxCommandEvent& ev) {
|
|||||||
if (set->needSaveAs()) {
|
if (set->needSaveAs()) {
|
||||||
onFileSaveAs(ev);
|
onFileSaveAs(ev);
|
||||||
} else {
|
} else {
|
||||||
|
wxBusyCursor busy;
|
||||||
settings.addRecentFile(set->absoluteFilename());
|
settings.addRecentFile(set->absoluteFilename());
|
||||||
set->save();
|
set->save();
|
||||||
set->actions.setSavePoint();
|
set->actions.setSavePoint();
|
||||||
|
|||||||
@@ -226,10 +226,10 @@ SCRIPT_RULE_2_N_DEP(expand_keywords, ScriptValueP, _("default expand"), default_
|
|||||||
SCRIPT_PARAM(Set*, set);
|
SCRIPT_PARAM(Set*, set);
|
||||||
KeywordDatabase& db = set->keyword_db;
|
KeywordDatabase& db = set->keyword_db;
|
||||||
if (db.empty()) {
|
if (db.empty()) {
|
||||||
db.add(set->game->keywords);
|
|
||||||
db.add(set->keywords);
|
|
||||||
db.prepare_parameters(set->game->keyword_parameter_types, set->game->keywords);
|
db.prepare_parameters(set->game->keyword_parameter_types, set->game->keywords);
|
||||||
db.prepare_parameters(set->game->keyword_parameter_types, set->keywords);
|
db.prepare_parameters(set->game->keyword_parameter_types, set->keywords);
|
||||||
|
db.add(set->game->keywords);
|
||||||
|
db.add(set->keywords);
|
||||||
}
|
}
|
||||||
SCRIPT_RETURN(db.expand(input, default_expand, combine, ctx));
|
SCRIPT_RETURN(db.expand(input, default_expand, combine, ctx));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ template <> void GetDefaultMember::handle(const Version& v) {
|
|||||||
// ----------------------------------------------------------------------------- : Versions
|
// ----------------------------------------------------------------------------- : Versions
|
||||||
|
|
||||||
// NOTE: Don't use leading zeroes, they mean octal
|
// NOTE: Don't use leading zeroes, they mean octal
|
||||||
const Version app_version = 302; // 0.3.2
|
const Version app_version = 303; // 0.3.3
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
const Char* version_suffix = _(" (beta)");
|
const Char* version_suffix = _(" (beta)");
|
||||||
#else
|
#else
|
||||||
@@ -64,5 +64,6 @@ const Char* version_suffix = _(" (beta, ascii build)");
|
|||||||
* 0.3.0 : port of code to C++
|
* 0.3.0 : port of code to C++
|
||||||
* 0.3.1 : new keyword system, some new style options
|
* 0.3.1 : new keyword system, some new style options
|
||||||
* 0.3.2 : package dependencies
|
* 0.3.2 : package dependencies
|
||||||
|
* 0.3.3 : keyword separator before/after
|
||||||
*/
|
*/
|
||||||
const Version file_version = 302; // 0.3.2
|
const Version file_version = 303; // 0.3.3
|
||||||
|
|||||||
Reference in New Issue
Block a user