Changes

Jump to navigation Jump to search
115 bytes added ,  12:03, 12 June 2020
Line 316: Line 316:  
*MarketSimulation '''MarketSimulation'''
 
*MarketSimulation '''MarketSimulation'''
 
*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)
+
*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)
+
*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)
 
*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