public Dialog_ModSettings() { closeOnEscapeKey = true; doCloseButton = false; doCloseX = true; forcePause = true; absorbInputAroundWindow = true; resizeable = false; defaultHandleDrawer = DrawHandleInputText; // these pairs specify which type of input field will be drawn for handles of this type. defaults to the string input handleDrawers = new Dictionary <Type, SettingsHandleDrawer> { { typeof(int), DrawHandleInputSpinner }, { typeof(bool), DrawHandleInputCheckbox }, { typeof(Enum), DrawHandleInputEnum } }; }
public Dialog_ModSettings() { closeOnCancel = true; closeOnAccept = false; doCloseButton = false; doCloseX = true; forcePause = true; absorbInputAroundWindow = true; resizeable = false; expandableToggleButtonWidth = Mathf.Max(labelExpandModEntry.Size.x, labelCollapseModEntry.Size.x) + ModEntryExpandButtonPadding; defaultHandleDrawer = DrawHandleInputText; // these pairs specify which type of input field will be drawn for handles of this type. defaults to the string input handleDrawers = new Dictionary <Type, SettingsHandleDrawer> { { typeof(int), DrawHandleInputSpinner }, { typeof(bool), DrawHandleInputCheckbox }, { typeof(Enum), DrawHandleInputEnum } }; }