aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Apps/Terminal.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-07-19 21:53:26 -0400
committerMichaelTheShifter <[email protected]>2016-07-19 21:53:26 -0400
commit6b804f03ebcdd1c5aa145f29ae71b62bd61f8cb9 (patch)
treed7bc4b46c45a552add946666151d44490f3b3caf /source/WindowsFormsApplication1/Apps/Terminal.cs
parent9322701aa1eae9596a8586ef19a0fe1d1b3ab66b (diff)
downloadshiftos-c--6b804f03ebcdd1c5aa145f29ae71b62bd61f8cb9.tar.gz
shiftos-c--6b804f03ebcdd1c5aa145f29ae71b62bd61f8cb9.tar.bz2
shiftos-c--6b804f03ebcdd1c5aa145f29ae71b62bd61f8cb9.zip
Full ShiftUI conversion
The only bugs are that windows don't show in the center of the screen, and Gecko webbrowsers are not serializing properly to be converted to ShiftUI widgets (you can use the ToWidget() extension method to convert a WinForms control to a ShiftUI widget) Also multiple desktop panels are removed due to some odd bug I can't diagnose. Will add them back in the future. Promise. I loved creating GNOME2 skins.
Diffstat (limited to 'source/WindowsFormsApplication1/Apps/Terminal.cs')
-rw-r--r--source/WindowsFormsApplication1/Apps/Terminal.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Terminal.cs b/source/WindowsFormsApplication1/Apps/Terminal.cs
index 944b333..f95025d 100644
--- a/source/WindowsFormsApplication1/Apps/Terminal.cs
+++ b/source/WindowsFormsApplication1/Apps/Terminal.cs
@@ -13,7 +13,7 @@ using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
-using System.Windows.Forms;
+using ShiftUI;
namespace ShiftOS
{
@@ -37,7 +37,7 @@ namespace ShiftOS
public void StartOtherPlayerStory()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
t.Tick += (object s, EventArgs a) =>
@@ -160,7 +160,7 @@ namespace ShiftOS
{
if(ModLogger == true)
{
- var tmrlog = new System.Windows.Forms.Timer();
+ var tmrlog = new ShiftUI.Timer();
tmrlog.Interval = 500;
tmrlog.Tick += (object s, EventArgs a) =>
{
@@ -242,16 +242,16 @@ namespace ShiftOS
}
// ERROR: Handles clauses are not supported in C#
- private void txtterm_KeyPress(object sender, System.Windows.Forms.KeyEventArgs e)
+ private void txtterm_KeyPress(object sender, ShiftUI.KeyEventArgs e)
{
- if(e.Control) {
+ if(e.Widget) {
if(API.Upgrades["zoomableterminal"] == true)
{
Zooming = true;
}
}
- if (e.KeyCode == Keys.T && e.Control && blockctrlt == false)
+ if (e.KeyCode == Keys.T && e.Widget && blockctrlt == false)
{
this.Close();
e.SuppressKeyPress = true;
@@ -590,7 +590,7 @@ Password: z7fjsd3");
internal void StartBridgeToMidGame()
{
- var t2 = new System.Windows.Forms.Timer();
+ var t2 = new ShiftUI.Timer();
t2.Interval = 4000;
int i2 = 0;
t2.Tick += (object s, EventArgs e) =>
@@ -657,7 +657,7 @@ Password: z7fjsd3");
i2 += 1;
};
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
@@ -815,7 +815,7 @@ Password: z7fjsd3");
internal void StartAidenNirhStory()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
t.Tick += (object s, EventArgs a) =>
@@ -853,7 +853,7 @@ Password: z7fjsd3");
internal void StartHacker101Story()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
@@ -943,7 +943,7 @@ Password: z7fjsd3");
internal void StartOtherPlayerSysFix()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
t.Tick += (object s, EventArgs a) =>
@@ -1051,7 +1051,7 @@ Password: z7fjsd3");
internal void StartHackerBattleIntro()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
t.Tick += (object s, EventArgs a) =>
@@ -1142,7 +1142,7 @@ Password: z7fjsd3");
internal void StartDevXFuriousStory()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 4000;
int i = 0;
t.Tick += (object s, EventArgs a) =>
@@ -1235,7 +1235,7 @@ Password: z7fjsd3");
/// </summary>
public void StartShiftnetStory()
{
- System.Windows.Forms.Timer tmrstory = new System.Windows.Forms.Timer();
+ ShiftUI.Timer tmrstory = new ShiftUI.Timer();
tmrstory.Interval = 10000;
WriteLine("IP <hidden@shiftnet> connecting as 'Maureen Fenn'...");
API.PlaySound(Properties.Resources.dial_up_modem_02);
@@ -2273,7 +2273,7 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o
private void StartChoice1EndStory()
{
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
int i = 0;
t.Interval = 4000;
t.Tick += (object s, EventArgs a) =>
@@ -2379,7 +2379,7 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o
WriteLine(Environment.NewLine);
WriteLine("PANIC_ID: 750_15_4W3S0M3");
WriteLine("PANIC_DESC: System became too unstable to function properly. In 5 seconds, your session will be resumed.");
- var t = new System.Windows.Forms.Timer();
+ var t = new ShiftUI.Timer();
t.Interval = 1000;
int p = 0;
t.Tick += (object s, EventArgs a) =>
@@ -2401,7 +2401,7 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o
bool Hacking = false;
- private Control objToWriteTo = null;
+ private Widget objToWriteTo = null;
private string UpgradeToHack = null;
public void StartHackingSession(string id)