Rimworld-Together
Rimworld-Together copied to clipboard
Dialog fixes
Round 5234. -Dialog Manager no longer needs a reference to every dialog type. -Dialog Manager now keeps track of all dialog output values regardless of the type and amount. i.e. storing the username and password string when you use the login dialog -Dialog manager now uses an internal stack to keep track of Dialogs showing up on the screen, This keeps RWT dialogs seperate from the game dialogs. -The mod no longer pushes the previous Dialog When returning to a previous window; It now will pop the current one. This means any dialog could be the previous window and it will always work. -Dialog Manager now has a ClearStack() function to reset the current stack of dialogs -PopDialog(Window window) now comes with an overloaded method called PopDialog() that can pop the current Dialog without knowing what type it is. -Censorship character (otherwise known as a text mask or password mask) can now be any character instead of a a solid block; This PR sets it as an astrisk "*" -Dialog Windows now include an interface called RT_Window that includes a function to set and retrieve the current values of a dialog. -Dialog classes are cleaned up and filled with comment documentation -The mod now includes a local logging class to give us better control over how the mod logs information