diff --git a/Scripts/Python/clftYeeshaPage08.py b/Scripts/Python/clftYeeshaPage08.py index 81480c252c..77b898ddae 100644 --- a/Scripts/Python/clftYeeshaPage08.py +++ b/Scripts/Python/clftYeeshaPage08.py @@ -62,6 +62,7 @@ RespOpen = ptAttribResponder(3, "Open Responder") RespLoop = ptAttribResponder(4, "Loop Responder") RespClose = ptAttribResponder(5, "Close Responder") +RespGlow = ptAttribResponder(6, "Glow Responder",['GlowSound','PageTurn']) #Linking Books GUI tags DialogName="YeeshaPageGUI" @@ -148,20 +149,14 @@ def OnGUINotify(self,id,control,event): if isinstance(control,ptGUIControlButton): btnID = control.getTagID() - if event == kShowHide: - if control.isEnabled(): - #control.show() - if self.GotPage(): - mydialog = PtGetDialogFromString(DialogName) - ptGUIControlButton(mydialog.getControlFromTag(kYeeshaPage08)).disable() - - elif event == kAction and btnID == kYeeshaPage08: + if event == kAction and btnID == kYeeshaPage08: PtDebugPrint("DEBUG: clftYeeshaPage08.OnGUINotify():\tPicked up page") RespClose.run(self.key) isOpen = 0 PtHideDialog(DialogName) self.SetStdGUIVisibility(1) + RespGlow.run(self.key, state='GlowSound') if self.GotPage(): PtDebugPrint ("DEBUG: clftYeeshaPage08.py: You've already found Yeesha Page #8. Move along. Move along.") @@ -239,3 +234,4 @@ def SetStdGUIVisibility(self, visible): ptGUIControlButton(mydialog.getControlFromTag(kYeeshaPage08)).show() GUIDialogObject.value.draw.disable() + diff --git a/Scripts/Python/xYeeshaPages.py b/Scripts/Python/xYeeshaPages.py index af1e0b0f04..ca248c7ffc 100644 --- a/Scripts/Python/xYeeshaPages.py +++ b/Scripts/Python/xYeeshaPages.py @@ -152,7 +152,7 @@ def OnGUINotify(self,id,control,event): if event == kExitMode: PtHideDialog(DialogName) return - + btnID = 0 if isinstance(control,ptGUIControlButton): btnID = control.getTagID() @@ -161,7 +161,7 @@ def OnGUINotify(self,id,control,event): PtDebugPrint("xYeeshaPages.OnGUINotify():\tPicked up page number: ", PageNumber.value) # PtUnloadDialog(DialogName) PtHideDialog(DialogName) - + vault = ptVault() psnlSDL = vault.getPsnlAgeSDL()