-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: text inputs #191
feat: text inputs #191
Conversation
commit: kaplay
|
src/types.ts
Outdated
@@ -699,6 +701,23 @@ export interface KaboomCtx< | |||
* @group Components | |||
*/ | |||
shader(id: string, uniform?: Uniform | (() => Uniform)): ShaderComp; | |||
/** | |||
* Enable timer related functions like wait(), loop(), tween() on the game object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this needs to be Enables text input on an object with a text component.
* ]) | ||
* | ||
* obj.hasFocus = false | ||
* debug.log(obj.text) // oh no i cant see my new text since it was disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You just can't input text right? You can still see it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, when hasFocus is false then you cant put new text, you can still see all the old text
Description
this allows you to make text input boxes, with this feature you can make any type of ui you want: search boxes, sign up panels, and making a discord client.
Issues or related