1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Dialog Button Press; Detect Right-Click

Discussion in 'StarCraft II Modding' started by BlueBerryWizard, Mar 26, 2012.

  1. BlueBerryWizard

    BlueBerryWizard

    Joined:
    Aug 13, 2007
    Messages:
    309
    Resources:
    1
    Spells:
    1
    Resources:
    1
    How do I detect if a dialog button has been right-clicked? I want to make it so that if you left-click an item in my inventory, you use/equip it, and if you right-click it then it is dropped at your feet. Note that my inventory is not like the one provided by Blizzard, it just uses dialog buttons.
     
  2. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,996
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Not sure if it is possible. A hacky approach could be done using points on the real map that get converted into UI points and then resolved as buttons.
     
  3. BlueBerryWizard

    BlueBerryWizard

    Joined:
    Aug 13, 2007
    Messages:
    309
    Resources:
    1
    Spells:
    1
    Resources:
    1
    For now I use a toggle to change the left-click behaviour.

    e.g. hit W and it toggles on equip/use behaviour, hit W again to go back to drop behaviour.