diff options
| author | AShifter <[email protected]> | 2017-03-08 14:57:52 -0700 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-03-08 14:57:52 -0700 |
| commit | bb768396787bd0ea5e608f007d881edec693f2ed (patch) | |
| tree | 5bc2a134d8bae6edac4fbb4757f2eb325addb7c4 /ShiftOS.WinForms/Applications/ShiftSweeper.cs | |
| parent | 369aefc5e81eba25e31d52c1031f3e8ec750cb04 (diff) | |
| parent | dfeaeea3ab22d5864569f8c303c248ab046db9e1 (diff) | |
| download | shiftos_thereturn-bb768396787bd0ea5e608f007d881edec693f2ed.tar.gz shiftos_thereturn-bb768396787bd0ea5e608f007d881edec693f2ed.tar.bz2 shiftos_thereturn-bb768396787bd0ea5e608f007d881edec693f2ed.zip | |
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS.WinForms/Applications/ShiftSweeper.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/ShiftSweeper.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs index 69db034..b13880f 100644 --- a/ShiftOS.WinForms/Applications/ShiftSweeper.cs +++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs @@ -87,15 +87,14 @@ namespace ShiftOS.WinForms.Applications { } public void OnLoad() { - buttonEasy.Visible = true; - buttonMedium.Visible = ShiftoriumFrontend.UpgradeInstalled("shiftsweeper_medium"); - buttonHard.Visible = ShiftoriumFrontend.UpgradeInstalled("shiftsweeper_hard"); + OnUpgrade(); ticking.Interval = 1000; ticking.Tick += Ticking_Tick; } public void OnSkinLoad() { + } public bool OnUnload() { @@ -103,7 +102,9 @@ namespace ShiftOS.WinForms.Applications { } public void OnUpgrade() { - + buttonEasy.Visible = true; + buttonMedium.Visible = ShiftoriumFrontend.UpgradeInstalled("shiftsweeper_medium"); + buttonHard.Visible = ShiftoriumFrontend.UpgradeInstalled("shiftsweeper_hard"); } public void startGame(int w, int h, int b) { |
