[patch - New Feature] Input Function enhancements
Moderators: dorpond, trevor, Azhrei
Re: [patch] Input Function improvements(?)
Wow, is more dificult than I supposed in the first look. Yesterday, I spend a lot of time trying to set it up, but no results. I give up, but thanks anyway.
Can you generate a special version with your patches in it? Seems that a new version of maptool is taking a long time, and a improved Input function is very useful to me (mainly for the textarea input).
Thanks.
Can you generate a special version with your patches in it? Seems that a new version of maptool is taking a long time, and a improved Input function is very useful to me (mainly for the textarea input).
Thanks.
Re: [patch] Input Function improvements(?)
To all: Updated the patch to reflect a few changes to the behavior; mainly, SOF (select on focus) is set to false as default, and corrected focus behavior on radio controls.
@Nildik: Ah, sorry to hear that. As much as I'd want to, you'll be better off for now to stay within the official MT build. Whatever gets accepted into the final official version, it is sure to be better, even if I applied all my patches right now; and if you broke off and wrote scripts using special, unsanctioned features, it will be a pain for you to convert back to the official MT if these features are unavailable then.
What I can suggest to you is to continue building your stuff with a text area in mind but making do with a text field for now. When the final build comes out and this patch doesn't make it in, I'll stand by what I said and build a special version for you; and then you can refactor all those text fields into text areas easily. Besides, I'm still tinkering with this and might add more to it; maybe positional control if there will be use for it, to name one..
@Nildik: Ah, sorry to hear that. As much as I'd want to, you'll be better off for now to stay within the official MT build. Whatever gets accepted into the final official version, it is sure to be better, even if I applied all my patches right now; and if you broke off and wrote scripts using special, unsanctioned features, it will be a pain for you to convert back to the official MT if these features are unavailable then.
What I can suggest to you is to continue building your stuff with a text area in mind but making do with a text field for now. When the final build comes out and this patch doesn't make it in, I'll stand by what I said and build a special version for you; and then you can refactor all those text fields into text areas easily. Besides, I'm still tinkering with this and might add more to it; maybe positional control if there will be use for it, to name one..
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: [patch] Input Function improvements(?)
You are right Lee, is better to stay in the official version. I have to wail until the new version is released. Anybody knows how long it takes?
Re: [patch] Input Function improvements(?)
It's a matter up to the official dev team. Personally, I'm inclined toward a longer wait since I, and others like me, are working on improvements that would need testing and requirements verification to make it in. Others have stated a preference for sooner, rather than later, ironing out the last major bugs, closing shop, and having any further development come by way of forks from the last official build.
I think that is a viable option as well; though I also think that it might create a little over-proliferation of available versions, and fragment the community a bit regarding choice till 1.4 comes out. Well, that's just an opinion.
I think that is a viable option as well; though I also think that it might create a little over-proliferation of available versions, and fragment the community a bit regarding choice till 1.4 comes out. Well, that's just an opinion.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: [patch - New Feature] Input Function enhancements
Hello.
Do you know if this feature is included in the b89? If not, Why?
I think that is a very good enhancement to the input function and would be nice if it were included.
Do you know if this feature is included in the b89? If not, Why?
I think that is a very good enhancement to the input function and would be nice if it were included.
Re: [patch - New Feature] Input Function enhancements
AFAIK its not implemented in b89 as it was too much of a change of the core code.Nildik wrote:Hello.
Do you know if this feature is included in the b89? If not, Why?
I think that is a very good enhancement to the input function and would be nice if it were included.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: [patch] Input Function improvements(?)
True; it's not a bug fix. And I haven't looked at the code at all.wolph42 wrote:AFAIK its not implemented in b89 as it was too much of a change of the core code.
So the JSON data is embedded within the input() parameter as a string? That means if it were already in a variable it would need to be string-ified and then JSON-ified back again inside the macro function, right? That seems a waste.aliasmask wrote:Cool, that'll actually work. I was afraid the syntax of the json would be a problem, especially for quotes.Lee wrote:Example: [input(strformat("jsonVar | %s | Prompt type | width=50", json.set("{}", "a", 1, "b", 2, "c", 3)))]
Why not provide a variable name instead? The variable can be created to hold the JSON and if the variable doesn't hold a JSON object then the error message can even be specific: "Variable <...> does not contain a JSON object".
The code that converts a String to a JSON typically checks for a leading "[" or "{" and then calls new JSONObject(s) or new JSONArray(s). But if the string doesn't start with those characters, you could use the parser to look up the value of the variable and use the result. If it's already JSON then there's no conversion back and forth and no need to worry about quotes not being nested properly.
Re: [patch - New Feature] Input Function enhancements
Hi Azhrei,
I'll have to remember how this all works before making a worthwhile reply, but what I know is the JSON need not be embedded in the string and can be passed as a variable when strformat is used to construct the input argument(s). I hope I'm on the same page here
I'll have to remember how this all works before making a worthwhile reply, but what I know is the JSON need not be embedded in the string and can be passed as a variable when strformat is used to construct the input argument(s). I hope I'm on the same page here
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: [patch - New Feature] Input Function enhancements
Ok, understood, and thanks for the explanations.
Re: [patch - New Feature] Input Function enhancements
I've gone over the old stuff I wrote when I was learning the MT code and found that it can be done a lot better. I've taken out the patch I uploaded here and will work on the improved version in the future.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: [patch - New Feature] Input Function enhancements
Any chance to include this patch in the newer versions?