Alternative to :EnableKeyboard() #4


  • Enhancment
  • Replied
Open
Assigned to yssaril
  • egingell created this issue Jan 28, 2011

    When you use :EnableKeyboard(), you kill my key bindings. I like to press "B" to open my bags while the quest completed dialog is open.

    I have hacked out an alternative.

    Proposed change attached.

  • egingell added the tags New Enhancment Jan 28, 2011
  • egingell added an attachment Jan 28, 2011
    Attachment was deleted Nov 8, 2016
  • egingell added an attachment Core.lua Jan 28, 2011

    Core.lua

  • egingell added an attachment Jan 28, 2011
    Attachment was deleted Nov 8, 2016
  • egingell added an attachment Core.lua Jan 28, 2011

    Core.lua

    <p>uses MODIFIER_STATE_CHANGED</p>

  • yssaril posted a comment Jan 28, 2011

    hmm will look into it (patch looks sound though i do want to try to avoid OnUpdate) will have a look at it tonight

  • yssaril removed a tag New Jan 28, 2011
  • yssaril added a tag Accepted Jan 28, 2011
  • yssaril posted a comment Jan 28, 2011

    can you try the new Core.lua file i attached? (cant test from work) is uses the MODIFIER_STATE_CHANGED event to track state changes hopefully)


    Edited Jan 28, 2011
  • egingell posted a comment Jan 29, 2011

    MODIFIER_STATE_CHANGE is superior than trapping key strokes and, possibly, better than OnUpdate. Will try later.

  • yssaril posted a comment Jan 29, 2011

    check out the alpha version btw (it fixes some drycoding errors in the core lua attached here)

  • yssaril removed a tag Accepted Jan 29, 2011
  • yssaril added a tag Waiting Jan 29, 2011
  • egingell posted a comment Jan 30, 2011

    No errors, but I haven't had a quest where multiple items were obtainable and equipable.

  • egingell removed a tag Waiting Jan 30, 2011
  • egingell added a tag Replied Jan 30, 2011
  • egingell posted a comment Jan 30, 2011

    Pressing any modifier changes the text to "Complete Quest & Equip Item" regardless of whether one is chosen or not and stays like that unless I cancel and talk to the NPC again.

    No Lua error.

    It's the same quest as I mentioned in ticket #5.

    Edit: And when I click one of the rewards, the text goes back to "Complete & Get Highest Value".


    Edited Jan 30, 2011

To post a comment, please login or register a new account.