def setup(self): invIcons = loader.loadModel("phase_3.5/models/gui/inventory_icons.bam") self.distShop.addItem(WholeCreamPie, ItemType.GAG, 2, invIcons.find('**/inventory_creampie')) self.distShop.addItem(BirthdayCake, ItemType.GAG, 5, invIcons.find('**/inventory_cake')) self.distShop.addItem(CreamPieSlice, ItemType.GAG, 1, invIcons.find('**/inventory_cream_pie_slice')) self.distShop.addItem(TNT, ItemType.GAG, 20, invIcons.find('**/inventory_tnt')) self.distShop.addItem(SeltzerBottle, ItemType.GAG, 2, invIcons.find('**/inventory_seltzer_bottle')) self.distShop.addItem(WholeFruitPie, ItemType.GAG, 3, invIcons.find('**/inventory_fruitpie')) self.distShop.addItem(WeddingCake, ItemType.GAG, 100, invIcons.find('**/inventory_wedding')) self.distShop.addItem(FruitPieSlice, ItemType.GAG, 1, invIcons.find('**/inventory_fruit_pie_slice')) self.distShop.addItem(GrandPiano, ItemType.GAG, 15, invIcons.find('**/inventory_piano')) self.distShop.addItem(BambooCane, ItemType.GAG, 25, invIcons.find('**/inventory_bamboo_cane')) self.distShop.addItem(JugglingBalls, ItemType.GAG, 45, invIcons.find('**/inventory_juggling_cubes')) self.distShop.addItem(Megaphone, ItemType.GAG, 15, invIcons.find('**/inventory_megaphone')) self.items = self.distShop.getItems() Shop.setup(self) invIcons.removeNode() del invIcons
def setup(self): invIcons = loader.loadModel("phase_3.5/models/gui/inventory_icons.bam") self.distShop.addItem(WholeCreamPie, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WholeCreamPie])) self.distShop.addItem(BirthdayCake, ItemType.GAG, 6, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BirthdayCake])) self.distShop.addItem(CreamPieSlice, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.CreamPieSlice])) self.distShop.addItem(TNT, ItemType.GAG, 12, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.TNT])) self.distShop.addItem(SeltzerBottle, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.SeltzerBottle])) self.distShop.addItem(WholeFruitPie, ItemType.GAG, 4, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WholeFruitPie])) self.distShop.addItem(WeddingCake, ItemType.GAG, 100, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WeddingCake])) self.distShop.addItem(FruitPieSlice, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.FruitPieSlice])) self.distShop.addItem(GrandPiano, ItemType.GAG, 12, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.GrandPiano])) self.distShop.addItem(BambooCane, ItemType.GAG, 12, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BambooCane])) self.distShop.addItem(JugglingBalls, ItemType.GAG, 25, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.JugglingBalls])) self.distShop.addItem(Safe, ItemType.GAG, 15, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Safe])) self.distShop.addItem(Megaphone, ItemType.GAG, 12, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Megaphone])) self.distShop.addItem(Cupcake, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Cupcake])) self.distShop.addItem(TrapDoor, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.TrapDoor])) self.distShop.addItem(Quicksand, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Quicksand])) self.distShop.addItem(Lipstick, ItemType.GAG, 8, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Lipstick])) self.distShop.addItem(Foghorn, ItemType.GAG, 6, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Foghorn])) self.distShop.addItem(Aoogah, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Aoogah])) self.distShop.addItem(ElephantHorn, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.ElephantHorn])) self.distShop.addItem(Opera, ItemType.GAG, 100, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Opera])) self.distShop.addItem(BikeHorn, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BikeHorn])) self.distShop.addItem(Whistle, ItemType.GAG, 2, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Whistle])) self.distShop.addItem(Bugle, ItemType.GAG, 6, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Bugle])) self.distShop.addItem(PixieDust, ItemType.GAG, 18, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.PixieDust])) self.distShop.addItem(Anvil, ItemType.GAG, 2, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Anvil])) self.distShop.addItem(FlowerPot, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.FlowerPot])) self.distShop.addItem(Sandbag, ItemType.GAG, 2, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Sandbag])) self.distShop.addItem(Geyser, ItemType.GAG, 50, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Geyser])) self.distShop.addItem(BigWeight, ItemType.GAG, 8, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BigWeight])) self.distShop.addItem(StormCloud, ItemType.GAG, 6, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.StormCloud])) self.distShop.addItem(WaterGlass, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WaterGlass])) self.distShop.addItem(WaterGun, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WaterGun])) self.distShop.addItem(FireHose, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.FireHose])) self.distShop.addItem(SquirtingFlower, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.SquirtFlower])) self.items = self.distShop.getItems() Shop.setup(self) invIcons.removeNode() del invIcons
def setup(self): invIcons = loader.loadModel('phase_3.5/models/gui/inventory_icons.bam') self.distShop.addItem(WholeCreamPie, ItemType.GAG, 5, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WholeCreamPie])) self.distShop.addItem(BirthdayCake, ItemType.GAG, 10, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BirthdayCake])) self.distShop.addItem(CreamPieSlice, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.CreamPieSlice])) self.distShop.addItem(TNT, ItemType.GAG, 20, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.TNT])) self.distShop.addItem(SeltzerBottle, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.SeltzerBottle])) self.distShop.addItem(WholeFruitPie, ItemType.GAG, 4, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WholeFruitPie])) self.distShop.addItem(WeddingCake, ItemType.GAG, 100, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.WeddingCake])) self.distShop.addItem(FruitPieSlice, ItemType.GAG, 2, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.FruitPieSlice])) self.distShop.addItem(GrandPiano, ItemType.GAG, 25, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.GrandPiano])) self.distShop.addItem(BambooCane, ItemType.GAG, 17, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BambooCane])) self.distShop.addItem(JugglingBalls, ItemType.GAG, 35, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.JugglingBalls])) self.distShop.addItem(Safe, ItemType.GAG, 20, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Safe])) self.distShop.addItem(Megaphone, ItemType.GAG, 15, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Megaphone])) self.distShop.addItem(Cupcake, ItemType.GAG, 1, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Cupcake])) self.distShop.addItem(TrapDoor, ItemType.GAG, 5, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.TrapDoor])) self.distShop.addItem(Quicksand, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Quicksand])) self.distShop.addItem(Lipstick, ItemType.GAG, 12, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Lipstick])) self.distShop.addItem(Foghorn, ItemType.GAG, 8, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Foghorn])) self.distShop.addItem(Aoogah, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Aoogah])) self.distShop.addItem(ElephantHorn, ItemType.GAG, 5, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.ElephantHorn])) self.distShop.addItem(Opera, ItemType.GAG, 200, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Opera])) self.distShop.addItem(BikeHorn, ItemType.GAG, 2, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BikeHorn])) self.distShop.addItem(Whistle, ItemType.GAG, 4, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Whistle])) self.distShop.addItem(Bugle, ItemType.GAG, 8, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Bugle])) self.distShop.addItem(PixieDust, ItemType.GAG, 25, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.PixieDust])) self.distShop.addItem(Anvil, ItemType.GAG, 4, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Anvil])) self.distShop.addItem(FlowerPot, ItemType.GAG, 3, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.FlowerPot])) self.distShop.addItem(Sandbag, ItemType.GAG, 4, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Sandbag])) self.distShop.addItem(Geyser, ItemType.GAG, 75, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.Geyser])) self.distShop.addItem(BigWeight, ItemType.GAG, 14, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.BigWeight])) self.distShop.addItem(StormCloud, ItemType.GAG, 8, invIcons.find(GagGlobals.InventoryIconByName[CIGlobals.StormCloud])) self.items = self.distShop.getItems() Shop.setup(self) invIcons.removeNode() del invIcons