Skip to content

Commit

Permalink
Updates to match moula q2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazado committed Aug 3, 2022
1 parent 7442d5e commit 20a17a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions Scripts/Python/clftYeeshaPage08.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.")
Expand Down Expand Up @@ -239,3 +234,4 @@ def SetStdGUIVisibility(self, visible):
ptGUIControlButton(mydialog.getControlFromTag(kYeeshaPage08)).show()

GUIDialogObject.value.draw.disable()

4 changes: 2 additions & 2 deletions Scripts/Python/xYeeshaPages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 20a17a7

Please sign in to comment.