stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
326 stars 33 forks source link

Implement cursor indexing through chat input #173

Closed jmshgs closed 1 year ago

jmshgs commented 1 year ago

Description

This implements cursor indexing through the user's chat input. Fixes #160.

Type of change

Please delete options that are not relevant.

Checklist:

ninjadev64 commented 1 year ago

Line 38 and 55, could they just be return background + firstMessage + lastMessage + cursor and not need another message variable, or is that not how mesh addition works?

stackotter commented 1 year ago

Line 38 and 55, could they just be return background + firstMessage + lastMessage + cursor and not need another message variable, or is that not how mesh addition works?

Yep, I didn't notice that while looking through the rest, the meshes for the message should only be generated once.