[BEHAVIOR] Textbox++

Post your work in progress addons and get feedback

Post » Sat Mar 04, 2017 11:21 pm

Description: An easier way to work with text box. - please notify us if you find any errors or suggestions.
Download

Image
    - Conditions
  • On focus - Triggered when the textbox is in focus.
  • On unfocused - Triggered when the text box is out of focus.
    - Actions
  • Add Class - Add class name to object.
  • Remove Class - Remove the object class name.
  • Append Text - Add text to the end of the existing text.
  • Selectable - Set whether text can be selected.
  • Select All - Select all the text inside the text box.
  • Scroll Top - Scroll to the top line of a textarea.
  • Scroll Bottom - Scroll to the bottom line of a textarea.
  • Scroll to (%) - Scroll to the custom position (in percentage) of this object.
  • Scroll to (position) - Scroll to the custom position of this object.
    - Expressions
  • ID - Get the object ID.
  • Class - Get the object Class.
  • ScrollHeight - Get scroll height of a textarea.
  • ScrollPosition - Get scroll position of a textarea.
Last edited by Nandynho on Sun Mar 26, 2017 10:20 pm, edited 4 times in total.
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
43
S
17
Posts: 176
Reputation: 3,437

Post » Mon Mar 06, 2017 10:54 pm

New version
  • [#] Fixed - some bugs.
  • [+] Font Style - choose between normal, bold, italic or both.

New version
  • [#] Fixed - auto font size.
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
43
S
17
Posts: 176
Reputation: 3,437

Post » Fri Mar 10, 2017 10:57 pm

New version
  • [#] Selectable text - choose if text can be selected.
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
43
S
17
Posts: 176
Reputation: 3,437

Post » Sat Mar 11, 2017 2:11 am

hello @Nandynho does this plugin support for Cocoon.io Canvas+ webview engine ?
~Everyone can make GAMEs~
B
55
S
11
G
1
Posts: 414
Reputation: 5,786

Post » Sat Mar 11, 2017 5:27 pm

@Hardty how are you?
Sorry this is a behavior not a plugin, if the text box plugin works this one also works.

This is a behavior for the text box plugin.
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
43
S
17
Posts: 176
Reputation: 3,437

Post » Mon Mar 13, 2017 3:55 pm

Hello.
Great Behavior but i have an error with a textfiled "Text".

"Cannot set property 'onfocus' of undefined... Textbox_plus_behavior.js, line 53 (col 26)"

No error with a "Text box".

Thanks
B
4
S
1
Posts: 41
Reputation: 432

Post » Mon Mar 13, 2017 9:23 pm

@christ59 this plugin was development to works only with text box.
Did you use this behavior in which object?
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
43
S
17
Posts: 176
Reputation: 3,437

Post » Tue Mar 14, 2017 9:28 am

In "Text" object.
B
4
S
1
Posts: 41
Reputation: 432

Post » Wed Mar 15, 2017 12:07 am

So that's it, that behavior is only to work with Textbox. Sorry...
Bitcoin Wallet: 1GCRqZExcP6svMdKGpCaRH4A8QAZtSjXxu
B
43
S
17
Posts: 176
Reputation: 3,437

Post » Sun Mar 26, 2017 5:08 pm

Awesome behavior, keep up the good work! :D

Previously I used the Advanced Textbox Plugin, but this behavior has some features, that I previously had to script with Construct. Especially the Text restriction.

If you don't mind, I have some feature requests:
  1. I disabled the block context menu function in runtime.js, because I needed the context menu in my game, but, i also need the block function in some fields. Is it possible for you to add a property to enable/disable this features?
  2. I miss a font size property or did i overlooked it?
  3. A disable outline (not border) property would be awesome

EDIT:
Set CSS style "font-size" to "32px" isn't working when i use the behavior, is this a bug or do i miss an option?
And "Selectable" isn't working too ...
B
11
S
4
G
5
Posts: 74
Reputation: 3,435

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests