Giter Club home page Giter Club logo

Comments (7)

mhgolkar avatar mhgolkar commented on June 6, 2024 1

You also have alphabetical sort, move to top, and you can double-click to pick on an item (instead of right-click to extract), then choose replace selected ... to edit it while keeping the order.

But yes, list sorting is quite basic, overall.

I guess we need to at least add move up and move down functions (maybe with PgUp/Dn shortcuts).
Drag and drop would be nice, but I should check how good it's going to work. Godot does not offer such things by default so we should make them ourselves.

I'd put it in my to-do list. This would be a UX priority.

from arrow.

frigvid avatar frigvid commented on June 6, 2024

I haven't looked at how you're storing Actions in the Interaction list, but if it's a list or array, you can just resort them based on the order the user places them in. Still a bit of a hack, but I think it'd work fine. If you're going the keyboard shortcut route, I'd recommend using a modifier key plus an arrow key instead of the Page Up or Page Down keys, as not every keyboard has those easily available. My personal keyboard doesn't have them at all, for example, and I've seen some laptops drop them too. It isn't usual, but I wouldn't call it particularly rare either, so something to keep in mind.

from arrow.

mhgolkar avatar mhgolkar commented on June 6, 2024

I haven't looked at how you're storing Actions in the Interaction list, but if it's a list or array, you can just resort them based on the order the user places them in.

Newly added choices are always appended at the end of the underlying list/array.
No sorting happens automatically, because the order of choices (i.e. order of slots) would change branching, which shall always be avoided unless the author deliberately decides to do so.

I'd recommend using a modifier key plus an arrow key instead of the Page Up or Page Down keys, as not every keyboard has those easily available.

Yes, sounds rational.

from arrow.

frigvid avatar frigvid commented on June 6, 2024

Of course, but in the event that sorting is necessary or desired, I think it's safe to assume that the end-user is inspecting the node because it isn't an automatic feature and thus keeping track of such things on their own. Adding Actions do still mess up branching when you manually sort anyhow, so it doesn't really make much of a difference, it just makes it less cumbersome to do so.

from arrow.

mhgolkar avatar mhgolkar commented on June 6, 2024

We only keep the choices (pieces of text) themselves, so few sorting functions come to the mind.
Aside from current ones (such as alphabetical sort, and move to the top), and moving them up and down manually which we've agreed upon, do you have any other sorting mechanism in mind?

from arrow.

frigvid avatar frigvid commented on June 6, 2024

Hmm, no, I do think that's enough to cover most bases if we're being optimistic. There are probably ways to make it better, but I can't think of any myself, at least. Drag-and-drop, if implemented, should cover all use-cases though, if only because it makes sorting quicker.

from arrow.

mhgolkar avatar mhgolkar commented on June 6, 2024

Lists now offer more sorting mechanisms and new shortcuts.
Thanks for your suggestion

from arrow.

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.