Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Event
- def OnKeyDown(self, key):
- if 1 == key:
- self.ExitSelect()
- if 2 == key:
- self.SelectSlot(0)
- if 3 == key:
- self.SelectSlot(1)
- if 4 == key:
- self.SelectSlot(2)
- if 28 == key:
- id = net.GetAccountCharacterSlotDataInteger(self.slot, net.ACCOUNT_CHARACTER_SLOT_ID)
- if 0 == id:
- self.CreateCharacter()
- else:
- self.StartGame()
- if 203 == key:
- self.slot = (self.GetSlotIndex() - 1 + self.SLOT_COUNT) % self.SLOT_COUNT
- self.SelectSlot(self.slot)
- if 205 == key:
- self.slot = (self.GetSlotIndex() + 1) % self.SLOT_COUNT
- self.SelectSlot(self.slot)
- return TRUE
Advertisement
Add Comment
Please, Sign In to add comment