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

feat: text inputs #191

Merged
merged 3 commits into from
Jul 3, 2024
Merged

feat: text inputs #191

merged 3 commits into from
Jul 3, 2024

Conversation

niceEli
Copy link
Member

@niceEli niceEli commented Jul 3, 2024

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

  • Related Issue #N/A
  • Closes #N/A

@niceEli niceEli requested review from lajbel and mflerackers July 3, 2024 02:28
Copy link

pkg-pr-new bot commented Jul 3, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

commit: 6cef279

kaplay

npm i https://pkg.pr.new/marklovers/kaplay@191


templates

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.
Copy link
Member

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
Copy link
Member

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.

Copy link
Member Author

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

@mflerackers mflerackers merged commit e97b83d into master Jul 3, 2024
3 checks passed
@lajbel lajbel deleted the niceEli-feat-textInput branch July 7, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants