[REQUEST] Accessible Unit Selection

Discussion in 'Mod Discussions' started by SatanPetitCul, March 25, 2014.

  1. SatanPetitCul

    SatanPetitCul Active Member

    Messages:
    267
    Likes Received:
    197
    I like the Unit Selection panel, it gives usefull intel about what you have selected, and it enables you to refine your selection. But it is far away from the player attention, as it is almost hidden in the bottom left corner.

    So my idea is to make it pop right under your mouse position, then it will be always quickly accessible.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Maybe with added hotkeys and click through?
  3. SatanPetitCul

    SatanPetitCul Active Member

    Messages:
    267
    Likes Received:
    197
    Is it possible to take back mouse event in JS ?
  4. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Yes, the event object that is sent to any event listeners should contain the mouse position.
  5. SatanPetitCul

    SatanPetitCul Active Member

    Messages:
    267
    Likes Received:
    197
    So it could be possible to create coordinate for the unit selection panel each time the mouse click is released, and data-bind somehow these coordinates ?
  6. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Yes, this mod would be possible.
  7. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,879
    Likes Received:
    7,438
    I don't like the idea of it being under the mouse. That'll mean it gets in the way and will clutter up the UI.
    cptconundrum likes this.
  8. SatanPetitCul

    SatanPetitCul Active Member

    Messages:
    267
    Likes Received:
    197
    Finally i did something simple, i just move the unit selection panel more to the centre.
    view of the result :
    [​IMG]

    It is simple but good enough for me regarding the effort to do it :)

    Attached Files:

Share This Page