Thread: Custom Draginfo

  1. #1

    Custom Draginfo

    I have implemented onDragStart to update the draginfo with a custom type.

    How/where do I add code to accept that custom type into the shortcuts bar? I can't seem to find it anywhere.

    I have tried to register "onHotKeyDrop":

    Code:
    function onInit()
      Interface.onHotkeyDrop = onHotkeyDrop;
    end
    
    function onHotkeyDrop(draginfo)
      Debug.console("onHotkeyDrop", draginfo);
    end
    But I never see anything.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    23,342
    Have a look in the PS Skill roll hotkey extension available here: https://www.fantasygrounds.com/forum...Roll-Extension

    At the bottom of ps\scripts\ps_roll_skill.lua is some code that sets up the type etc. in onDragStart


    FG Product Development status: Pathfinder Playtest Ruleset and add-ons: In development. Pathfinder Bestiary, Pathfinder Bestiary 2, Pathfinder Bestiary 3 (in store).

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in