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 Dec 14, 2022
1 parent c10d44d commit 081d6bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions Scripts/Python/clftYeeshaPage08.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,4 @@ def SetStdGUIVisibility(self, visible):
ptGUIControlButton(mydialog.getControlFromTag(kYeeshaPage08)).show()

GUIDialogObject.value.draw.disable()

4 changes: 2 additions & 2 deletions Scripts/Python/psnlYeeshaPageChanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ def EnableDisable(self, val):

respAudioStop.run(self.key,avatar=None,fastforward=0)
respDisable.run(self.key,avatar=None,fastforward=1)
if len(bushDistrib.value) > 0:
if bushDistrib.value:
for x in bushDistrib.value:
x.setVisible(0)
x.setVisible(False)


def TimeToGrow(self):
Expand Down
12 changes: 6 additions & 6 deletions Scripts/Python/xYeeshaPages.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def OnGUINotify(self,id,control,event):
if event == kExitMode:
PtHideDialog(DialogName)
return

btnID = 0
if isinstance(control,ptGUIControlButton):
btnID = control.getTagID()
Expand All @@ -162,13 +162,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 @@ -179,10 +179,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 081d6bb

Please sign in to comment.