Digital Paint Discussion Board

Development => General Development => Topic started by: Zorchenhimer on March 24, 2007, 01:07:59 PM

Title: Exclusions in menus
Post by: Zorchenhimer on March 24, 2007, 01:07:59 PM
Is there a way for the select widget to exclude or ignore files. Like a menu that list all demos except the auto recorded? Thanks.

PS. Jits, I like the fix of the blank select widget flipping out. :)
Title: Re: Exclusions in menus
Post by: jitspoe on March 25, 2007, 05:41:25 PM
I don't think so, unless there's some crazy file listing wildcard I don't know about.
Title: Re: Exclusions in menus
Post by: Zorchenhimer on March 26, 2007, 10:40:37 AM
I thought I couldn't use those complicated wildcards. :P
Well... TO GOOGLE!
Title: Re: Exclusions in menus
Post by: {appy Hamper on March 27, 2007, 07:59:36 PM
I think you could do it if you renamed all the demos you wanted to show up, and then wrote the command to only list those files...

or you could just do the same thing we did in the siege and favs maps categories, using separate directories.  The files would all still have to be in the demo file, but you could copy/paste them anywhere else you want.
Title: Re: Exclusions in menus
Post by: Zorchenhimer on March 27, 2007, 09:47:06 PM
That would completely defeat my purpose: an option to show all demos except the auto recorded ones. This way would be much less time consuming, which is why I'm asking if it is possible in the first place. :P
Title: Re: Exclusions in menus
Post by: {appy Hamper on March 28, 2007, 07:11:33 PM
I haven't seen the auto-recorded ones.  Are they saved by the date?  as opposed to the ones you name when you record?
Title: Re: Exclusions in menus
Post by: Zorchenhimer on March 28, 2007, 07:18:24 PM
Yea, for some reason the version in the dorms doesn't have the auto record thing (except mine :) ), but this it the format:

Quote
auto_20070306_144657_pb2dm1.dm2

What it means:

"auto"
Should be obvious

"20070306"
Date. This one is: 03-06-2007

"144657"
Time. 24 hour. This one is: 2:46.57 P.M. (I think)

"pb2dm1"
Map. (duh)
Title: Re: Exclusions in menus
Post by: KiLo on March 28, 2007, 08:37:55 PM
"144657" Time. 24 hour. This one is: 2:46.57 P.M. (I think)

Right you are on the time. :)
Title: Re: Exclusions in menus
Post by: {appy Hamper on March 30, 2007, 12:47:22 PM
can you use variables in the middle?

Something like setting the list command to "auto_$.dm2"
Title: Re: Exclusions in menus
Post by: Zorchenhimer on March 30, 2007, 12:56:57 PM
No. And yes, I posted in the feature request thread:

Quote
2: Variables in menu widgets (for map preview screenshots) - Zorchenhimer, l1g