ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator New Behavior
person icon
just_in_case
Moderator
Quote
2021-07-07 13:03:22

A new CopperCube Behavior turns a 2D overlay into an Editable Text overlay in which you can write text during runtime.

I know that we already have a behavior for this but that behavior is really limited and seems of no use in terms of functionality.

My behavior will allow you to have more functionality with a bunch of different options.

here is the development log of the behavior which shows the functionality of the new behavior.

My Behavior will allow you to use all the keys including Numpad keys and can be paired with both "Shift" keys to write in Uppercase or Lowercase.
Multiple options to trigger editing.


/* Changelog

[July ‎06, ‎2021] - Added all text keys to be included in text including numpad keys
- Added ability to add symbols and Uppercase and Lowercase letters
- Added fake blinking caret
- Added ability to use custom text as caret by adding a property type "TextCursor"
- Added 8 spaces for "Tab" key
- Added Enter key for inserting new line if multiline mode is selected for 2D Overlay
[July 07, 2021] - Added Allow editing only if mouse is clicked on the overlay
- Pause or stop editing if clicked outside the overlay
- Added ability to use special variable "edit.Nodename" to allow editing of overlay
- Added ability to let the ovrlay be editable only once and will not be editable when clicked again
- One time editable overlay can be edited if edited using variable "edit.nodeName"
- Added automatic removal of Caret when stop editing.
- Fixed a bug with caret ( previously caret was replaced by blank text which was causing issue of not being able...
to use caret character as a letter while typing) Now Fixed :)
- Added "Draw Text" property to be set as always true whenever behavior is applied to an overlay
- Added option to make the Overlay editable by default when the game starts otherwise click the overlay to edit it...
also fixed an issue with default editing turned on along with edit only once
- Fixed an issue with pixel and percentage value of Overlays
- Added option to make the overlay editable using variable "edit.nodeName" only

Limitations - Caret(Text Cursor) is just for reference it can't be used as a real caret.
- Caps-Lock can't be used to type letters in uppercase

*/


As you can read above there are a lot of options that have been added to the Behavior.

This behavior can be used to create in-game typing consoles. or can be used where it is required to have some input from the user. For example username, age, or something like that.
Can be used to create a chatbot as well.

Link to the behavior :- https://vazahat.github.io/assets...

Behavior comes with an example file that shows the functionality of different options.

Hope you guys find this useful.

emoji icon_holyemoji icon_holyemoji icon_holyemoji icon_holy

person icon
rolevix
Registered User
Quote
2021-07-07 14:49:31

Holy s**t!
This is awesome behavior!
Much thanks for sharing it emoji icon_grin

person icon
just_in_case
Moderator
Quote
2021-07-07 18:55:15

Thanks an updated version will be posted tommorrow with fix for the above mentioned limitation of Caps-lock issue. And Caret (text cursor) issue. Thanks to @smnmhmdy for working on caret functionality 😇😇
Arrow keys can be used to move caret which makes the overlay completely editable.

person icon
DouweDabbe
Guest
Quote
2021-07-08 01:44:07

really nice

maybe combine it with my previous post on this:

Everything inGame Dialog
https://www.ambiera.com/forum.php?t=8041

person icon
just_in_case
Moderator
Quote
2021-07-08 16:34:55

Update 1.2

An updated version of the same behavior has been posted with no previously mentioned Limitation.

You can now use CapsLock for using Uppercase or Lowercase letters.
The shift can be used to toggle while CapsLock is on.
Caret now acts as real caret You can use left and right arrow keys to move the caret(text Pointer) Thanks! to @smnmhmdy for the caret functionality.

download the Update version from the same link on the main thread. I have sent the behavior to @Niko hopefully he will upload it to the extensions page so that you can download it easily.

Hope this update will be useful to you.

@DouweDabbe thanks am glad you liked the behavior, yup you can combine it with your project.
emoji icon_holyemoji icon_holy

person icon
ngame
Registered User
Quote
2021-07-08 23:57:46

This is really cool!emoji icon_smile
Thanks for sharing)

person icon
just_in_case
Moderator
Quote
2021-07-09 14:04:06

Glad you find it useful emoji icon_holy

person icon
Aiming_bullets
Guest
Quote
2021-07-09 21:46:56

Finally ,thanks a lot for this behavior at least you are still working to imrove this engine. You are a saviour man👍

person icon
DouweDabbe
Guest
Quote
2021-07-10 02:08:34

DouweDabbe wrote:
really nice

maybe combine it with my previous post on this:

Everything inGame Dialog
https://www.ambiera.com/forum.php?t=8041



what I ment was,
in a couple of years it will become difficult to find this
great new script
when the forum post title is "New Behavior"

I Liked the Idea of combining Post into comprehensive subjects

thanks for the script

emoji icon_blinkemoji icon_blinkemoji icon_blink

person icon
just_in_case
Moderator
Quote
2021-07-13 18:57:30

This Behavior is now available to download from Ambiera's Coppercube extensions page...

@Douwedabbe ohh now I understand, I always use this type of titles heheemoji icon_grin

person icon
just_in_case
Moderator
Quote
2024-01-20 17:33:03

Update version 1.4

Just updated the extension with version 1.4

Also recorded and uploaded a video tutorial on how to use the extension to create different type of input boxes for different use cases.

Download the updated extension from itch.io page

https://vazahat.itch.io/coppercu...

person icon
andgameplay
Registered User
Quote
2024-01-20 22:41:42

Thanks for the behavior just_in_case, very useful!!!

person icon
o139
Registered User
Quote
2024-01-21 13:41:23

very good behavior!


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |