Commit cd0af675 authored by coppro's avatar coppro

Added perl script to generate updates page.

Added/fixed versioning in data.
Added more framework to update checker.
parent 27cd7f6e
mse version: 0.3.2 mse version: 0.3.5
full name: English full name: English
version: 2007-09-23
############################################################## Menu items ############################################################## Menu items
menu: menu:
......
mse version: 0.3.3 mse version: 0.3.5
full name: Magic The Gathering, card blend utilities 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 # This file doesn't do anything, other files in this directory can be included
# in game/style files: # in game/style files:
......
mse version: 0.3.2 mse version: 0.3.5
full name: Magic The Gathering, placeholder images full name: Magic The Gathering, placeholder images
version: 2007.05.09 version: 2007-09-23
mse version: 0.3.3 mse version: 0.3.5
version: 2007-09-23
image font size: 46 image font size: 46
horizontal space: 1.2 horizontal space: 1.2
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
full name: Extended Art full name: Extended Art
short name: Extended Art short name: Extended Art
icon: card-sample.png icon: card-sample.png
position hint: 006 position hint: 006
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
full name: FPM's Flip Magic full name: FPM's Flip Magic
short name: FPM Flip short name: FPM Flip
icon: card-sample.png icon: card-sample.png
position hint: 402 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 width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
full name: FPM's Normal Magic full name: FPM's Normal Magic
short name: FPM Normal short name: FPM Normal
icon: card-sample.png icon: card-sample.png
position hint: 401 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 width: 375
card height: 523 card height: 523
......
...@@ -4,6 +4,7 @@ full name: FPM's Promo Magic ...@@ -4,6 +4,7 @@ full name: FPM's Promo Magic
short name: FPM Promo short name: FPM Promo
icon: card-sample.png icon: card-sample.png
position hint: 404 position hint: 404
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
full name: FPM's Split Magic full name: FPM's Split Magic
short name: FPM Split short name: FPM Split
icon: card-sample.png icon: card-sample.png
position hint: 403 position hint: 403
version: 2007-09-23
card width: 523 card width: 523
card height: 375 card height: 375
......
mse version: 0.3.2 mse version: 0.3.5
game: magic game: magic
full name: FPM's Token Magic full name: FPM's Token Magic
short name: FPM Token short name: FPM Token
icon: card-sample.png icon: card-sample.png
position hint: 407 position hint: 407
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.5 mse version: 0.3.5
full name: Icons/symbols for futureshifted Magic The Gathering templates full name: Icons/symbols for futureshifted Magic The Gathering templates
version: 2007.08.28 version: 2007-09-23
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Future Textless short name: Future Textless
full name: Futureshift Textless full name: Futureshift Textless
icon: card-sample.png icon: card-sample.png
position hint: 051 position hint: 051
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Future short name: Future
full name: Futureshift full name: Futureshift
icon: card-sample.png icon: card-sample.png
position hint: 050 position hint: 050
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.5 mse version: 0.3.5
version: 2007-09-23
# Symbol font in the beveled style used for casting costs on FPM cards # Symbol font in the beveled style used for casting costs on FPM cards
# Note: # Note:
# Define small_mana_t:="mana_t(_old)?.png" in the init script of the style # Define small_mana_t:="mana_t(_old)?.png" in the init script of the style
......
mse version: 0.3.5 mse version: 0.3.5
version: 2007-09-23
# Symbol font in the 'futuristic' style, used for casting costs on futureshift cards # Symbol font in the 'futuristic' style, used for casting costs on futureshift cards
image font size: 135 image font size: 135
......
mse version: 0.3.5 mse version: 0.3.5
version: 2007-09-23
# Symbol font in the 'popup' style, used for casting costs on modern cards # Symbol font in the 'popup' style, used for casting costs on modern cards
image font size: 135 image font size: 135
......
mse version: 0.3.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 # Symbol font in the normal, flat, style, used for text boxes and on old style cards
# Note: # Note:
# Define mana_t := {"new|old|older"} in the init script of the style # Define mana_t := {"new|old|older"} in the init script of the style
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Flip Cards short name: Flip Cards
full name: Modern flip cards full name: Modern flip cards
icon: card-sample.png icon: card-sample.png
position hint: 002 position hint: 002
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Walkers short name: Walkers
full name: Modern Planeswalkers full name: Modern Planeswalkers
icon: card-sample.png icon: card-sample.png
position hint: 008 position hint: 008
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Promotional short name: Promotional
full name: Large image full name: Large image
icon: card-sample.png icon: card-sample.png
position hint: 004 position hint: 004
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Split Cards short name: Split Cards
full name: Modern split cards full name: Modern split cards
icon: card-sample.png icon: card-sample.png
position hint: 003 position hint: 003
version: 2007-09-23
card width: 523 card width: 523
card height: 375 card height: 375
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Tokens short name: Tokens
full name: Modern style full name: Modern style
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Modern style short name: Modern style
full name: After 8th edition full name: After 8th edition
icon: card-sample.png icon: card-sample.png
position hint: 001 position hint: 001
version: 2007-05-05 version: 2007-09-23
depends on: depends on:
package: magic.mse-game package: magic.mse-game
version: 2007-07-01 version: 2007-07-01
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
full name: Magic Old Split Cards full name: Magic Old Split Cards
short name: Old Splits short name: Old Splits
icon: card-sample.png icon: card-sample.png
position hint: 103 position hint: 103
version: 2007-09-23
card width: 523 card width: 523
card height: 375 card height: 375
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
############################################################## ##############################################################
############################################################## ##############################################################
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Tokens short name: Tokens
full name: Old style full name: Old style
icon: card-sample.png icon: card-sample.png
position hint: 107 position hint: 107
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
############################################################## ##############################################################
############################################################## ##############################################################
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Old style short name: Old style
full name: Before 8th edition full name: Before 8th edition
icon: card-sample.png icon: card-sample.png
position hint: 101 position hint: 101
version: 2007-09-23
card width: 337 card width: 337
card height: 469 card height: 469
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Planeshifted short name: Planeshifted
full name: Planar Chaos Timeshifts full name: Planar Chaos Timeshifts
icon: card-sample.png icon: card-sample.png
position hint: 011 position hint: 011
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
# Simple exporter for HTML files # Simple exporter for HTML files
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Spoiler short name: Spoiler
full name: List of cards full name: List of cards
icon: preview.png icon: preview.png
create directory: true create directory: true
version: 2007-09-23
option field: option field:
type: choice type: choice
......
mse version: 0.3.4 mse version: 0.3.5
game: magic game: magic
short name: Textless short name: Textless
full name: Modern style full name: Modern style
icon: card-sample.png icon: card-sample.png
position hint: 005 position hint: 005
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.2 mse version: 0.3.5
full name: Magic The Gathering, textbox watermarks 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 # This file doesn't do anything, other files in this directory can be included
# in game/style files: # in game/style files:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
short name: Magic short name: Magic
full name: Magic the Gathering full name: Magic the Gathering
icon: card-back.png icon: card-back.png
version: 2007-08-28 version: 2007-09-23
position hint: 01 position hint: 01
############################################################## Functions & filters ############################################################## Functions & filters
......
mse version: 0.3.2 mse version: 0.3.2
game: vanguard game: vanguard
short name: Standard short name: Standard
icon: card-sample.png icon: card-sample.png
position hint: 01 position hint: 01
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
short name: Vanguard short name: Vanguard
full name: Magic Vanguard full name: Magic Vanguard
icon: card-sample.png icon: card-sample.png
position hint: 02 position hint: 02
version: 2007-09-23
# Author : Wolfwood # Author : Wolfwood
# Most stuff is copy/pasted from magic.mse-game # Most stuff is copy/pasted from magic.mse-game
......
mse version: 0.3.5 mse version: 0.3.5
game: vs game: vs
full name: VS Alter Ego full name: VS Alter Ego
short name: Alter Ego short name: Alter Ego
icon: card-sample.png icon: card-sample.png
position hint: 005 position hint: 005
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs.mse-game package: vs.mse-game
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs-common.mse-include package: vs-common.mse-include
version: 2007-09-06 version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.5 mse version: 0.3.5
full name: VS System, textbox watermarks 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 # This file doesn't do anything, other files in this directory can be included
# in game/style files: # in game/style files:
......
mse version: 0.3.5 mse version: 0.3.5
game: vs game: vs
full name: VS Extended Art full name: VS Extended Art
short name: Extended Art short name: Extended Art
icon: card-sample.png icon: card-sample.png
position hint: 002 position hint: 002
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs.mse-game package: vs.mse-game
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs-common.mse-include package: vs-common.mse-include
version: 2007-09-06 version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.3 mse version: 0.3.5
game: vs game: vs
full name: Hellboy Extended Art full name: Hellboy Extended Art
short name: Extended Art short name: Extended Art
icon: card-sample.png icon: card-sample.png
position hint: 004 position hint: 004
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs.mse-game package: vs.mse-game
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs-common.mse-include package: vs-common.mse-include
version: 2007-09-06 version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.5 mse version: 0.3.5
game: vs game: vs
full name: Hellboy Normal full name: Hellboy Normal
short name: Hellboy short name: Hellboy
icon: card-sample.png icon: card-sample.png
position hint: 003 position hint: 003
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs.mse-game package: vs.mse-game
version: 2007-09-06 version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.5 mse version: 0.3.5
game: vs game: vs
full name: New Style EM full name: New Style EM
short name: New Style short name: New Style
icon: card-sample.png icon: card-sample.png
position hint: 006 position hint: 006
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs.mse-game package: vs.mse-game
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs-common.mse-include package: vs-common.mse-include
version: 2007-09-06 version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
# Simple exporter for HTML files # Simple exporter for HTML files
mse version: 0.3.4 mse version: 0.3.5
game: vs game: vs
short name: Spoiler short name: Spoiler
full name: List of cards full name: List of cards
icon: preview.png icon: preview.png
create directory: true create directory: true
version: 2007-09-23
option field: option field:
type: choice type: choice
......
mse version: 0.3.2 mse version: 0.3.5
version: 2007-09-23
# Symbol font for arrow symbol # Symbol font for arrow symbol
image font size: 135 image font size: 135
......
mse version: 0.3.5 mse version: 0.3.5
version: 2007-09-23
# Symbol font for the new template # Symbol font for the new template
image font size: 135 image font size: 135
......
mse version: 0.3.5 mse version: 0.3.5
game: vs game: vs
full name: VS Standard full name: VS Standard
short name: Standard short name: Standard
icon: card-sample.png icon: card-sample.png
position hint: 001 position hint: 001
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs.mse-game package: vs.mse-game
version: 2007-09-06 version: 2007-09-23
depends on: depends on:
package: vs-common.mse-include package: vs-common.mse-include
version: 2007-09-06 version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
full name: VS System full name: VS System
short name: VS short name: VS
icon: card-back.png icon: card-back.png
version: 2007-09-06 version: 2007-09-23
position hint: 3 position hint: 3
############################################################## Functions & filters ############################################################## Functions & filters
......
mse version: 0.3.4 mse version: 0.3.5
version: 2007-09-23
# Symbol font for level symbols # Symbol font for level symbols
image font size: 16 image font size: 16
......
mse version: 0.3.4 mse version: 0.3.5
game: yugioh game: yugioh
short name: Standard short name: Standard
icon: card-sample.png icon: card-sample.png
position hint: 01 position hint: 01
version: 2007-09-23
card width: 375 card width: 375
card height: 523 card height: 523
......
mse version: 0.3.4 mse version: 0.3.5
# Symbol font for missing characters # Symbol font for missing characters
version: 2007-09-23
image font size: 16 image font size: 16
horizontal space: 2 horizontal space: 2
......
mse version: 0.3.4 mse version: 0.3.5
short name: Yu-Gi-Oh! short name: Yu-Gi-Oh!
icon: card-back.png icon: card-back.png
position hint: 4 position hint: 4
version: 2007-09-23
############################################################## Functions & filters ############################################################## Functions & filters
## Copied and Pasted from vs.mse-game, with a few modifications ## Copied and Pasted from vs.mse-game, with a few modifications
......
...@@ -33,7 +33,6 @@ class PackageVersionData : public IntrusivePtrBase<PackageVersionData> { ...@@ -33,7 +33,6 @@ class PackageVersionData : public IntrusivePtrBase<PackageVersionData> {
String name; ///< Name of the package String name; ///< Name of the package
String description; ///< html description String description; ///< html description
String url; ///< Where can the package be downloaded? 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 version; ///< Version number of the download
Version app_version; ///< The minimium version of MSE required Version app_version; ///< The minimium version of MSE required
vector<PackageDependencyP> depends; ///< Packages this depends on vector<PackageDependencyP> depends; ///< Packages this depends on
...@@ -56,7 +55,6 @@ IMPLEMENT_REFLECTION(PackageVersionData) { ...@@ -56,7 +55,6 @@ IMPLEMENT_REFLECTION(PackageVersionData) {
REFLECT(name); REFLECT(name);
REFLECT(description); REFLECT(description);
REFLECT(url); REFLECT(url);
REFLECT(is_installer);
REFLECT(version); REFLECT(version);
REFLECT(app_version); REFLECT(app_version);
REFLECT_N("depends ons", depends); REFLECT_N("depends ons", depends);
...@@ -369,16 +367,44 @@ void UpdatesWindow::onActionChange(wxCommandEvent& ev) { ...@@ -369,16 +367,44 @@ void UpdatesWindow::onActionChange(wxCommandEvent& ev) {
PackageVersionDataP pack = update_version_data->packages[package_list->GetSelection()]; PackageVersionDataP pack = update_version_data->packages[package_list->GetSelection()];
PackageAction& action = package_data[pack].second; PackageAction& action = package_data[pack].second;
switch (ev.GetId()) { switch (ev.GetId()) {
case ID_INSTALL: action = ACTION_INSTALL; break; case ID_INSTALL:
case ID_REMOVE: action = ACTION_UNINSTALL; break; action = ACTION_INSTALL;
case ID_UPGRADE: action = ACTION_UPGRADE; break; SelectPackageDependencies(pack);
case ID_CANCEL: action = (pack->app_version > file_version) ? ACTION_NEW_MSE : ACTION_NOTHING; break; 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()); updateButtons(package_list->GetSelection());
package_list->Refresh(); package_list->Refresh();
} }
void UpdatesWindow::onApplyChanges(wxCommandEvent& ev) { void UpdatesWindow::onApplyChanges(wxCommandEvent& ev) {
FOREACH(update_version_data->packages, pack) {
PackageAction action = package_data[pack].second;
}
} }
void UpdatesWindow::updateButtons(int id) { void UpdatesWindow::updateButtons(int id) {
...@@ -439,6 +465,15 @@ void UpdatesWindow::setDefaultPackageStatus() { ...@@ -439,6 +465,15 @@ void UpdatesWindow::setDefaultPackageStatus() {
} }
} }
void SelectPackageDependencies (PackageVersionDataP pack) {
}
void RemovePackageDependencies (PackageVersionDataP pack) {
}
void DowngradePackageDependencies (PackageVersionDataP pack) {
}
BEGIN_EVENT_TABLE(UpdatesWindow, Frame) BEGIN_EVENT_TABLE(UpdatesWindow, Frame)
EVT_COMMAND(wxID_ANY, UPDATE_CHECK_FINISHED_EVT, UpdatesWindow::onUpdateCheckFinished) EVT_COMMAND(wxID_ANY, UPDATE_CHECK_FINISHED_EVT, UpdatesWindow::onUpdateCheckFinished)
EVT_LISTBOX(ID_PACKAGE_LIST, UpdatesWindow::onPackageSelect) EVT_LISTBOX(ID_PACKAGE_LIST, UpdatesWindow::onPackageSelect)
......
...@@ -72,6 +72,10 @@ class UpdatesWindow : public Frame { ...@@ -72,6 +72,10 @@ class UpdatesWindow : public Frame {
void onActionChange(wxCommandEvent&); void onActionChange(wxCommandEvent&);
void onApplyChanges(wxCommandEvent&); void onApplyChanges(wxCommandEvent&);
void SelectPackageDependencies (PackageVersionDataP);
void RemovePackageDependencies (PackageVersionDataP);
void DowngradePackageDependencies(PackageVersionDataP);
/// Update the buttons to indicate that this is selected. /// Update the buttons to indicate that this is selected.
void updateButtons(int index); void updateButtons(int index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment