FTBTeam / FTB-Mods-Issues

Any mod issues, be it FTB Teams, Quests or any other of our mods can be reported here!
18 stars 1 forks source link

[Feature Request]: Quest completion toasts should be clickable #1235

Open MichaelHillcox opened 2 weeks ago

MichaelHillcox commented 2 weeks ago

Mod

FTB Quests

Description

When a quest is complete, it would be nice to be able to click the toast (assuming you're in a GUI with the mouse active, your inventory for example) to go straight to the quest task screen

Describe the solution you'd like

See above

Describe alternatives you've considered

No response

desht commented 1 week ago

Could be a problem, since toasts are a vanilla object which have no click behaviour. We'd need to re-implement it as a completely custom system which processed clicks. And often tasks are completed from outside the GUI (e.g. picking an object up) where there's no active mouse pointer.

What about sending the player a chat message with a "[Click to view task]" clickable?

MichaelHillcox commented 1 week ago

That could work... I must admit, after submitting the issue, I thought about how we'd do it as Minecraft most likely doesn't have click behaviour on the toasts.... I wonder if a simple mixin into the screen might do but you are likely right, a chat message to take them right to the quest is likely enough, we'd need to see it in practise and maybe provide an option to disable it?