gE Perfect Textbox [Developement Issues & discussion]
Posted: Tue Mar 25, 2014 12:40 pm
Hello everyone!
(Hello skydreign)
"recently" i was in mood, so i started the Perfect Textbox. Having it on my way.. shall possibly bring great results. So far the textbox accept automatic size (height)
according to the font, crops any size of canvas into a custom text box with custom border/background colors, uses animated indicator (it acts exactly like a regular one here in the topic editor for e.g), you can filter out the characters you wish to be printed, including uppercases. The combination of caps lock and shift works as well as the caps lock apart. Ctrl+backspace to clear all and backspace to clear the last character.
That because we all know how interesting the default gE text boxes are coded.
So i am done with this stuff above in 209 lines (3 functions, 2 function calls in separate actors).. i think its time to seek for ideas, help and discuss that a little, since i might be doing something useful to others finally.
Mine and @DarkParadox's textbox have almost nothing in common, mine should use less memory/size, any font, automatic size, different behavior soo our goals are also a bit different. I would like to create the first fully working, easy-to-use library and probably sky will even include that in the new version of gE if he is ok with that.
Ok. Fixing the bugs would be a perfect start. Then.. i can take care for the navigation (left-right) between characters so people can
fit characters in any place in the string or just delete a missed letter.(of course i would love some help.. i'm doing a lot of things tho and i need
some sort of an meditation or else i'm gonna overheat)
And the final step might be the textbox capacity. Writing longer strings then the textbox width size.
_________________________________________________________________________________________________________________________
I'm sorry if the wide fonts used as titles interrupt you on a way.. it because it reminds me of pyrometal. I like pyrometal environment.
_________________________________________________________________________________________________________________________
_________________________________________________________________________________________________________________________
(Hello skydreign)
"recently" i was in mood, so i started the Perfect Textbox. Having it on my way.. shall possibly bring great results. So far the textbox accept automatic size (height)
according to the font, crops any size of canvas into a custom text box with custom border/background colors, uses animated indicator (it acts exactly like a regular one here in the topic editor for e.g), you can filter out the characters you wish to be printed, including uppercases. The combination of caps lock and shift works as well as the caps lock apart. Ctrl+backspace to clear all and backspace to clear the last character.
That because we all know how interesting the default gE text boxes are coded.
So i am done with this stuff above in 209 lines (3 functions, 2 function calls in separate actors).. i think its time to seek for ideas, help and discuss that a little, since i might be doing something useful to others finally.
Mine and @DarkParadox's textbox have almost nothing in common, mine should use less memory/size, any font, automatic size, different behavior soo our goals are also a bit different. I would like to create the first fully working, easy-to-use library and probably sky will even include that in the new version of gE if he is ok with that.
- Code: Select all
Ale of Fiera™ std vegasoft™ - Game Editor - Text Box - Re-up - v1.0 [BETA]
- Ability to create custom width sized text box with a specific color for borders and background in a any canvas actor.
- Automatically height size according to the font actor height size
- Animated indicator, which pauses when typing or clearing text
- Filter of characters to be printed
- Shift, Caps Lock, Caps Lock+Shift fully working
- Backspace feature to delete characters
- Ctrl+Backspace feature to delete the text from the entire tb
- Any font can be used on any size (limited of width ofc)
- 1 Function to create the textbox and one for typing the text in it
- Active/non-active messy system
- Code: Select all
Bug 1: static-casted string buffer variable disallow individual function usage.
Bug 2: "The mysterious trigger" Textbox drawing won't work if there is no external text object with code of "textNumber = font.width" [SOLVED]
Note: Even commented the code above just should exist, or the textbox visual won't work. Thats creepy.
Bug 3: I don't think there is bug 3
Ok. Fixing the bugs would be a perfect start. Then.. i can take care for the navigation (left-right) between characters so people can
fit characters in any place in the string or just delete a missed letter.(of course i would love some help.. i'm doing a lot of things tho and i need
some sort of an meditation or else i'm gonna overheat)
And the final step might be the textbox capacity. Writing longer strings then the textbox width size.
_________________________________________________________________________________________________________________________
I'm sorry if the wide fonts used as titles interrupt you on a way.. it because it reminds me of pyrometal. I like pyrometal environment.
_________________________________________________________________________________________________________________________
- transshipment content:
- data
- getbox.ged
- fiera.c
_________________________________________________________________________________________________________________________