diff --git a/3DRadSpace/.vs/3DRadSpace/v16/.suo b/3DRadSpace/.vs/3DRadSpace/v16/.suo
index 7abf9698..17e9db41 100644
Binary files a/3DRadSpace/.vs/3DRadSpace/v16/.suo and b/3DRadSpace/.vs/3DRadSpace/v16/.suo differ
diff --git a/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/.mgstats b/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/.mgstats
index 562622f7..8f29a8ff 100644
--- a/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/.mgstats
+++ b/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/.mgstats
@@ -7,6 +7,6 @@ Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Siz
"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Font.spritefont","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Font.xnb","FontDescriptionProcessor","SpriteFontContent",2068,21524,0.1389985
"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Shaders/RedVertexSh.fx","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Shaders/RedVertexSh.xnb","EffectProcessor","CompiledEffectContent",948,1809,3.044576
"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Shaders/SH_Skybox.fx","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Shaders/SH_Skybox.xnb","EffectProcessor","CompiledEffectContent",2325,2188,3.903923
-"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Skinmeshes/terrain0100.dds","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Skinmeshes/terrain0100.xnb","TextureProcessor","Texture2DContent",2796344,2796345,1.474005
-"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Skinmeshes/terrain0100.x","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Skinmeshes/terrain0100.xnb","ModelProcessor","ModelContent",594945,439265,3.263107
+"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Skinmeshes/terrain0100.dds","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Skinmeshes/terrain0100.xnb","TextureProcessor","Texture2DContent",2796344,2796345,0.4109988
+"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Skinmeshes/terrain0100.x","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Skinmeshes/terrain0100.xnb","ModelProcessor","ModelContent",594945,439265,1.353998
"C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Sounds/sound.ogg","C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Sounds/sound.xnb","SoundEffectProcessor","SoundEffectContent",6625,36201,0.6680005
diff --git a/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/Skinmeshes/terrain0100.mgcontent b/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/Skinmeshes/terrain0100.mgcontent
index ee1c7100..263251c1 100644
--- a/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/Skinmeshes/terrain0100.mgcontent
+++ b/3DRadSpace/3DRadSpace/Content/obj/Windows/Content/Skinmeshes/terrain0100.mgcontent
@@ -3,7 +3,7 @@
C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/Skinmeshes/terrain0100.x
2011-09-09T11:04:28+03:00
C:/Users/Athanatos/Documents/GitHub/3D_Rad_Space/3DRadSpace/3DRadSpace/Content/bin/Windows/Content/Skinmeshes/terrain0100.xnb
- 2020-07-20T19:38:45.2133693+03:00
+ 2020-07-22T23:32:25.4400665+03:00
XImporter
2020-02-26T07:46:56+02:00
ModelProcessor
diff --git a/3DRadSpace/3DRadSpace/EventOnKeyW.cs b/3DRadSpace/3DRadSpace/EventOnKeyW.cs
index 6d965909..8824b449 100644
--- a/3DRadSpace/3DRadSpace/EventOnKeyW.cs
+++ b/3DRadSpace/3DRadSpace/EventOnKeyW.cs
@@ -35,6 +35,7 @@ public EventOnKeyW(EventOnKey eok)
}
}
DetermineInputType(eok.Key.State);
+ Debug.Print("loading ->" + eok.Key.State);
textBox2.Text = "" + eok.HoldingTime;
_eok = eok;
opcodes = eok.Behiavours;
@@ -46,17 +47,20 @@ public EventOnKeyW(EventOnKey eok)
private void button1_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
- EventOnKey k = new EventOnKey(
- Editor.ValidateTextInput(textBox1.Text),
- checkBox1.Checked,
- new KeyInput(
- GetKeyFromListBox(listBox1.Items[listBox1.SelectedIndex]+""),
- GetInputType()
- ),
- Convert.ToUInt32(Editor.ValidateNumberTextInput(textBox2.Text))
- );
+ EventOnKey k = new EventOnKey() {
+ Name =Editor.ValidateTextInput(textBox1.Text),
+ Enabled = checkBox1.Checked,
+ Key = new KeyInput()
+ {
+ Key = GetKeyFromListBox(listBox1.Items[listBox1.SelectedIndex] + ""),
+ State = GetInputType()
+ },
+ HoldingTime = Convert.ToUInt32(Editor.ValidateNumberTextInput(textBox2.Text))
+ };
k.Behiavours = opcodes;
+ Debug.Print("saving -> "+k.Key.State + " " + GetInputType());
+ k.Key.State = GetInputType();
Result = k;
Close();
}
@@ -182,6 +186,7 @@ private void button2_Click(object sender, EventArgs e)
}
bool DetermineInputType(KeyInputType t)
{
+ Debug.Print(t + " " + radioButton1.Checked + " " + radioButton2.Checked + " " + radioButton3.Checked);
if (t == KeyInputType.Released) return radioButton1.Checked = true;
if (t == KeyInputType.Pressed) return radioButton2.Checked = true;
if (t == KeyInputType.Holding) return radioButton3.Checked = true;
@@ -189,6 +194,7 @@ bool DetermineInputType(KeyInputType t)
}
KeyInputType GetInputType()
{
+ Debug.Print( radioButton1.Checked + " " + radioButton2.Checked + " " + radioButton3.Checked);
if (radioButton1.Checked == true) return KeyInputType.Released;
if (radioButton2.Checked == true) return KeyInputType.Pressed;
if (radioButton3.Checked == true) return KeyInputType.Holding;
diff --git a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.exe b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.exe
index e7d33516..636196b4 100644
Binary files a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.exe and b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.exe differ
diff --git a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.pdb b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.pdb
index 11e903e7..dcd943cf 100644
Binary files a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.pdb and b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpace.pdb differ
diff --git a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.dll b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.dll
index dfbab17e..ebf10435 100644
Binary files a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.dll and b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.dll differ
diff --git a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.pdb b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.pdb
index 8c6938cc..0ec13084 100644
Binary files a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.pdb and b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.pdb differ
diff --git a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.xml b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.xml
index e748342a..cebdce0d 100644
--- a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.xml
+++ b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/3DRadSpaceDll.xml
@@ -323,6 +323,12 @@
The key state.
+
+
+
+
+
+
Triggers when the key is up/down/ hold for enough time.
diff --git a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/Projects/EOK Bug test.3drsp b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/Projects/EOK Bug test.3drsp
index 2661d621..72ccd4f6 100644
--- a/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/Projects/EOK Bug test.3drsp
+++ b/3DRadSpace/3DRadSpace/bin/Windows/x86/Debug/Projects/EOK Bug test.3drsp
@@ -1,2 +1,2 @@
3DRSP_text
-eok EventOnKey True 38 1 0
+eok EventOnKey True 38 0 0
diff --git a/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.csprojAssemblyReference.cache b/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.csprojAssemblyReference.cache
index a5f8ac8f..6c9970c6 100644
Binary files a/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.csprojAssemblyReference.cache and b/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.csprojAssemblyReference.cache differ
diff --git a/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.exe b/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.exe
index e7d33516..636196b4 100644
Binary files a/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.exe and b/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.exe differ
diff --git a/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.pdb b/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.pdb
index 11e903e7..dcd943cf 100644
Binary files a/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.pdb and b/3DRadSpace/3DRadSpace/obj/x86/Debug/3DRadSpace.pdb differ
diff --git a/3DRadSpace/3DRadSpaceDll/EventOnKey.cs b/3DRadSpace/3DRadSpaceDll/EventOnKey.cs
index 3fab3652..e9e92e68 100644
--- a/3DRadSpace/3DRadSpaceDll/EventOnKey.cs
+++ b/3DRadSpace/3DRadSpaceDll/EventOnKey.cs
@@ -6,6 +6,7 @@
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using _3DRadSpaceDll.OpcodeEvent;
+using System.Diagnostics;
namespace _3DRadSpaceDll
{
@@ -50,7 +51,15 @@ public KeyInput(Keys key = Keys.None, KeyInputType state = KeyInputType.Released
/// The key state.
///
public KeyInputType State;
- }
+ ///
+ ///
+ ///
+ ///
+ public override string ToString()
+ {
+ return "{" + Key + " " + State + "}";
+ }
+ }
///
/// Triggers when the key is up/down/ hold for enough time.
///
diff --git a/3DRadSpace/3DRadSpaceDll/Project.cs b/3DRadSpace/3DRadSpaceDll/Project.cs
index d06f101b..693e91d4 100644
--- a/3DRadSpace/3DRadSpaceDll/Project.cs
+++ b/3DRadSpace/3DRadSpaceDll/Project.cs
@@ -241,7 +241,7 @@ public static List Open(string filename)
}
case "eok":
{
- a = new EventOnKey()
+ EventOnKey eok = new EventOnKey()
{
Name = Obj[1],
Enabled = Convert.ToBoolean(Obj[2], Main.CultureInfo),
@@ -250,6 +250,8 @@ public static List Open(string filename)
HoldingTime = Convert.ToUInt32(Obj[5], Main.CultureInfo),
Behiavours = OpcodeEvent.OpCodeCall.CreateFromString(6, Obj, Obj.Length)
};
+ eok.Key.State = (KeyInputType)Convert.ToInt32(Obj[4], Main.CultureInfo);
+ a = eok;
break;
}
case "gamesettings":
diff --git a/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.dll b/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.dll
index dfbab17e..ebf10435 100644
Binary files a/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.dll and b/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.dll differ
diff --git a/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.pdb b/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.pdb
index 8c6938cc..0ec13084 100644
Binary files a/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.pdb and b/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.pdb differ
diff --git a/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.xml b/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.xml
index e748342a..cebdce0d 100644
--- a/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.xml
+++ b/3DRadSpace/3DRadSpaceDll/bin/Debug/3DRadSpaceDll.xml
@@ -323,6 +323,12 @@
The key state.
+
+
+
+
+
+
Triggers when the key is up/down/ hold for enough time.
diff --git a/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.csprojAssemblyReference.cache b/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.csprojAssemblyReference.cache
index dc62f249..ead250ad 100644
Binary files a/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.csprojAssemblyReference.cache and b/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.csprojAssemblyReference.cache differ
diff --git a/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.dll b/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.dll
index dfbab17e..ebf10435 100644
Binary files a/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.dll and b/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.dll differ
diff --git a/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.pdb b/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.pdb
index 8c6938cc..0ec13084 100644
Binary files a/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.pdb and b/3DRadSpace/3DRadSpaceDll/obj/Debug/3DRadSpaceDll.pdb differ
diff --git a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.dll b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.dll
index 04660776..ebf10435 100644
Binary files a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.dll and b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.dll differ
diff --git a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.pdb b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.pdb
index d356881d..0ec13084 100644
Binary files a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.pdb and b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.pdb differ
diff --git a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.xml b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.xml
index e748342a..cebdce0d 100644
--- a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.xml
+++ b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpaceDll.xml
@@ -323,6 +323,12 @@
The key state.
+
+
+
+
+
+
Triggers when the key is up/down/ hold for enough time.
diff --git a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.exe b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.exe
index b9259d02..e7523a15 100644
Binary files a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.exe and b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.exe differ
diff --git a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.pdb b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.pdb
index 6fa00860..db121bab 100644
Binary files a/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.pdb and b/3DRadSpace/3DRadSpace_Player/bin/Windows/x86/Debug/3DRadSpace_Player.pdb differ
diff --git a/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.csprojAssemblyReference.cache b/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.csprojAssemblyReference.cache
index f1f30432..4d000aea 100644
Binary files a/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.csprojAssemblyReference.cache and b/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.csprojAssemblyReference.cache differ
diff --git a/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.exe b/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.exe
index b9259d02..e7523a15 100644
Binary files a/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.exe and b/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.exe differ
diff --git a/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.pdb b/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.pdb
index 6fa00860..db121bab 100644
Binary files a/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.pdb and b/3DRadSpace/3DRadSpace_Player/obj/x86/Debug/3DRadSpace_Player.pdb differ