def __init__(self, coord, title): Window.__init__(self, coord, title) self.add(Label("Bodies selected: "), Coord(15, 15)) self.lbl_bodies = Label("0") self.add(self.lbl_bodies, Coord(120,15)) self.add(Label("Hide piles selected: "), Coord(15, 30)) self.lbl_hidepiles = Label("0") self.add(self.lbl_hidepiles, Coord(120,30)) self.add(Label("Trash piles selected: "), Coord(15, 45)) self.lbl_trashpiles = Label("0") self.add(self.lbl_trashpiles, Coord(120,45)) self.add(Label("Cupboards selected: "), Coord(15, 60)) self.lbl_cupboards = Label("0") self.add(self.lbl_cupboards, Coord(120,60)) self.add(Label("Bone piles selected: "), Coord(15, 75)) self.lbl_bonepiles = Label("0") self.add(self.lbl_bonepiles, Coord(120,75)) butchertbtn = StartButton(70, "Butcher!") self.add(butchertbtn, Coord(65, 140)) clearbtn = ClearButton(70, "Clear") self.add(clearbtn, Coord(140, 140))
def __init__(self, coord, title): Window.__init__(self, coord, title) self.add(Label("Seedbarrels selected: "), Coord(15, 15)) self.lbl_seedbarrels = Label("0") self.add(self.lbl_seedbarrels, Coord(170, 15)) startbtn = StartButton(70, "Farm!") self.add(startbtn, Coord(65, 140)) clearbtn = ClearButton(70, "Clear") self.add(clearbtn, Coord(140, 140))
def __init__(self, coord, title): Window.__init__(self, coord, title) self.add(Label("Catchers selected: "), Coord(15, 15)) self.lbl_catchers = Label("0") self.add(self.lbl_catchers, Coord(120,15)) self.add(Label("Chests selected: "), Coord(15, 30)) self.lbl_chests = Label("0") self.add(self.lbl_chests, Coord(120,30)) dreamharvesterbtn = DreamHarvesterButton(70, "Harvest!") self.add(dreamharvesterbtn, Coord(65, 140)) clearbtn = ClearButton(70, "Clear") self.add(clearbtn, Coord(140, 140))
def __init__(self, coord, title): Window.__init__(self, coord, title) self.add(Label("Crucibels selected: "), Coord(15, 15)) self.lbl_crucibels = Label("0") self.add(self.lbl_crucibels, Coord(120, 15)) self.add(Label("Branchpiles selected: "), Coord(15, 30)) self.lbl_branchpiles = Label("0") self.add(self.lbl_branchpiles, Coord(120, 30)) self.add(Label("Coalpiles selected: "), Coord(15, 45)) self.lbl_coalpiles = Label("0") self.add(self.lbl_coalpiles, Coord(120, 45)) self.add(Label("Wblockpiles selected: "), Coord(15, 60)) self.lbl_wblockpiles = Label("0") self.add(self.lbl_wblockpiles, Coord(120, 60)) startbtn = StartButton(70, "Refuel!") self.add(startbtn, Coord(65, 140)) clearbtn = ClearButton(70, "Clear") self.add(clearbtn, Coord(140, 140))
def type(self, key, ev): if (key == 27): if (self.cbtn.visible): self.die() return True return Window.type(self, key, ev)
def wdgmsg(self, sender, msg, *args): if sender == self.cbtn: self.die() else: Window.wdgmsg(self, sender, msg, args)