Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __MakeKeyPage(self):
- page = self.pageWindow["KEYS"]
- self.showlooting.Hide()
- try:
- keys = [
- "base_pattern",
- "list_window_masking",
- "list_window",
- "scroll_bar",
- "base_action",
- "up1_img",
- "down1_img",
- "left1_img",
- "right1_img",
- "up2_img",
- "down2_img",
- "left2_img",
- "right2_img",
- "screenshot_img",
- "autorun_img",
- "attack_img",
- "next_target_img",
- "root1_img",
- "root2_img",
- "ride_bye_img",
- "ride_peed_img",
- "status_window_img",
- "skill_window_img",
- "quest_window_img",
- "inventory_window_img",
- "dds_window_img",
- "minimap_window_img",
- "chat_window_img",
- "guild_window_img",
- "messenger_window_img",
- "help_window_img",
- "action_window_img",
- "minimap_plus_img",
- "minimap_miner_img",
- "use_prism_img",
- "pet_window_img",
- "auto_window_img",
- "monster_card_window_img",
- "party_match_window_img",
- "system_img",
- "cam_right1_img",
- "cam_left1_img",
- "cam_zoom_in1_img",
- "cam_zoom_out1_img",
- "cam_down1_img",
- "cam_up1_img",
- "cam_right2_img",
- "cam_left2_img",
- "cam_zoom_in2_img",
- "cam_zoom_out2_img",
- "cam_down2_img",
- "cam_up2_img",
- "slot1_img",
- "slot2_img",
- "slot3_img",
- "slot4_img",
- "slot5_img",
- "slot6_img",
- "slot7_img",
- "slot8_img",
- "quickslot1_img",
- "quickslot2_img",
- "quickslot3_img",
- "quickslot4_img",
- "emotion1_img",
- "emotion2_img",
- "emotion3_img",
- "emotion4_img",
- "emotion5_img",
- "emotion6_img",
- "emotion7_img",
- "emotion8_img",
- "emotion9_img",
- "dss1_img",
- "dss2_img",
- "passive_attr1_img",
- "passive_attr2_img"
- ]
- for key in keys:
- try:
- child = page.GetChild(key)
- setattr(self, key, child) # Speichere als Attribut
- self.children[key] = child # Speichere im Dictionary
- except:
- import exception
- exception.Abort("OptionDialog.__MakeKeyPage | Failed to bind child")
- try:
- if "list_window" in self.children and "list_window_masking" in self.children:
- self.children["list_window"].SetParent(page)
- self.children["list_window_masking"].SetParent(self.children["base_pattern"])
- self.children["list_window"].SetClippingMaskWindow(self.children["list_window_masking"])
- if "scroll_bar" in self.children:
- self.children["scroll_bar"].SetScrollEvent(ui.__mem_func__(self.__ScrollKeyPage))
- self.children["scroll_bar"].SetScrollStep(0.066)
- # Übergabe an KeyChangeWindow
- self.keychange.SetAllKeys(self.children)
- except:
- import exception
- exception.Abort("OptionDialog.__MakeKeyPage")
- except:
- import exception
- exception.Abort("OptionDialog.__MakeKeyPage")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement