Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Adding new hotkey in game.py



Hello guys, I have small problem with adding new hotkey button. When I edit already working button.

For example, Ill edit hotkey "O" with my special window its working good.

But when I want to add another one (I tried F6, 5 and "K" button)

<type 'exceptions.IndentationError'>:unexpected indent (game.py, line 385)

My code:

        onPressKeyDict[app.DIK_K]			= lambda : self.interface.ToggleSpecialStorageWindow()

Thank you.

Link to post

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.