parameters: (self)
docstring: showOpen = 0
          #If this is a normal pedestal book, the panel is defined in the Max GUI. If this is the personal Age Bookshelf, the panel is passed in a note from psnlBookshelf. Determine the source here.
          if len(actBookshelf.value) == 0:
              agePanel = TargetAge.value
              showOpen = 1  # start pedestal books open
          else:
              agePanel = stringAgeRequested
              showOpen = 0    # start bookself books closed
          # did we find an agePanel to link with?
          if agePanel:
              try:
                  params = xLinkingBookDefs.xAgeLinkingBooks[agePanel]
                  if len(params) == 6:
                      sharable,width,height,stampdef,bookdef,gui = params
                  elif len(params) == 5:
                      sharable,width,height,stampdef,bookdef = params
                      gui = "BkBook"
                  else:
                      return
                  if not IsDRCStamped.value:
                      stampdef = xLinkingBookDefs.NoDRCStamp
                  if sharable:
                          PtDebugPrint("ahnyLinkBookGUIPopup: %s's book definition can't be shared" % (agePanel),level=kErrorLevel)
                  else:
                      bookdef = bookdef % ('', stampdef)
                  SpawnPointName_Dict[0] = "LinkInPointDefault"
                  SpawnPointTitle_Dict[0] = agePanel
                  PtSendKIMessage(kDisableKIandBB,0)
                  gLinkingBook = ptBook(bookdef,self.key)
                  gLinkingBook.setSize( width, height )
                  # make sure there is a cover to show
                  if not showOpen:
                      if not self.IsThereACover(bookdef):
                          showOpen = 1
                  gLinkingBook.setGUI(gui)
                  gLinkingBook.show(showOpen)
              except LookupError:
                  PtDebugPrint("ahnyLinkBookGUIPopup: could not find age %s's linking panel" % (agePanel),level=kErrorLevel)
          else:
              PtDebugPrint("ahnyLinkBookGUIPopup: no age link panel" % (agePanel),level=kErrorLevel)
docstring_summary: showOpen = 0
          #If this is a normal pedestal book, the panel is defined in the Max GUI. If this is the personal Age Bookshelf, the panel is passed in a note from psnlBookshelf. Determine the source here.
          if len(actBookshelf.value) == 0:
              agePanel = TargetAge.value
              showOpen = 1  # start pedestal books open
          else:
              agePanel = stringAgeRequested
              showOpen = 0    # start bookself books closed
          # did we find an agePanel to link with?
          if agePanel:
              try:
                  params = xLinkingBookDefs.xAgeLinkingBooks[agePanel]
                  if len(params) == 6:
                      sharable,width,height,stampdef,bookdef,gui = params
                  elif len(params) == 5:
                      sharable,width,height,stampdef,bookdef = params
                      gui = "BkBook"
                  else:
                      return
                  if not IsDRCStamped.value:
                      stampdef = xLinkingBookDefs.NoDRCStamp
                  if sharable:
                          PtDebugPrint("ahnyLinkBookGUIPopup: %s's book definition can't be shared" % (agePanel),level=kErrorLevel)
                  else:
                      bookdef = bookdef % ('', stampdef)
                  SpawnPointName_Dict[0] = "LinkInPointDefault"
                  SpawnPointTitle_Dict[0] = agePanel
                  PtSendKIMessage(kDisableKIandBB,0)
                  gLinkingBook = ptBook(bookdef,self.key)
                  gLinkingBook.setSize( width, height )
                  # make sure there is a cover to show
                  if not showOpen:
                      if not self.IsThereACover(bookdef):
                          showOpen = 1
                  gLinkingBook.setGUI(gui)
                  gLinkingBook.show(showOpen)
              except LookupError:
                  PtDebugPrint("ahnyLinkBookGUIPopup: could not find age %s's linking panel" % (agePanel),level=kErrorLevel)
          else:
              PtDebugPrint("ahnyLinkBookGUIPopup: no age link panel" % (agePanel),level=kErrorLevel)
docstring_tokens: showOpen = 0 #If this is a normal pedestal book the panel is defined in the Max GUI . If this is the personal Age Bookshelf the panel is passed in a note from psnlBookshelf . Determine the source here . if len ( actBookshelf . value ) == 0 : agePanel = TargetAge . value showOpen = 1 # start pedestal books open else : agePanel = stringAgeRequested showOpen = 0 # start bookself books closed # did we find an agePanel to link with? if agePanel : try : params = xLinkingBookDefs . xAgeLinkingBooks [ agePanel ] if len ( params ) == 6 : sharable width height stampdef bookdef gui = params elif len ( params ) == 5 : sharable width height stampdef bookdef = params gui = BkBook else : return if not IsDRCStamped . value : stampdef = xLinkingBookDefs . NoDRCStamp if sharable : PtDebugPrint ( ahnyLinkBookGUIPopup : %s s book definition can t be shared % ( agePanel ) level = kErrorLevel ) else : bookdef = bookdef % ( stampdef ) SpawnPointName_Dict [ 0 ] = LinkInPointDefault SpawnPointTitle_Dict [ 0 ] = agePanel PtSendKIMessage ( kDisableKIandBB 0 ) gLinkingBook = ptBook ( bookdef self . key ) gLinkingBook . setSize ( width height ) # make sure there is a cover to show if not showOpen : if not self . IsThereACover ( bookdef ) : showOpen = 1 gLinkingBook . setGUI ( gui ) gLinkingBook . show ( showOpen ) except LookupError : PtDebugPrint ( ahnyLinkBookGUIPopup : could not find age %s s linking panel % ( agePanel ) level = kErrorLevel ) else : PtDebugPrint ( ahnyLinkBookGUIPopup : no age link panel % ( agePanel ) level = kErrorLevel )
function: def IShowBookNoTreasure(self):
          global gLinkingBook
          global SpawnPointName_Dict
          global SpawnPointTitle_Dict
          global kGrsnTeamBook
          
          try:
              params = xLinkingBookDefs.xAgeLinkingBooks["Ahnonay"]
  
              if len(params) == 6:
                  sharable,width,height,stampdef,bookdef,gui = params
              elif len(params) == 5:
                  sharable,width,height,stampdef,bookdef = params
                  gui = "BkBook"
              else:
                  return
  
              PtDebugPrint(bookdef)
              PtSendKIMessage(kDisableKIandBB,0)
              gLinkingBook = ptBook(bookdef,self.key)
              gLinkingBook.setSize( width, height )
              gLinkingBook.setGUI(gui)
              gLinkingBook.show(1)
  
          except LookupError:
              PtDebugPrint("ahnyLinkBookGUIPopup: could not find age Ahnonay's linking panel")
  
          '''
          showOpen = 0
          #If this is a normal pedestal book, the panel is defined in the Max GUI. If this is the personal Age Bookshelf, the panel is passed in a note from psnlBookshelf. Determine the source here.
          if len(actBookshelf.value) == 0:
              agePanel = TargetAge.value
              showOpen = 1  # start pedestal books open
          else:
              agePanel = stringAgeRequested
              showOpen = 0    # start bookself books closed
          # did we find an agePanel to link with?
          if agePanel:
              try:
                  params = xLinkingBookDefs.xAgeLinkingBooks[agePanel]
                  if len(params) == 6:
                      sharable,width,height,stampdef,bookdef,gui = params
                  elif len(params) == 5:
                      sharable,width,height,stampdef,bookdef = params
                      gui = "BkBook"
                  else:
                      return
                  if not IsDRCStamped.value:
                      stampdef = xLinkingBookDefs.NoDRCStamp
                  if sharable:
                          PtDebugPrint("ahnyLinkBookGUIPopup: %s's book definition can't be shared" % (agePanel),level=kErrorLevel)
                  else:
                      bookdef = bookdef % ('', stampdef)
                  SpawnPointName_Dict[0] = "LinkInPointDefault"
                  SpawnPointTitle_Dict[0] = agePanel
                  PtSendKIMessage(kDisableKIandBB,0)
                  gLinkingBook = ptBook(bookdef,self.key)
                  gLinkingBook.setSize( width, height )
                  # make sure there is a cover to show
                  if not showOpen:
                      if not self.IsThereACover(bookdef):
                          showOpen = 1
                  gLinkingBook.setGUI(gui)
                  gLinkingBook.show(showOpen)
              except LookupError:
                  PtDebugPrint("ahnyLinkBookGUIPopup: could not find age %s's linking panel" % (agePanel),level=kErrorLevel)
          else:
              PtDebugPrint("ahnyLinkBookGUIPopup: no age link panel" % (agePanel),level=kErrorLevel)
          '''
function_tokens: def IShowBookNoTreasure ( self ) : global gLinkingBook global SpawnPointName_Dict global SpawnPointTitle_Dict global kGrsnTeamBook try : params = xLinkingBookDefs . xAgeLinkingBooks [ "Ahnonay" ] if len ( params ) == 6 : sharable , width , height , stampdef , bookdef , gui = params elif len ( params ) == 5 : sharable , width , height , stampdef , bookdef = params gui = "BkBook" else : return PtDebugPrint ( bookdef ) PtSendKIMessage ( kDisableKIandBB , 0 ) gLinkingBook = ptBook ( bookdef , self . key ) gLinkingBook . setSize ( width , height ) gLinkingBook . setGUI ( gui ) gLinkingBook . show ( 1 ) except LookupError : PtDebugPrint ( "ahnyLinkBookGUIPopup: could not find age Ahnonay's linking panel" )