Giter Site home page Giter Site logo

love-console's People

Contributors

beezlebub avatar hamsterready avatar jasongoemaat avatar pablomayobre avatar shakesoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

love-console's Issues

Changing width, height, x or y

There is a bug when you change the width, the height the x or y externally

console.x = 100
console.y = 200
console.w = 1000
console.h = 500

There are a variety of ways to fix this, that's why I'm not fixing this myself.
One way would be to make them locals so that they are not visible outside of the file, but that is not very nice since you cant read them either. Other way would be to check if they have changed on console.update, or create methods like setPosition, getPosition, resize and getSize. I leave this to you

Cursor

When using the cursor there is two issues:
The first being that when you push LEFT the first time nothing happens... Every press after is fine.
The second being that you cannot go before the first character in the string.

lua command does not work

I am assuming I'm supposed to for example type:

lua print("something")

That doesn't work. I've also tried:

lua "print('something')"
lua {print("something")}

And it does not work. I tried that last one because the error is saying that pairs() is getting a string instead of a table.

History traversal skip

After inputting a few commands, press UP to go through the history and it will skip the very last command inputted.

The "`" key is not in my keyboard

To enter that character I need to press shift but shift is detected as other key so it doesn't work.
I suggest using a function key (F2 maybe?)

Thanks for your hard work!

Lots of new features and bugfixes

Not issuing a PR because my changes are scattered and some of them are opinionated, but I've made a bunch of changes over at shakesoda/love-console that might be of interest.

  • Arguments for commands
  • Multiple commands in a line
  • Fixed a resizing bug
  • Fixed issues with picking up text when the console was hidden
  • Custom font support
  • Some API changes
  • All keys remappable
  • Hidden commands

It's not all super clean and I didn't update the docs yet, but it's as I'm using it in my own projects. Thanks for the lib :)

Allow using arrow keys in text input?

Right now if you make a mistake or want to change text, you have to erase what you have written. It would be nice to be able to navigate the text to place a missed character or whatever.

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.