Пример #1
0
 public static List<ObjectPicker.RowInfo> Show(string title, int funds, List<ObjectPicker.TabInfo> listObjs, List<ObjectPicker.HeaderInfo> headers, bool viewTypeToggle, Vector2 position, string okayCaption)
 {
     List<ObjectPicker.RowInfo> result;
     using (SimpleListDialog simplePurchaseDialog = new SimpleListDialog(title, funds, listObjs, headers, viewTypeToggle, position))
     {
         if (okayCaption != string.Empty)
         {
             simplePurchaseDialog.mOkayButton.Caption = okayCaption;
         }
         simplePurchaseDialog.StartModal();
         if (simplePurchaseDialog.Result == null || simplePurchaseDialog.Result.Count == 0)
         {
             result = null;
         }
         else
         {
             List<ObjectPicker.RowInfo> result2 = simplePurchaseDialog.Result;
             result = result2;
         }
     }
     return result;
 }
Пример #2
0
        public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers, bool viewTypeToggle, Vector2 position, string okayCaption)
        {
            List <ObjectPicker.RowInfo> result;

            using (SimpleListDialog simplePurchaseDialog = new SimpleListDialog(title, funds, listObjs, headers, viewTypeToggle, position))
            {
                if (okayCaption != string.Empty)
                {
                    simplePurchaseDialog.mOkayButton.Caption = okayCaption;
                }
                simplePurchaseDialog.StartModal();
                if (simplePurchaseDialog.Result == null || simplePurchaseDialog.Result.Count == 0)
                {
                    result = null;
                }
                else
                {
                    List <ObjectPicker.RowInfo> result2 = simplePurchaseDialog.Result;
                    result = result2;
                }
            }
            return(result);
        }
Пример #3
0
 public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers, bool viewTypeToggle, Vector2 position)
 {
     return(SimpleListDialog.Show(title, funds, listObjs, headers, viewTypeToggle, position, string.Empty));
 }
Пример #4
0
 public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers, bool viewTypeToggle, string okayCaption)
 {
     return(SimpleListDialog.Show(title, funds, listObjs, headers, viewTypeToggle, new Vector2(-1f, -1f), okayCaption));
 }
Пример #5
0
 public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers)
 {
     return(SimpleListDialog.Show(title, funds, listObjs, headers, false));
 }