ZakShearman / mc-tower-defence

Tower defence gamemode for minestom (EmortalMC)
GNU Lesser General Public License v2.1
11 stars 1 forks source link

refactor!: rewrite UI handling #77

Closed LooFifteen closed 6 months ago

ZakShearman commented 6 months ago

Started doing a review then realised I should probably bug test first.

Bugs:

I'll also submit a half completed review coz I might as well.

LooFifteen commented 6 months ago

Upgrade troops GUI has all the mobs from the previous GUI chilling there.

What is the intended behaviour? I've made this a tab-like system where you can upgrade a different mob, maybe it should be made more clear using an enchantment glint or similar?

ZakShearman commented 6 months ago

Bugs before I leave a review:

LooFifteen commented 6 months ago

I think the upgrade menu should be overhauled. Would it be a better idea to:

ZakShearman commented 6 months ago

You probably should be able to get into upgrade by right clicking but ALSO a button to get into it.

The intended behaviour what it was before - it doesn't show the other troops. Keeping the other troops there makes the GUI extremely dense and hard to understand from a UX perspective.

It might work if there is spacing between all the mobs and the upgrading section.

LooFifteen commented 6 months ago

but ALSO a button to get into it

Having a separate upgrading UI that looks identical to the spawning UI is very confusing in my opinion.

ZakShearman commented 6 months ago

Having a separate upgrading UI that looks identical to the spawning UI is very confusing in my op

Hmm maybe yh. get rid of the intermediary GUI then yh.

LooFifteen commented 6 months ago

fixed 👍🏼

ZakShearman commented 6 months ago

New GUI looks good - only things:

We probably need a system to cancel an 'instant buy' of a mob (right click to unlock). Maybe if a user hasn't sent the mob yet and they've unlocked it in the past 10 seconds they can SHIFT + RCLICK to sell back that unlock.

We need to display the cost of unlocking a mob on that instant buy right click to unlock.

LooFifteen commented 6 months ago

TowerManager#determineDirection needs to be looked at/rewritten.