Advertisement
Koridev

Untitled

Jan 26th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.01 KB | Gaming | 0 0
  1. def __MakeKeyPage(self):
  2.         page = self.pageWindow["KEYS"]
  3.         self.showlooting.Hide()
  4.  
  5.         try:
  6.  
  7.             keys = [
  8.                 "base_pattern",
  9.                 "list_window_masking",
  10.                 "list_window",
  11.                 "scroll_bar",
  12.                 "base_action",
  13.                 "up1_img",
  14.                 "down1_img",
  15.                 "left1_img",
  16.                 "right1_img",
  17.                 "up2_img",
  18.                 "down2_img",
  19.                 "left2_img",
  20.                 "right2_img",
  21.                 "screenshot_img",
  22.                 "autorun_img",
  23.                 "attack_img",
  24.                 "next_target_img",
  25.                 "root1_img",
  26.                 "root2_img",
  27.                 "ride_bye_img",
  28.                 "ride_peed_img",
  29.                 "status_window_img",
  30.                 "skill_window_img",
  31.                 "quest_window_img",
  32.                 "inventory_window_img",
  33.                 "dds_window_img",
  34.                 "minimap_window_img",
  35.                 "chat_window_img",
  36.                 "guild_window_img",
  37.                 "messenger_window_img",
  38.                 "help_window_img",
  39.                 "action_window_img",
  40.                 "minimap_plus_img",
  41.                 "minimap_miner_img",
  42.                 "use_prism_img",
  43.                 "pet_window_img",
  44.                 "auto_window_img",
  45.                 "monster_card_window_img",
  46.                 "party_match_window_img",
  47.                 "system_img",
  48.                 "cam_right1_img",
  49.                 "cam_left1_img",
  50.                 "cam_zoom_in1_img",
  51.                 "cam_zoom_out1_img",
  52.                 "cam_down1_img",
  53.                 "cam_up1_img",
  54.                 "cam_right2_img",
  55.                 "cam_left2_img",
  56.                 "cam_zoom_in2_img",
  57.                 "cam_zoom_out2_img",
  58.                 "cam_down2_img",
  59.                 "cam_up2_img",
  60.                 "slot1_img",
  61.                 "slot2_img",
  62.                 "slot3_img",
  63.                 "slot4_img",
  64.                 "slot5_img",
  65.                 "slot6_img",
  66.                 "slot7_img",
  67.                 "slot8_img",
  68.                 "quickslot1_img",
  69.                 "quickslot2_img",
  70.                 "quickslot3_img",
  71.                 "quickslot4_img",
  72.                 "emotion1_img",
  73.                 "emotion2_img",
  74.                 "emotion3_img",
  75.                 "emotion4_img",
  76.                 "emotion5_img",
  77.                 "emotion6_img",
  78.                 "emotion7_img",
  79.                 "emotion8_img",
  80.                 "emotion9_img",
  81.                 "dss1_img",
  82.                 "dss2_img",
  83.                 "passive_attr1_img",
  84.                 "passive_attr2_img"
  85.             ]
  86.             for key in keys:
  87.                 try:
  88.                     child = page.GetChild(key)
  89.                     setattr(self, key, child)  # Speichere als Attribut
  90.                     self.children[key] = child  # Speichere im Dictionary
  91.                 except:
  92.                     import exception
  93.                     exception.Abort("OptionDialog.__MakeKeyPage | Failed to bind child")
  94.             try:
  95.                 if "list_window" in self.children and "list_window_masking" in self.children:
  96.                     self.children["list_window"].SetParent(page)
  97.                     self.children["list_window_masking"].SetParent(self.children["base_pattern"])
  98.                     self.children["list_window"].SetClippingMaskWindow(self.children["list_window_masking"])
  99.  
  100.                 if "scroll_bar" in self.children:
  101.                     self.children["scroll_bar"].SetScrollEvent(ui.__mem_func__(self.__ScrollKeyPage))
  102.                     self.children["scroll_bar"].SetScrollStep(0.066)
  103.  
  104.                 # Übergabe an KeyChangeWindow
  105.                 self.keychange.SetAllKeys(self.children)
  106.  
  107.             except:
  108.                 import exception
  109.                 exception.Abort("OptionDialog.__MakeKeyPage")
  110.         except:
  111.             import exception
  112.             exception.Abort("OptionDialog.__MakeKeyPage")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement