Git Product home page Git Product logo

Comments (7)

DorpsGek avatar DorpsGek commented on May 5, 2024

sulai wrote:

Would be nice if this could be extended to the town's names. In Multiplayer you often refer to locations near some town.


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment135

from openttd.

DorpsGek avatar DorpsGek commented on May 5, 2024

TrueBrain wrote:

I took up again this patch, made it compatible with latest revision, and made some changes:

Compare is case insentive (truelight resolves to TrueLight)
When more than one person start with the same letters, it loops through it (Player1 and Player2 are there, pressing p will give Player2)

For the rest some minor code-style updates. Nothing fancy.

Nice patch!

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment426

from openttd.

DorpsGek avatar DorpsGek commented on May 5, 2024

TrueBrain wrote:

Btw, it might be nice if it indeed resolves to town-names and station-names too.. although it might be slightly frustrating. Maybe assign an other key to do that?


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment427

from openttd.

DorpsGek avatar DorpsGek commented on May 5, 2024

TrueBrain wrote:

New version, now when you are at the end of the options, it shows your original text again. More IRC-alike.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment428

from openttd.

DorpsGek avatar DorpsGek commented on May 5, 2024

TrueBrain wrote:

Yet an other new version, it now also loops through empty text (so just pressing when you opened the chatbox, makes it cycle through all names). Also, this is a bit more logic :)

Sorry about the many patches shortly after eachother ;)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment429

from openttd.

DorpsGek avatar DorpsGek commented on May 5, 2024

TrueBrain wrote:

And again, an update. This time 2 new things:

Auto-complete town-names (first players, then towns)
Allow auto-complete inside text. For example: Hi P, will resolve to 'Hi Player', if someone is named Player ;)

One possible 'bug', it doesn't check the cursor place, it just works on the last word of the chat. Like anyone will ever notice... ;)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment431

from openttd.

DorpsGek avatar DorpsGek commented on May 5, 2024

TrueBrain closed the ticket.

Reason for closing: Implemented

Added to SVN. Tnx for the great idea :)


This comment was imported from FlySpray: https://bugs.openttd.org/task/28

from openttd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.