Skip to content

+EA 23.76 Nightly - Plugin.BaseCore

January 14, 2025

3 files modified.

Important Changes

Possible breaking changes. Click the filename to view the chunk.

Lang (2)

cs
public static string _currency(int a, string IDCurrency) 
public static string _currency(object a, string IDCurrency) 
cs
public static string _currency(int a, bool showUnit = false, int unitSize = 14) 
public static string _currency(object a, bool showUnit = false, int unitSize = 14) 

IO

@@ -338,6 +338,7 @@ public static void CreateDirectory(string path)

cs

	public static void DeleteDirectory(string path)
	{
		path = path.Replace("\\\\?\\", ""); 
		if (Directory.Exists(path))
		{
			DirectoryInfo directoryInfo = new DirectoryInfo(path);

Lang

@@ -159,14 +159,14 @@ public static string _Number(int a)

cs
		return $"{a:#,0}";
	}

	public static string _currency(int a, string IDCurrency) 
	public static string _currency(object a, string IDCurrency) 
	{
		return ("u_currency_" + IDCurrency).lang($"{a:#,0}");
	}

	public static string _currency(int a, bool showUnit = false, int unitSize = 14) 
	public static string _currency(object a, bool showUnit = false, int unitSize = 14) 
	{
		return $"{a:#,0}" + ((!showUnit) ? "" : ((unitSize == 0) ? "u_money".lang(a.ToString() ?? "") : ("<size=" + unitSize + "> " + "u_money".lang(a.ToString() ?? "") + "</size>"))); 
		return $"{a:#,0}" + ((!showUnit) ? "" : ((unitSize == 0) ? "u_money".lang(a?.ToString() ?? "") : ("<size=" + unitSize + "> " + "u_money".lang(a?.ToString() ?? "") + "</size>"))); 
	}

	public static string _weight(int a, int b, bool showUnit = true, int unitSize = 0)

Version

@@ -15,7 +15,7 @@ public struct Version

cs

	public string GetText()
	{
		return ((minor >= 23) ? "EA" : "Beta") + " " + minor + "." + batch + ((fix == 0) ? "" : (" fix " + fix)) + (demo ? "demo".lang() : ""); 
		return ((minor >= 23) ? "EA" : "Beta") + " " + minor + "." + batch + ((fix == 0) ? "" : (" Patch " + fix)) + (demo ? "demo".lang() : ""); 
	}

	public int GetInt()