juncanalex

FIX

Mar 11th, 2021 (edited)
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.66 KB | None | 0 0
  1. ////////IN FISIERUL////////
  2. ## @ interfacemodule.py @ ##
  3.  
  4.  
  5. # CAUTA:
  6. def Close(self):
  7.  
  8. # SI IN FUNCTIA AIA CAUTA
  9.  
  10. if self.wndChat:
  11.             self.wndChat.Destroy()
  12.  
  13. # MODIFICA ASA :
  14.  
  15.         if self.wndCharacter:
  16.             self.wndCharacter.Close()
  17.         else:
  18.             if self.wndCharacter:
  19.                 self.wndCharacter.Hide()
  20.  
  21.  
  22. # CAUTA:
  23.  
  24. def HideAllWindows(self):
  25.  
  26. # IN FUNCTIA ASTA CAUTA :
  27.  
  28.         if self.wndCharacter:
  29.                 self.wndCharacter.Close()
  30.  
  31. # MODIFICA ASA :
  32.  
  33.         if self.wndCharacter:
  34.                 self.wndCharacter.Close()
  35.         else:
  36.             if self.wndCharacter:
  37.                 self.wndCharacter.Hide()
  38.  
  39.  
  40. # CAUTA :
  41.  
  42. def ToggleCharacterWindow(self, state
  43.  
  44. # INLOCUIESTE CU :
  45.  
  46.     def ToggleCharacterWindow(self, state):
  47.         if FALSE == player.IsObserverMode():
  48.             if FALSE == self.wndCharacter.IsShow():
  49.                 self.OpenCharacterWindowWithState(state)
  50.             else:
  51.                 if state == self.wndCharacter.GetState():
  52.                     self.wndCharacter.OverOutItem()
  53.                     self.wndCharacter.Close()           #CRYPTEX
  54.                 else:
  55.                     self.wndCharacter.SetState(state)
  56.  
  57. /////IN FISIERUL///////
  58. ## @ uicharacter.py @##
  59.  
  60. # CAUTA :
  61.  
  62.         for titleBarValue in self.titleBarDict.itervalues():
  63.             titleBarValue.SetCloseEvent(ui.__mem_func__(self.Close))
  64.  
  65. # SAU :
  66.  
  67.         for titleBarValue in self.titleBarDict.itervalues():
  68.             titleBarValue.SetCloseEvent(ui.__mem_func__(self.Hide))
  69.  
  70. # INLOCUIESTE CU :
  71.  
  72.         for titleBarValue in self.titleBarDict.itervalues():
  73.             titleBarValue.SetCloseEvent(ui.__mem_func__(self.Close))
  74.             titleBarValue.SetCloseEvent(ui.__mem_func__(self.Hide))
  75.  
  76. # CAUTA :
  77.  
  78.         if self.chDetailsWnd and self.chDetailsWnd.IsShow():
  79.             self.chDetailsWnd.Hide()
  80.  
  81. # FERIFICA SA IL AI PE      .Hide()
  82.  
  83.         self.chDetailsWnd.Hide()
  84.  
Add Comment
Please, Sign In to add comment