New File Dialogue Plugin - good for editors

New releases and general discussions.

Post » Sun Jan 10, 2010 6:16 pm

wasn't planning on any new plugins but I needed this for the editor I'm working on, and figured other people could use it as well
lets you use a file dialog like so:


click here for quick demo(exe)-> left click in the window, to choose a sprite image to load

[color=#FF0000:3ldu5tb0]download plugin and demo cap here[/color:3ldu5tb0]

you can customize the title in the title bar, the default filename, choose whether it's for loading or saving, the default file extension, other available file extensions, and the starting directory

the file dialog doesn't actually load or save anything, it just lets you retrieve the full path of the file the user selected.

you can use whatever object you want to plug the file path into



[list:3ldu5tb0]
[*:3ldu5tb0]One Action : Start File Dialogue[/*:m:3ldu5tb0]
[*:3ldu5tb0]One Condition : On File Selected[/*:m:3ldu5tb0]
[*:3ldu5tb0]One Expression : GetFileName (you can also just type the object name without an expression to do the same thing)[/*:m:3ldu5tb0][/list:u:3ldu5tb0]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Jan 10, 2010 6:18 pm

ive always wanted this ability, nice job as always lucid ! :P
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Jan 10, 2010 9:11 pm

Nice :)

One strange thing though, it says "Files of type: *.gif, *.png, *.jpg" etc., but it doesn't show .pngs in the explorer pane unless I change it to "All files *.*"

Is that just because you didn't say to look for .pngs in your events or, uh...

I guess I should download the actual plugin and .cap, huh?

Edit:

Okay I tried it out and actually I can't seem to get the "Default File Extension" expression working at all... it shows no .jpgs for me in the explorer pane even though ".jpg" is in the expression. It only shows image files when I select "All Files." And then it shows, well, all the files.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Jan 10, 2010 9:58 pm

my bad, I didn't put the semi colon between jpg and png
that's why it didn't show up
if you paste this there it'll work:
"Image Files(*.jpg;*.jpeg*.png;*.gif;*.bmp)|*.jpg;*.jpeg;*.png;*.gif;*.bmp|All Files(*.*)|*.*"

as far as the default goes. that is used if you choose not to have any preset extensions at all, or if the user chooses 'all files', and just saves it as let's say
Deadeye
it would default to Deadeye.txt or whatever you put for the extension
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Jan 10, 2010 10:06 pm

Ah I got it, thanks :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Jan 10, 2010 10:30 pm

no prob, and thank you quazi
replaced the demo cap and exe with the proper extension info
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Jan 11, 2010 12:53 am

Nice, I needed this just the other day.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jan 12, 2010 2:36 am

How is this different from the default Common Dialog plugin?
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Tue Jan 12, 2010 2:54 am

[quote="Madster":1zatiub8]How is this different from the default Common Dialog plugin?[/quote:1zatiub8]
You don't get the side bar for selecting from drives, libraries, and what else have you when using the Common Dialog plugin.

Sweet plugin, Lucid. I've been hoping for this style of dialog. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Tue Jan 12, 2010 2:56 am

sweet! I really like that panel, specially now in Win7 that you can define your own libraries and not have them cluttered by crappy installers


Edit: please file into finished addons thread!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests