Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
igorseabra4 committed May 14, 2020
1 parent c92b4c3 commit 273731d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ public AssetID TargetDYNATeleportID

private void ValidateMRKR()
{
foreach (ArchiveEditor ae in Program.MainForm.archiveEditors)
if (ae.archive.ContainsAsset(MRKR_ID) && ae.archive.GetFromAssetID(MRKR_ID) is AssetMRKR MRKR)
{
this.MRKR = MRKR;
this.MRKR.isInvisible = true;
return;
}
if (Program.MainForm != null)
foreach (ArchiveEditor ae in Program.MainForm.archiveEditors)
if (ae.archive.ContainsAsset(MRKR_ID) && ae.archive.GetFromAssetID(MRKR_ID) is AssetMRKR MRKR)
{
this.MRKR = MRKR;
this.MRKR.isInvisible = true;
return;
}
MRKR = null;
}

Expand Down
15 changes: 1 addition & 14 deletions IndustrialPark/MainForm/AboutBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public AboutBox()
this.labelCompanyName.Text = AssemblyCompany;
ComponentResourceManager resources = new ComponentResourceManager(typeof(AboutBox));
this.textBoxDescription.Text = resources.GetString("textBoxDescription.Text");
this.labelVersion.Text = AssemblyVersion;
this.labelVersion.Text = new IPversion().version;
TopMost = true;
}

Expand Down Expand Up @@ -68,19 +68,6 @@ public string AssemblyCompany
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}
}

public static string AssemblyVersion
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyVersionAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyVersionAttribute)attributes[0]).Version;
}
}
#endregion

private void button1_Click(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion IndustrialPark/Other/IPversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class IPversion
{
public string version = "0.1.4.0";
public string version = "0.1.4.1";
public string versionName;
}
}
2 changes: 1 addition & 1 deletion IndustrialPark/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// É possível especificar todos os valores ou usar como padrão os Números de Build e da Revisão
// utilizando o "*" como mostrado abaixo:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.4.0")]
[assembly: AssemblyVersion("0.1.4.1")]
4 changes: 2 additions & 2 deletions IndustrialPark/Resources/ip_version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.1.4.0",
"versionName": "* Adds asset editors: DUPC, LOBM, SPLN, TPIK, TRCK (TRCK is just a copy of SIMP until we figure out more about it)\n* Enables previewing WIRE assets while selecting them.\n* Adds Incredibles and Rise of the Underminer DYNA types.\n* Adds DYNA type editors: effect_Rumble, effect_RumbleSphericalEmitter, effect:smoke_emitter, effect:spotlight, game_object:flame_emitter, game_object:IN_Pickup, game_object:RaceTimer, interaction:Launch, logic:reference, Incredibles:Icon\n* Adds Generic DYNA editor for types not supported yet.\n* Enables previewing Incredibles pickup DYNAs from the TPIK asset.\n* Improved rendering models with PIPT settings (now with per-mesh settings! no more transparent Duplotrons).\n* Slightly improved renderer.\n* Updates model importing with material settings importing.\n* Fixes loading of several Incredibles HOPs.\n* Fixes glitch on Import HIP (also Randomizer).\n* Fixes glitch on Material Effects Editor that could corrupt models.\n* Fixes glitch on Auto Updater.\n* Fixes location of Ledge Grab collision flag.\n* Adds DYNA Search Tool, under Research/Advanced."
"version": "0.1.4.1",
"versionName": "* Hotfix: fixes Randomizer crashing in some cases\n\n* Adds asset editors: DUPC, LOBM, SPLN, TPIK, TRCK (TRCK is just a copy of SIMP until we figure out more about it)\n* Enables previewing WIRE assets while selecting them.\n* Adds Incredibles and Rise of the Underminer DYNA types.\n* Adds DYNA type editors: effect_Rumble, effect_RumbleSphericalEmitter, effect:smoke_emitter, effect:spotlight, game_object:flame_emitter, game_object:IN_Pickup, game_object:RaceTimer, interaction:Launch, logic:reference, Incredibles:Icon\n* Adds Generic DYNA editor for types not supported yet.\n* Enables previewing Incredibles pickup DYNAs from the TPIK asset.\n* Improved rendering models with PIPT settings (now with per-mesh settings! no more transparent Duplotrons).\n* Slightly improved renderer.\n* Updates model importing with material settings importing.\n* Fixes loading of several Incredibles HOPs.\n* Fixes glitch on Import HIP (also Randomizer).\n* Fixes glitch on Material Effects Editor that could corrupt models.\n* Fixes glitch on Auto Updater.\n* Fixes location of Ledge Grab collision flag.\n* Adds DYNA Search Tool, under Research/Advanced."
}

0 comments on commit 273731d

Please sign in to comment.