def __init__(self, quest):
     self.loadGui()
     questScroll = self.topGui.find('**/main_gui_quest_scroll')
     data = (UberDogGlobals.InventoryCategory.QUESTS, quest.getDoId())
     self.quest = quest
     InventoryItemGui.__init__(self, data, image = questScroll, image_color = (0.69999999999999996, 0.69999999999999996, 0.69999999999999996, 1))
     self.initialiseoptions(QuestItemGui)
     self.accept(self.quest.getChangeEvent(), self._handleQuestChange)
Ejemplo n.º 2
0
 def __init__(self, quest):
     self.loadGui()
     questScroll = self.topGui.find('**/main_gui_quest_scroll')
     data = (UberDogGlobals.InventoryCategory.QUESTS, quest.getDoId())
     self.quest = quest
     InventoryItemGui.__init__(self,
                               data,
                               image=questScroll,
                               image_color=(0.7, 0.7, 0.7, 1))
     self.initialiseoptions(QuestItemGui)
     self.accept(self.quest.getChangeEvent(), self._handleQuestChange)
Ejemplo n.º 3
0
 def makeButton(self, parent, pos, cellSizeX, cellSizeZ):
     if InventoryId.isStackable(self.uid):
         data = [
          self.uid, 1]
     else:
         data = [
          InventoryId.getCategory(self.uid), self.uid]
     simpleItemGui = SimpleItemGUI([self.uid, 1], parent=parent, pos=pos)
     self.itemName = simpleItemGui.nameTag['text']
     self.shortDesc = self.itemName
     self.longDesc = self.itemName
     simpleItemGui.destroy()
     geomParams = InventoryItemGui.getGeomParams(self.uid)
     button = DirectButton(parent=parent, relief=None, rolloverSound=None, text='', text_scale=0.05, textMayChange=1, geom=geomParams['geom'], geom_pos=(0,
                                                                                                                                                         0,
                                                                                                                                                         0), geom_scale=geomParams['geom_scale'], pos=pos, extraArgs=[self])
     return button
Ejemplo n.º 4
0
 def makeButton(self, parent, pos, cellSizeX, cellSizeZ):
     if InventoryId.isStackable(self.uid):
         data = [
             self.uid,
             1]
     else:
         data = [
             InventoryId.getCategory(self.uid),
             self.uid]
     simpleItemGui = SimpleItemGUI([
         self.uid,
         1], parent = parent, pos = pos)
     self.itemName = simpleItemGui.nameTag['text']
     self.shortDesc = self.itemName
     self.longDesc = self.itemName
     simpleItemGui.destroy()
     geomParams = InventoryItemGui.getGeomParams(self.uid)
     button = DirectButton(parent = parent, relief = None, rolloverSound = None, text = '', text_scale = 0.050000000000000003, textMayChange = 1, geom = geomParams['geom'], geom_pos = (0, 0, 0), geom_scale = geomParams['geom_scale'], pos = pos, extraArgs = [
         self])
     return button