ethanmoffat / EndlessClient

An open source client for Endless Online written in C#
MIT License
34 stars 16 forks source link

Map click event triggers when interacting with GUI #255

Closed sorokya closed 1 year ago

sorokya commented 1 year ago

For example when confirming an item drop amount your player character will walk to where you clicked on the "OK" button

ethanmoffat commented 1 year ago

This is a known issue, thought it was a duplicate, but it's a blocker for #225

I need to basically rewrite how the controls library handles input, and redo all input handling for EndlessClient. Right now each Game Component handles input individually. I have a hacky workaround in place, but it's not a clean solution.

The idea right now is to track z-order (DrawOrder/UpdateOrder already exist in DrawableGameComponent) of the components and send messages to the topmost enabled/visible component.