Skip to content

Commit

Permalink
Close #19
Browse files Browse the repository at this point in the history
-The selected mod can now be pushed directly to the top/bottom of the list in the mod order window by using pageUP/pageDOWN (#19)
  • Loading branch information
Premo36 committed Mar 13, 2022
1 parent 25b5378 commit 78d1f6e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
9 changes: 5 additions & 4 deletions DoomModLoader2C/Doom Mod Loader v2.0.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<ProductName>Doom Mod Loader 2.X</ProductName>
<PublisherName>P36 Software</PublisherName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>2.5.4.0</ApplicationVersion>
<ApplicationVersion>2.5.5.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>false</BootstrapperEnabled>
Expand Down Expand Up @@ -62,13 +62,14 @@
<ApplicationIcon>DML2.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System" />
Expand Down
26 changes: 15 additions & 11 deletions DoomModLoader2C/Forms/FormMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void cmdDown_Click(object sender, EventArgs e)
while (!MoveModDown()) ;
}
else
{
{
if (MoveModDown())
SystemSounds.Beep.Play();
}
Expand All @@ -141,7 +141,7 @@ private void cmdPlay_Click(object sender, EventArgs e)
}

files = parameters + " " + files;

Process pro = new Process();
pro.EnableRaisingEvents = true;
pro.Exited += (sender2, e2) => OnSourceportClosed(sourcePort.path);
Expand Down Expand Up @@ -217,11 +217,23 @@ private void lstPwad_KeyDown(object sender, KeyEventArgs e)
}
else
{
if(MoveModDown())
if (MoveModDown())
SystemSounds.Beep.Play();
}
}

if (e.KeyCode == Keys.PageDown)
{

while (!MoveModDown()) ;

}

if (e.KeyCode == Keys.PageUp)
{
while (!MoveModUp()) ;
}

if (e.KeyCode == Keys.Delete)
{

Expand Down Expand Up @@ -320,14 +332,6 @@ private void OnSourceportClosed(string sppath)
File.Move(quicksave, Path.Combine(savepath, quicksaveName));
}
}

}







}
}
4 changes: 2 additions & 2 deletions DoomModLoader2C/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.5.4.0")]
[assembly: AssemblyFileVersion("2.5.4.0")]
[assembly: AssemblyVersion("2.5.5.0")]
[assembly: AssemblyFileVersion("2.5.5.0")]
2 changes: 1 addition & 1 deletion DoomModLoader2C/SharedVar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace DoomModLoader2
/// </summary>
public static class SharedVar
{
public static string LOCAL_VERSION { get; } = "2.5 [Beta #4]";
public static string LOCAL_VERSION { get; } = "2.5 [Beta #5]";
public static string CONFIG_VERSION { get; set; }
public static bool CHECK_FOR_UPDATE { get; set; }
public static string UrlVersion { get; } = @"https://p36software.net/downloads/download_page.php?id=DML2&toJSON";
Expand Down

0 comments on commit 78d1f6e

Please sign in to comment.