Esempio n. 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;
 }
Esempio n. 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);
        }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }