RhenaudTheLukark / CreateYourFrisk

Rhenaud The Lukark's Unitale fork
GNU General Public License v3.0
132 stars 56 forks source link

Buttons Lua object #107

Closed CerBor closed 2 years ago

CerBor commented 2 years ago

In this PR I suggest to add new Buttons object for controlling fight, act, item, mercy buttons.

I wanted to make battle, when enemy can move your buttons, but I didn't find any functions for it, so I decided to write my own. So, with this PR you can move, *block* and fully control buttons.

I hope that it will be useful for many players.

AllyTally commented 2 years ago

While I don't agree with the design decisions in this PR, it's fine for now. However I'd recommend calling the block/unblock functions disable/enable instead.

CerBor commented 2 years ago

OK, will do it too

RhenaudTheLukark commented 2 years ago

Alright, the current workload I have has been cleared, so I can accept this commit.

I don't suppose you've added all this to the docs, but I'll do it myself.

I also plan to clean up some things, but it shouldn't take me too long so it's alright.

Thanks a ton for the contribution!