Dictionary editor

Show us your completed creations made in Construct 2

Post » Tue May 22, 2012 8:36 pm

This is a simple editor for the new dictionary object.
You start with a key and a value to input. Then you have a button to add a key, and then an export button for when you are done.
Note: Value is saved as a number, so if you put a string you'll just get zero.
I've also added a scroll using mouse wheel for when you get more keys than can fit on the screen.

@Ashley
If people want to do more with this I'll add stuff like web storage etc, but could we get a download prompt pop up, or similar added?
Even a way to get the url would be fine.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Tue May 22, 2012 10:26 pm

Nice work. Unfortunately the current system is as good as I can get - there's really no way for a Javascript-generated file to be downloaded, without first uploading it to a server or using Flash. I might be able to improve it in Chrome, but it has to stay as it is for other browsers.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,534

Post » Tue May 22, 2012 10:49 pm

Ok gotcha.
I took a look at Pode's File save plug, and it does just about the same, So I'll stick to the Dictionary action.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Wed May 23, 2012 12:27 pm

Update:
Added web storage.
Save, load, new, etc.
Works fine in FireFox, goofy as hell in Chrome, and Ie does not activate save dialog on right click.
Not sure if I should laugh, or cry.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 2 guests