Example #1
0
            public DualPaneSimPickerRowController(TableRow row, TableContainer table, ObjectPicker.RowInfo info)
            {
                this.mIsEnabled = true;
                this.mRow = row;
                this.mTable = table;
                this.mInfo = info;
                List<CellController> cellControllers = this.mRow.CellControllers;
                List<WindowBase> cellWindows = this.mRow.CellWindows;
                TableThumbAndTextController tableThumbAndTextController = new TableThumbAndTextController(cellWindows[0]);
                cellControllers.Add(tableThumbAndTextController);
                tableThumbAndTextController.ImageSize = 40f;

                tableThumbAndTextController.Entry = ((MinorPet)this.mInfo.Item).GetLocalizedName() ;
                tableThumbAndTextController.Thumbnail =  ((MinorPet)this.mInfo.Item).GetThumbnailKey();
            }
Example #2
0
            public DualPaneSimPickerRowController(TableRow row, TableContainer table, ObjectPicker.RowInfo info, float multiplyer)
            {
                this.mIsEnabled = true;
                this.mRow = row;
                this.mTable = table;
                this.mInfo = info;
                List<CellController> cellControllers = this.mRow.CellControllers;
                List<WindowBase> cellWindows = this.mRow.CellWindows;
                TableThumbAndTextController tableThumbAndTextController = new TableThumbAndTextController(cellWindows[0]);
                cellControllers.Add(tableThumbAndTextController);
                tableThumbAndTextController.ImageSize = 40f;

                tableThumbAndTextController.Entry = ((InventoryItem)this.mInfo.Item).Object.GetLocalizedName() + "   " +
                    ShoppingMethods.CalculatePrice(((InventoryItem)this.mInfo.Item).Object.Value, multiplyer) + " §";
                tableThumbAndTextController.Thumbnail = ((InventoryItem)this.mInfo.Item).Object.GetThumbnailKey();
            }
Example #3
0
            public DualPaneSimPickerRowController(TableRow row, TableContainer table, ObjectPicker.RowInfo info)
            {
                this.mIsEnabled = true;
                this.mRow       = row;
                this.mTable     = table;
                this.mInfo      = info;
                List <CellController>       cellControllers             = this.mRow.CellControllers;
                List <WindowBase>           cellWindows                 = this.mRow.CellWindows;
                TableThumbAndTextController tableThumbAndTextController = new TableThumbAndTextController(cellWindows[0]);

                cellControllers.Add(tableThumbAndTextController);
                tableThumbAndTextController.ImageSize = 40f;

                tableThumbAndTextController.Entry     = ((Household)this.mInfo.Item).Name;
                tableThumbAndTextController.Thumbnail = ((Household)this.mInfo.Item).Sims.ToArray()[0].GetThumbnailKey();
            }
Example #4
0
            public DualPaneSimPickerRowController(TableRow row, TableContainer table, ObjectPicker.RowInfo info, float multiplyer)
            {
                this.mIsEnabled = true;
                this.mRow       = row;
                this.mTable     = table;
                this.mInfo      = info;
                List <CellController>       cellControllers             = this.mRow.CellControllers;
                List <WindowBase>           cellWindows                 = this.mRow.CellWindows;
                TableThumbAndTextController tableThumbAndTextController = new TableThumbAndTextController(cellWindows[0]);

                cellControllers.Add(tableThumbAndTextController);
                tableThumbAndTextController.ImageSize = 40f;

                tableThumbAndTextController.Entry     = ((Recipe)this.mInfo.Item).GenericName;
                tableThumbAndTextController.Thumbnail = ((Recipe)this.mInfo.Item).GetThumbnailKey();
            }
Example #5
0
            public DualPaneSimPickerRowController(TableRow row, TableContainer table, ObjectPicker.RowInfo info, float multiplyer)
            {
                this.mIsEnabled = true;
                this.mRow       = row;
                this.mTable     = table;
                this.mInfo      = info;
                List <CellController>       cellControllers             = this.mRow.CellControllers;
                List <WindowBase>           cellWindows                 = this.mRow.CellWindows;
                TableThumbAndTextController tableThumbAndTextController = new TableThumbAndTextController(cellWindows[0]);

                cellControllers.Add(tableThumbAndTextController);
                tableThumbAndTextController.ImageSize = 40f;

                tableThumbAndTextController.Entry = ((InventoryItem)this.mInfo.Item).Object.GetLocalizedName() + "   " +
                                                    ShoppingMethods.CalculatePrice(((InventoryItem)this.mInfo.Item).Object.Value, multiplyer) + " §";
                tableThumbAndTextController.Thumbnail = ((InventoryItem)this.mInfo.Item).Object.GetThumbnailKey();
            }