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(); }
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(); }
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(); }
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(); }
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(); }