diff options
| author | RogueAI42 <[email protected]> | 2017-06-17 19:16:50 +1000 |
|---|---|---|
| committer | RogueAI42 <[email protected]> | 2017-06-17 19:16:50 +1000 |
| commit | dbf794c9849c0046cf2e93a878c6d8d9101d2fc8 (patch) | |
| tree | d5ff20daf283fff179f0ddb79b07edafd59c613a /ShiftOS.WinForms/ShiftnetSites/MindBlow.cs | |
| parent | 77cb4a9a14de07023e86a9a5cda7171fcb4ec8ec (diff) | |
| download | shiftos_thereturn-dbf794c9849c0046cf2e93a878c6d8d9101d2fc8.tar.gz shiftos_thereturn-dbf794c9849c0046cf2e93a878c6d8d9101d2fc8.tar.bz2 shiftos_thereturn-dbf794c9849c0046cf2e93a878c6d8d9101d2fc8.zip | |
MindBlow: Brainfuck IDE for ShiftOS
For 50,000 Codepoints you can write and run Brainfuck programs in
a dedicated IDE. Check out the site on "shiftnet/mindblow".
The IDE seems to be working perfectly. The site has some theming
issues.
Diffstat (limited to 'ShiftOS.WinForms/ShiftnetSites/MindBlow.cs')
| -rw-r--r-- | ShiftOS.WinForms/ShiftnetSites/MindBlow.cs | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/ShiftnetSites/MindBlow.cs b/ShiftOS.WinForms/ShiftnetSites/MindBlow.cs new file mode 100644 index 0000000..e5d035d --- /dev/null +++ b/ShiftOS.WinForms/ShiftnetSites/MindBlow.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; + +namespace ShiftOS.WinForms.ShiftnetSites +{ + [ShiftnetSite("shiftnet/mindblow", "MindBlow", "World's First IDE for ShiftOS")] + public partial class MindBlow : UserControl, IShiftnetSite + { + public MindBlow() + { + InitializeComponent(); + } + + public event Action<string> GoToUrl; + public event Action GoBack; + + private void DoLayout() + { + aboutpnl.Left = tutorialpnl.Left = nav.Width; + aboutpnl.Width = tutorialpnl.Width = Width - nav.Width; + tutorialpnl.Height = Height; + } + + private void aboutbtn_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + aboutpnl.BringToFront(); + } + + private void tutorialbtn_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + tutorialpnl.BringToFront(); + } + + private void MindBlow_Resize(object sender, EventArgs e) + { + DoLayout(); + } + + private void buybtn_Click(object sender, EventArgs e) + { + if (Shiftorium.UpgradeInstalled("mindblow")) + Infobox.Show("Already Purchased", "You have already bought MindBlow."); + else if (SaveSystem.CurrentSave.Codepoints < 50000) + Infobox.Show("Not Enough Codepoints", "You do not have enough Codepoints to buy MindBlow."); + else + { + Shiftorium.Buy("mindblow", 50000); + Infobox.Show("Installation Complete", "MindBlow has been successfully installed."); + } + } + + public void Setup() + { + DoLayout(); + aboutpnl.BringToFront(); + } + + public void OnSkinLoad() + { + } + + public void OnUpgrade() + { + } + } +} |
