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

Added 2 void functions for input of text after compile. #91

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Vadenez
Copy link

@Vadenez Vadenez commented May 11, 2020

P.S Im a newbie to C++
Commit 1:
Srry i couldn't figure out the format of cvui.h, so this better work.
I've made an attempt at the idea of text input, this allows me to create a "inputBox" that I can only type in after clicking on it.
ive also create a more basic version that inputs any letters typed, aslong as inputField = true.
It shouldn't let weird characters pass, like ñ and Ȣ.
It also has full functionallity of backspace, but not tab.
only thing is 25% of the time what you input doesn't input, atleast for me 👎 .
https://github.com/Vadenez/cvui

Commit 2:
improved consistance from 25% to bout 50%, and made text slightly change color wether or not allowInput is true or false. Made they strings instead of void, so you can process the input better,
Ex. password validator.
Another problem I've found is that it can't tell the difference between one use of the function and another use of the function, meaning that 2 input boxes with have the same text inside them.

Also if you want to see it in action, im using it for one of my projects (https://github.com/Vadenez/VOLT-Banking). And, I've made a bunch of "random" functions using cvui, that im using in VOLT-Banking these are here: https://github.com/Vadenez/VOLT-Banking/blob/master/Bank/headers/functions.h

Vadenez added 3 commits May 10, 2020 19:43
Srry i couldn't figure out the format of cvui.h, so this better work. Also 25% of the time these wouldn't work for me lol.
Made both input functions strings, and improved consistancy, bout 60% of the time it gets it right.
@Dovyski
Copy link
Owner

Dovyski commented May 24, 2020

Thank you for your contribution! I am currently working to update all cvui code base. Your pull request will be merged soon.

@Dovyski Dovyski changed the base branch from master to dev January 4, 2022 17:20
@Dovyski Dovyski changed the base branch from dev to master January 4, 2022 17:20
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