Added perl script to generate updates page.

Added/fixed versioning in data.
Added more framework to update checker.



git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@750 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-09-23 21:49:10 +00:00
parent d17fe83474
commit 1f59376b54
51 changed files with 180 additions and 74 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
mse version: 0.3.2
mse version: 0.3.5
full name: English
version: 2007-09-23
############################################################## Menu items
menu:
+2 -2
View File
@@ -1,6 +1,6 @@
mse version: 0.3.3
mse version: 0.3.5
full name: Magic The Gathering, card blend utilities
version: 2007.05.13
version: 2007-09-23
# This file doesn't do anything, other files in this directory can be included
# in game/style files:
+2 -2
View File
@@ -1,3 +1,3 @@
mse version: 0.3.2
mse version: 0.3.5
full name: Magic The Gathering, placeholder images
version: 2007.05.09
version: 2007-09-23
@@ -1,4 +1,5 @@
mse version: 0.3.3
mse version: 0.3.5
version: 2007-09-23
image font size: 46
horizontal space: 1.2
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
full name: Extended Art
short name: Extended Art
icon: card-sample.png
position hint: 006
version: 2007-09-23
card width: 375
card height: 523
@@ -1,9 +1,29 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
full name: FPM's Flip Magic
short name: FPM Flip
icon: card-sample.png
position hint: 402
version: 2007-09-23
depends on:
package: magic.mse-game
version: 2007-09-23
depends on:
package: magic-future-common.mse-include
version: 2007-09-23
depends on:
package: magic-default-image.mse-include
version: 2007-09-23
depends on:
package: magic-watermarks.mse-include
version: 2007-09-23
depends on:
package: magic-mana-beveled.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-mana-small.mse-symbol-font
version: 2007-09-23
card width: 375
card height: 523
+17 -1
View File
@@ -1,9 +1,25 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
full name: FPM's Normal Magic
short name: FPM Normal
icon: card-sample.png
position hint: 401
version: 2007-09-23
depends on:
package: magic.mse-game
version: 2007-09-23
depends on:
package: magic-future-common.mse-include
version: 2007-09-23
depends on:
package: magic-watermarks.mse-include
version: 2007-09-23
depends on:
package: magic-mana-beveled.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-mana-small.mse-symbol-font
version: 2007-09-23
card width: 375
card height: 523
@@ -4,6 +4,7 @@ full name: FPM's Promo Magic
short name: FPM Promo
icon: card-sample.png
position hint: 404
version: 2007-09-23
card width: 375
card height: 523
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
full name: FPM's Split Magic
short name: FPM Split
icon: card-sample.png
position hint: 403
version: 2007-09-23
card width: 523
card height: 375
@@ -1,9 +1,10 @@
mse version: 0.3.2
mse version: 0.3.5
game: magic
full name: FPM's Token Magic
short name: FPM Token
icon: card-sample.png
position hint: 407
version: 2007-09-23
card width: 375
card height: 523
+2 -2
View File
@@ -1,3 +1,3 @@
mse version: 0.3.5
mse version: 0.3.5
full name: Icons/symbols for futureshifted Magic The Gathering templates
version: 2007.08.28
version: 2007-09-23
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Future Textless
full name: Futureshift Textless
icon: card-sample.png
position hint: 051
version: 2007-09-23
card width: 375
card height: 523
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Future
full name: Futureshift
icon: card-sample.png
position hint: 050
version: 2007-09-23
card width: 375
card height: 523
@@ -1,4 +1,5 @@
mse version: 0.3.5
version: 2007-09-23
# Symbol font in the beveled style used for casting costs on FPM cards
# Note:
# Define small_mana_t:="mana_t(_old)?.png" in the init script of the style
@@ -1,4 +1,5 @@
mse version: 0.3.5
version: 2007-09-23
# Symbol font in the 'futuristic' style, used for casting costs on futureshift cards
image font size: 135
@@ -1,4 +1,5 @@
mse version: 0.3.5
version: 2007-09-23
# Symbol font in the 'popup' style, used for casting costs on modern cards
image font size: 135
@@ -1,4 +1,5 @@
mse version: 0.3.5
version: 2007-09-23
# Symbol font in the normal, flat, style, used for text boxes and on old style cards
# Note:
# Define mana_t := {"new|old|older"} in the init script of the style
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Flip Cards
full name: Modern flip cards
icon: card-sample.png
position hint: 002
version: 2007-09-23
card width: 375
card height: 523
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Walkers
full name: Modern Planeswalkers
icon: card-sample.png
position hint: 008
version: 2007-09-23
card width: 375
card height: 523
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Promotional
full name: Large image
icon: card-sample.png
position hint: 004
version: 2007-09-23
card width: 375
card height: 523
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Split Cards
full name: Modern split cards
icon: card-sample.png
position hint: 003
version: 2007-09-23
card width: 523
card height: 375
+1 -1
View File
@@ -1,4 +1,4 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Tokens
full name: Modern style
+2 -2
View File
@@ -1,11 +1,11 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Modern style
full name: After 8th edition
icon: card-sample.png
position hint: 001
version: 2007-05-05
version: 2007-09-23
depends on:
package: magic.mse-game
version: 2007-07-01
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
full name: Magic Old Split Cards
short name: Old Splits
icon: card-sample.png
position hint: 103
version: 2007-09-23
card width: 523
card height: 375
+2 -1
View File
@@ -4,12 +4,13 @@
##############################################################
##############################################################
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Tokens
full name: Old style
icon: card-sample.png
position hint: 107
version: 2007-09-23
card width: 375
card height: 523
+2 -1
View File
@@ -4,12 +4,13 @@
##############################################################
##############################################################
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Old style
full name: Before 8th edition
icon: card-sample.png
position hint: 101
version: 2007-09-23
card width: 337
card height: 469
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Planeshifted
full name: Planar Chaos Timeshifts
icon: card-sample.png
position hint: 011
version: 2007-09-23
card width: 375
card height: 523
@@ -1,10 +1,11 @@
# Simple exporter for HTML files
mse version: 0.3.4
# Simple exporter for HTML files
mse version: 0.3.5
game: magic
short name: Spoiler
full name: List of cards
icon: preview.png
create directory: true
version: 2007-09-23
option field:
type: choice
+2 -1
View File
@@ -1,9 +1,10 @@
mse version: 0.3.4
mse version: 0.3.5
game: magic
short name: Textless
full name: Modern style
icon: card-sample.png
position hint: 005
version: 2007-09-23
card width: 375
card height: 523
+2 -2
View File
@@ -1,6 +1,6 @@
mse version: 0.3.2
mse version: 0.3.5
full name: Magic The Gathering, textbox watermarks
version: 2006.08.03
version: 2007-09-23
# This file doesn't do anything, other files in this directory can be included
# in game/style files:
+1 -1
View File
@@ -2,7 +2,7 @@
short name: Magic
full name: Magic the Gathering
icon: card-back.png
version: 2007-08-28
version: 2007-09-23
position hint: 01
############################################################## Functions & filters
+2 -1
View File
@@ -1,8 +1,9 @@
mse version: 0.3.2
mse version: 0.3.2
game: vanguard
short name: Standard
icon: card-sample.png
position hint: 01
version: 2007-09-23
card width: 375
card height: 523
+2 -1
View File
@@ -1,8 +1,9 @@
mse version: 0.3.4
mse version: 0.3.5
short name: Vanguard
full name: Magic Vanguard
icon: card-sample.png
position hint: 02
version: 2007-09-23
# Author : Wolfwood
# Most stuff is copy/pasted from magic.mse-game
+4 -4
View File
@@ -1,16 +1,16 @@
mse version: 0.3.5
mse version: 0.3.5
game: vs
full name: VS Alter Ego
short name: Alter Ego
icon: card-sample.png
position hint: 005
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs.mse-game
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs-common.mse-include
version: 2007-09-06
version: 2007-09-23
card width: 375
card height: 523
+2 -2
View File
@@ -1,6 +1,6 @@
mse version: 0.3.5
mse version: 0.3.5
full name: VS System, textbox watermarks
version: 2007.09.06
version: 2007-09-23
# This file doesn't do anything, other files in this directory can be included
# in game/style files:
+4 -4
View File
@@ -1,16 +1,16 @@
mse version: 0.3.5
mse version: 0.3.5
game: vs
full name: VS Extended Art
short name: Extended Art
icon: card-sample.png
position hint: 002
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs.mse-game
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs-common.mse-include
version: 2007-09-06
version: 2007-09-23
card width: 375
card height: 523
+4 -4
View File
@@ -1,16 +1,16 @@
mse version: 0.3.3
mse version: 0.3.5
game: vs
full name: Hellboy Extended Art
short name: Extended Art
icon: card-sample.png
position hint: 004
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs.mse-game
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs-common.mse-include
version: 2007-09-06
version: 2007-09-23
card width: 375
card height: 523
+3 -3
View File
@@ -1,13 +1,13 @@
mse version: 0.3.5
mse version: 0.3.5
game: vs
full name: Hellboy Normal
short name: Hellboy
icon: card-sample.png
position hint: 003
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs.mse-game
version: 2007-09-06
version: 2007-09-23
card width: 375
card height: 523
+4 -4
View File
@@ -1,16 +1,16 @@
mse version: 0.3.5
mse version: 0.3.5
game: vs
full name: New Style EM
short name: New Style
icon: card-sample.png
position hint: 006
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs.mse-game
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs-common.mse-include
version: 2007-09-06
version: 2007-09-23
card width: 375
card height: 523
@@ -1,10 +1,11 @@
# Simple exporter for HTML files
mse version: 0.3.4
# Simple exporter for HTML files
mse version: 0.3.5
game: vs
short name: Spoiler
full name: List of cards
icon: preview.png
create directory: true
version: 2007-09-23
option field:
type: choice
@@ -1,4 +1,5 @@
mse version: 0.3.2
mse version: 0.3.5
version: 2007-09-23
# Symbol font for arrow symbol
image font size: 135
@@ -1,4 +1,5 @@
mse version: 0.3.5
mse version: 0.3.5
version: 2007-09-23
# Symbol font for the new template
image font size: 135
+4 -4
View File
@@ -1,16 +1,16 @@
mse version: 0.3.5
mse version: 0.3.5
game: vs
full name: VS Standard
short name: Standard
icon: card-sample.png
position hint: 001
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs.mse-game
version: 2007-09-06
version: 2007-09-23
depends on:
package: vs-common.mse-include
version: 2007-09-06
version: 2007-09-23
card width: 375
card height: 523
+1 -1
View File
@@ -2,7 +2,7 @@
full name: VS System
short name: VS
icon: card-back.png
version: 2007-09-06
version: 2007-09-23
position hint: 3
############################################################## Functions & filters
@@ -1,4 +1,5 @@
mse version: 0.3.4
mse version: 0.3.5
version: 2007-09-23
# Symbol font for level symbols
image font size: 16
+2 -1
View File
@@ -1,8 +1,9 @@
mse version: 0.3.4
mse version: 0.3.5
game: yugioh
short name: Standard
icon: card-sample.png
position hint: 01
version: 2007-09-23
card width: 375
card height: 523
@@ -1,5 +1,6 @@
mse version: 0.3.4
mse version: 0.3.5
# Symbol font for missing characters
version: 2007-09-23
image font size: 16
horizontal space: 2
+2 -1
View File
@@ -1,7 +1,8 @@
mse version: 0.3.4
mse version: 0.3.5
short name: Yu-Gi-Oh!
icon: card-back.png
position hint: 4
version: 2007-09-23
############################################################## Functions & filters
## Copied and Pasted from vs.mse-game, with a few modifications
+41 -6
View File
@@ -33,7 +33,6 @@ class PackageVersionData : public IntrusivePtrBase<PackageVersionData> {
String name; ///< Name of the package
String description; ///< html description
String url; ///< Where can the package be downloaded?
bool is_installer; ///< Download url refers to a .mse-installer
Version version; ///< Version number of the download
Version app_version; ///< The minimium version of MSE required
vector<PackageDependencyP> depends; ///< Packages this depends on
@@ -56,7 +55,6 @@ IMPLEMENT_REFLECTION(PackageVersionData) {
REFLECT(name);
REFLECT(description);
REFLECT(url);
REFLECT(is_installer);
REFLECT(version);
REFLECT(app_version);
REFLECT_N("depends ons", depends);
@@ -369,16 +367,44 @@ void UpdatesWindow::onActionChange(wxCommandEvent& ev) {
PackageVersionDataP pack = update_version_data->packages[package_list->GetSelection()];
PackageAction& action = package_data[pack].second;
switch (ev.GetId()) {
case ID_INSTALL: action = ACTION_INSTALL; break;
case ID_REMOVE: action = ACTION_UNINSTALL; break;
case ID_UPGRADE: action = ACTION_UPGRADE; break;
case ID_CANCEL: action = (pack->app_version > file_version) ? ACTION_NEW_MSE : ACTION_NOTHING; break;
case ID_INSTALL:
action = ACTION_INSTALL;
SelectPackageDependencies(pack);
break;
case ID_REMOVE:
action = ACTION_UNINSTALL;
RemovePackageDependencies(pack);
break;
case ID_UPGRADE:
action = ACTION_UPGRADE;
SelectPackageDependencies(pack);
break;
case ID_CANCEL:
switch (package_data[pack].first) {
case STATUS_INSTALLED:
SelectPackageDependencies(pack);
break;
case STATUS_NOT_INSTALLED:
RemovePackageDependencies(pack);
break;
case STATUS_UPGRADEABLE:
if (action == ACTION_UPGRADE)
DowngradePackageDependencies(pack);
else
SelectPackageDependencies(pack);
break;
}
action = (pack->app_version > file_version) ? ACTION_NEW_MSE : ACTION_NOTHING;
break;
}
updateButtons(package_list->GetSelection());
package_list->Refresh();
}
void UpdatesWindow::onApplyChanges(wxCommandEvent& ev) {
FOREACH(update_version_data->packages, pack) {
PackageAction action = package_data[pack].second;
}
}
void UpdatesWindow::updateButtons(int id) {
@@ -439,6 +465,15 @@ void UpdatesWindow::setDefaultPackageStatus() {
}
}
void SelectPackageDependencies (PackageVersionDataP pack) {
}
void RemovePackageDependencies (PackageVersionDataP pack) {
}
void DowngradePackageDependencies (PackageVersionDataP pack) {
}
BEGIN_EVENT_TABLE(UpdatesWindow, Frame)
EVT_COMMAND(wxID_ANY, UPDATE_CHECK_FINISHED_EVT, UpdatesWindow::onUpdateCheckFinished)
EVT_LISTBOX(ID_PACKAGE_LIST, UpdatesWindow::onPackageSelect)
+4
View File
@@ -72,6 +72,10 @@ class UpdatesWindow : public Frame {
void onActionChange(wxCommandEvent&);
void onApplyChanges(wxCommandEvent&);
void SelectPackageDependencies (PackageVersionDataP);
void RemovePackageDependencies (PackageVersionDataP);
void DowngradePackageDependencies(PackageVersionDataP);
/// Update the buttons to indicate that this is selected.
void updateButtons(int index);