Пример #1
0
 /// <summary>
 /// Creates a popup on the cell of all buildings where a tool is applied.
 /// </summary>
 /// <param name="enable">true if the "enable" tool was used, false for "disable".</param>
 /// <param name="enabled">The enable tool.</param>
 /// <param name="disabled">The disable tool.</param>
 /// <param name="cell">The cell where the change occurred.</param>
 private static void ShowPopup(bool enable, BulkToolMode enabled, BulkToolMode disabled,
                               int cell)
 {
     PUtil.CreatePopup(enable ? PopFXManager.Instance.sprite_Plus : PopFXManager.
                       Instance.sprite_Negative, enable ? enabled.PopupText : disabled.PopupText,
                       cell);
 }