Skip to content

Commit

Permalink
Code update to bring to Moula Q2 and suggested fixes
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
Hazado and Hoikas committed Jul 27, 2023
1 parent b9e1b3a commit b714cad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Scripts/Python/xYeeshaPages.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def OnGUINotify(self,id,control,event):
if event == kExitMode:
PtHideDialog(DialogName)
return

btnID = 0
if isinstance(control,ptGUIControlButton):
btnID = control.getTagID()
Expand All @@ -127,13 +127,13 @@ def OnGUINotify(self,id,control,event):
PtDebugPrint("xYeeshaPages.OnGUINotify():\tPicked up page number: ", PageNumber.value)
# PtUnloadDialog(DialogName)
PtHideDialog(DialogName)

vault = ptVault()

psnlSDL = vault.getPsnlAgeSDL()
if psnlSDL:
YeeshaPageVar = psnlSDL.findVar("YeeshaPage" + str(PageNumber.value))

PtDebugPrint ("xYeeshaPages.py: The previous value of the SDL variable %s is %s" % ("YeeshaPage" + str(PageNumber.value), YeeshaPageVar.getInt()))

if StartInCleft():
Expand All @@ -144,10 +144,10 @@ def OnGUINotify(self,id,control,event):
if YeeshaPageVar.getInt() != 0:
PtDebugPrint ("xYeeshaPages.py: You've already found Yeesha Page #%s. Move along. Move along." % (PageNumber.value))
return

else:
PtDebugPrint ("xYeeshaPages.py: Yeesha Page #%s is new to you." % (PageNumber.value))

PtDebugPrint ("xYeeshaPages.py: Trying to update the value of the SDL variable %s to 1" % ("YeeshaPage" + str(PageNumber.value)))
YeeshaPageVar.setInt(4)
vault.updatePsnlAgeSDL(psnlSDL)
Expand Down

0 comments on commit b714cad

Please sign in to comment.