Changes

Jump to navigation Jump to search
92 bytes added ,  12:18, 12 June 2020
Line 317: Line 317:  
*string '''Localize(string input, optional string arguments)''' (Localizes a string)
 
*string '''Localize(string input, optional string arguments)''' (Localizes a string)
 
*void '''LaunchLawsuit(string subject, float amount, float difficulty)''' (subject should be an unlocalized string and the mod should include the localization. Difficulty is float between 0 and 1, 1 being very hard to defeat)
 
*void '''LaunchLawsuit(string subject, float amount, float difficulty)''' (subject should be an unlocalized string and the mod should include the localization. Difficulty is float between 0 and 1, 1 being very hard to defeat)
*SDateTime '''CreateDate(int year, int month, int day, int hour, int minute)''' (Create a new date to use where needed, note that "year" is defined as years since 1900)
+
*SDateTime '''CreateDate(int year, int month, int day, int hour, int minute)''' (Create a new date to use where needed or for date arithmetic, e.g. Now + CreateDate(0,1,0,0,0) to add 1 month to the current date. Note that "year" is defined as years since 1900)
 
*void '''AddPopUp(string text, float importance = 0.5, string icon = "Info", NotificationSound sfx = Neutral)''' (Adds a popup message in the top left, input string should be pre-localized, icons include "Exclamation", "Money", "Server", etc. Sfx includes Issue, Warning, Good, Neutral)
 
*void '''AddPopUp(string text, float importance = 0.5, string icon = "Info", NotificationSound sfx = Neutral)''' (Adds a popup message in the top left, input string should be pre-localized, icons include "Exclamation", "Money", "Server", etc. Sfx includes Issue, Warning, Good, Neutral)
  

Navigation menu