Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input box #64

Closed
Aashik30 opened this issue Nov 27, 2019 · 14 comments
Closed

Input box #64

Aashik30 opened this issue Nov 27, 2019 · 14 comments
Labels

Comments

@Aashik30
Copy link

I need to create the input box only 'number' type in phaser3,
Could you please rply immediately?

@rexrainbow
Copy link
Owner

rexrainbow commented Nov 27, 2019

Here is a test code of number-input, set parameter type to 'number', in line 23.

Note that, the behavior of number input might not be the same in different browser.

@Aashik30
Copy link
Author

ya its working, but i not need this type of dropdown inputbox,
I need without Dropdown inputbox in 'number' type

@rexrainbow
Copy link
Owner

Here is a CSS solution to disable input’s spin box.

To insert this css string, you might add an id property into config (test, line 23), then insert css in normal way (line 40~47). Note that this css style only work on chrome.

@Aashik30
Copy link
Author

Sry i not need in html and css,
i need in phaser3.

@rexrainbow
Copy link
Owner

rexrainbow commented Nov 28, 2019

Input box is a DOM. Therefore you can control it by html/css.

@Aashik30
Copy link
Author

I cannot understand your conversation,
could you please tell me it is possible in phaser3?

@rexrainbow
Copy link
Owner

rexrainbow commented Nov 28, 2019

Input text game object, or this text-edit behavior are based on phaser3's built-in DOM game object (official example), which create an input tag to allow user type characters from keyboard.

@Aashik30
Copy link
Author

Thanks,now its working, but the 'e' button also in that number type text game object,
how can i block that keyword?

@rexrainbow
Copy link
Owner

Test code, line 34-38. (Reference)

@Aashik30
Copy link
Author

Aashik30 commented Nov 29, 2019

thanks,its working fine,

@Aashik30
Copy link
Author

Aashik30 commented Nov 29, 2019

How can i set the PC screen resolution scale in scene?

Img Size:1920 x 1080

@rexrainbow
Copy link
Owner

Please post this question on phaser's forum

@Aashik30
Copy link
Author

Aashik30 commented Jan 29, 2020

I taken the build in android,i type in the inputbox the page is minimize,
i share the image of the problem in the below,please tell any method to resolve that.

Screenshot_2020-01-29-11-23-23-852_com house poker
Screenshot_2020-01-29-11-23-28-904_com house poker

@rexrainbow
Copy link
Owner

No idea, actually.
Here is a demo using input text, at the bottom-center of window. window wont be minimized. since the js code (plugin) is the same, the issue might come from html/css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants