Move Interface Buttons

  • #1, by sebastianWednesday, 01. July 2015, 21:09 9 years ago
    Hey guys,

    is it possible to move interface buttons (via Lua) to specific screen coordinates?
    If yes, how?

    kind regards

    Thread Captain

    2346 Posts

  • #2, by afrlmeWednesday, 01. July 2015, 23:09 9 years ago
    I don't believe that is possible; well not in a simple way, at least. Sorry.

    Technically if the button image was an animation, you would be able to move that because it would be an active animation & in theory I suppose you could move the polygon associated with the button, but...

    1. I don't know if it will update the polygon position without reloading the scene / hiding & showing the interface or resetting the game - the latter would be pointless because, well see 2.

    2. The new values will not be stored in the save game files. You would need to create some kind of query system using if else & values or conditions to determine the position they should be in.

    In other words to me, it sounds like a ton of hard work.

    Alternatively if you aren't bothered about transitioning from one position to another & don't mind snap positioning then you could just create multiple copies of the same button & link conditions to them to determine which button should be active & which ones should not.


    7272 Posts