Page 1 of 1
Integrate with CanvasInput?
Posted: Mon Sep 30, 2013 6:27 am
by JudgeX
Has anyone considered or tried integrating with CanvasInput? I could make good use of it in my isogenic project, but I haven't quite been able to get an element to appear without also making the main canvas of ige stop working correctly.
CanvasInput:
http://goldfirestudios.com/blog/108/Can ... Text-Input
I started with working in a client.js from one of the examples and tried adding it there (after including it in ClientConfig.js), but to no avail.
Any tips?
Re: Integrate with CanvasInput?
Posted: Wed Oct 02, 2013 10:35 am
by robaldred
Ige already has it's own UI controls eg. IgeUiTextBox , are they not suitable?
I haven't looked at this library, however you'll probably need to create a custom entity class which extends IgeUiEntity which implements the CanvasInput functionality you need.
It might be worth asking Goldfire directly for pointers, I'm sure they'll be happy to assist as their game is using Ige.
Re: Integrate with CanvasInput?
Posted: Fri Oct 04, 2013 5:01 am
by JudgeX
Well, I was looking for something a little more configurable than what is already provided, with copy/paste capabilities and a more complete property list...
I haven't seen a good example of using the built in isogenic ones. Can the isogenic controls do multi-line, copy and paste, word-wrap, etc?
Re: Integrate with CanvasInput?
Posted: Sat Oct 05, 2013 12:04 am
by JudgeX
Oh, and thanks for the tip as to who to contact. I've used a contact form on the webpage and am waiting to hear back from them. I meant to thank you before but I was very tired and I guess it slipped my mind.
Re: Integrate with CanvasInput?
Posted: Sat Oct 05, 2013 2:33 pm
by coolbloke1324
The IGE one is very basic. I've been meaning to jump on the UI stuff and create new ones with caret support, copy and paste etc but I keep getting distracted by other updates
Also the text functionality for a text box is bloody complex. Relatively simple on desktop but making it work on mobile as well is a nightmare. For instance the mobile keyboard will only appear when focused on a real text input field in the DOM so you have to create a shadow element that the user interacts with and then mirror the changes on the canvas one. That is just so messy. Urgh!