mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
fixed update ui for NewWindow
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@106 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -45,9 +45,7 @@ SetP MSE1FileFormat::importSet(const String& filename) {
|
||||
wxTextInputStream file(f);
|
||||
#endif
|
||||
// create set
|
||||
SetP set(new Set);
|
||||
set->game = Game::byName(_("magic"));
|
||||
set->data.init(set->game->set_fields);
|
||||
SetP set(new Set(Game::byName(_("magic"))));
|
||||
|
||||
// file version check
|
||||
String format = file.ReadLine();
|
||||
|
||||
@@ -26,6 +26,7 @@ class MSE2FileFormat : public FileFormat {
|
||||
return set;
|
||||
}
|
||||
virtual void exportSet(Set& set, const String& filename) {
|
||||
settings.addRecentFile(filename);
|
||||
set.saveAs(filename);
|
||||
set.actions.setSavePoint();;
|
||||
}
|
||||
|
||||
+6
-2
@@ -31,13 +31,17 @@ Set::Set()
|
||||
Set::Set(const GameP& game)
|
||||
: game(game)
|
||||
, script_manager(new ScriptManager(*this))
|
||||
{}
|
||||
{
|
||||
data.init(game->set_fields);
|
||||
}
|
||||
|
||||
Set::Set(const StyleSheetP& stylesheet)
|
||||
: stylesheet(stylesheet)
|
||||
, game(stylesheet->game)
|
||||
, script_manager(new ScriptManager(*this))
|
||||
{}
|
||||
{
|
||||
data.init(game->set_fields);
|
||||
}
|
||||
|
||||
Set::~Set() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user