Guest User

Untitled

a guest
Oct 8th, 2016
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class DescriptionBox(ui.Window):
  2. def __init__(self):
  3. ui.Window.__init__(self)
  4. self.descIndex = 0
  5. def __del__(self):
  6. ui.Window.__del__(self)
  7. def SetIndex(self, index):
  8. self.descIndex = index
  9. def OnRender(self):
  10. event.RenderEventSet(self.descIndex)
  11.  
  12.  
  13. self.curNameAlpha = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
  14. self.destNameAlpha = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
  15. self.curGauge = [0.0, 0.0, 0.0, 0.0]
  16. self.destGauge = [0.0, 0.0, 0.0, 0.0]
  17.  
  18. self.descriptionBox = self.DescriptionBox()
  19. self.descriptionBox.Show()
  20.  
  21. self.toolTip = uiToolTip.ToolTip()
  22. self.toolTip.ClearToolTip()
  23.  
  24.  
  25.  
  26. def PrevDescriptionPage(self):
  27. if event.IsWait(self.descIndex) == TRUE:
  28. if event.GetVisibleStartLine(self.descIndex)-14 >= 0:
  29. event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex)-14)
  30. event.Skip(self.descIndex)
  31. else:
  32. event.Skip(self.descIndex)
  33.  
  34. def NextDescriptionPage(self):
  35. if TRUE == event.IsWait(self.descIndex):
  36. event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex)+14)
  37. event.Skip(self.descIndex)
  38. else:
  39. event.Skip(self.descIndex)
  40.  
  41.  
  42. def OnUpdate(self):
  43. chr.Update()
  44. (xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition()
  45. event.UpdateEventSet(self.descIndex, xposEventSet+7, -(yposEventSet+7))
  46. self.descriptionBox.SetIndex(self.descIndex)
RAW Paste Data