Code Monkey home page Code Monkey logo

Comments (9)

sonygod avatar sonygod commented on May 25, 2024

yeah.it's most needed feature for a complete game !

from flambe.

m0th517 avatar m0th517 commented on May 25, 2024

Hello,

Any ETA on this? Maybe instead of going though native input hell it might be actually easier to implement something simple from scratch..

Check this guy's text input implementation on html5 canvas.. http://www.zebkit.com/ (scroll down the first page for input example..)

from flambe.

aduros avatar aduros commented on May 25, 2024

No ETA at the moment.

I think overlaying a native text field is definitely the way to go. Emulated ones always end up feeling weird to the user (no right-click context menu, no copy/paste, other issues on mobile).

from flambe.

m0th517 avatar m0th517 commented on May 25, 2024

I'm gonna have to disagree on that one. Flambe is a canvas engine so everything will feel custom anyway and it's not like people will create websites or native apps with it. Most flambe users are making games, and games have custom text inputs.. To me, it's the other way around.. It would feel wierd if I opened up Starcraft 2, for example, and when I was asked to enter my player name in-game, I got a native text field, inside all that custom Starcraft 2 GUI.. As a player, when I see an input text field in-game, I expect to be able to select the text with the mouse, and have control+C and control+V work, and of course the basic stuff on the keyboard (select with SHIFT key, Home, End, etc..) but that's pretty much it.. It would turn me off to right click on it and get an out of place native pop up thingie. I think same goes for most games..

I will be needing text inputs soon and I'll evaluate both options cause I could may well be talking out of my ass.. Since nothing exists already, I'll implement either custom or native ones or both, and make sure the code matches flambe's flavour. This could be my chance to finally give something back. (been using flambe for 1 year now and I'm really really happy with it).

from flambe.

sonygod avatar sonygod commented on May 25, 2024

what about after 3 years,there is still not implement this feature? it is very slowly!!

from flambe.

markknol avatar markknol commented on May 25, 2024

I have textinput created myself that works for both html and flash target. I can put it somewhere if someone is interested.

from flambe.

jermccurdy avatar jermccurdy commented on May 25, 2024

That would be very useful!

from flambe.

jsaade avatar jsaade commented on May 25, 2024

@markknol yes, that would be great.

from flambe.

Jon2211 avatar Jon2211 commented on May 25, 2024

How does your implementation handle loading in fonts? Problem I've been having is that using a native field you get wacky fonts depending on machine - basically the same issues that normal HTML textfields have.

from flambe.

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.