Page 6 of 6
Re: Custom column - Ability to display icon(s)
Posted: 29 Mar 2017 14:35
by admin
Thanks, fix in next ver.
Do you have similar problems elsewhere in the GUI? (Not enough space around small icons)
Re: Custom column - Ability to display icon(s)
Posted: 29 Mar 2017 14:50
by LittleBiG
No, I couldn't notice such thing.
Re: Custom column - Ability to display icon(s)
Posted: 30 Mar 2017 09:13
by LittleBiG
Actually, maybe it is related, but a couple of small icons became nicer, before they were smudgy, and I thought it was simply because they couldn't be better. But now I see they are sharp. Before:

- 2017-03-29_14h40_31.png (2.13 KiB) Viewed 2512 times
After:

- 2017-03-30_09h06_33.png (3.11 KiB) Viewed 2512 times
But the menu created by this user button is still ugly :
Code: Select all
"|:qns" button "qns"
"FIND FILES"
"|:find" button "find"
"Find Labels|:findlabel" button "findlabel",8
"Find Tags|:tagsfind" button "tagsfind"
"-"
"GLOBAL VISUAL FILTER"
"|:gvf" button "gvf"
"Power Filter|:gvf" button "gvf",8
"Settings|:gvf" button "gvf",2
"Filter by comment and tags|:visualfilter" sub "_fct"
"Filter by comment (improved)" sub "_fct2"
"-"
"TYPE AND STATS FILTER"
"|:tsf" button "tsf"
"Settings|:tsf" button "tsf",2

- 2017-03-30_09h05_56.png (11.92 KiB) Viewed 2512 times
Re: Custom column - Ability to display icon(s)
Posted: 30 Mar 2017 13:02
by admin
Will be better in next version.
Re: Custom column - Ability to display icon(s)
Posted: 30 Mar 2017 15:21
by TheQwerty
admin wrote:TheQwerty wrote:Can we please have the the ability to specify a list of icons that are shown side by side?
Yep, can be done. Has been done. Filled my morning but it was worth it. Still waiting for a script that emulates a slot machine...

Thanks Don!
However, this doesn't seem to work with Extra Columns. Is that intentional?
Re: Custom column - Ability to display icon(s)
Posted: 30 Mar 2017 17:09
by TheQwerty
Uses Extra 1-3 columns so that we could add "animation".
Now it just needs some noise from
beep or
sound.
Code: Select all
"Slot Machine"
$icons = ':meta|:cofi|:favs|:ctb1|:hotlist|:del|:nuke|:paper|:sfs|:ctb1';
$winner = ':ctb1';
$iconCount = GetToken($icons, 'Count', '|');
// Wheels
$w1 = FormatList($icons, 'x');
$w2 = FormatList($icons, 'x');
$w3 = FormatList($icons, 'x');
// Seeds
$s1 = Rand(1, $iconCount);
$s2 = Rand(1, $iconCount);
$s3 = Rand(1, $iconCount);
// Cheater/Demo Mode
//$w1 = ':del|:paper|:nuke|:favs|:meta|:cofi|:ctb1|:sfs|:hotlist|:ctb1';
//$w2 = ':cofi|:nuke|:sfs|:del|:hotlist|:ctb1|:meta|:ctb1|:paper|:favs';
//$w3 = ':nuke|:del|:paper|:ctb1|:meta|:favs|:cofi|:sfs|:hotlist|:ctb1';
//$s1 = 6;$s2 = 3; $s3 = 5; // Adjust for focused item.
// Spin the Wheels
$spins = 20;
$i = 0;
while ($i < $spins) {
$p1 = $s1 + $i;
$p2 = $s2 + $i;
$p3 = $s3 + $i;
// Update wheel positions
foreach ($item, ListPane(), '|') {
// Works better if the wheels do not all stop at once.
if ($i < $spins - 4) {
tagitems('ex1', GetToken($w1, $p1 % $iconCount + 1, '|'), $item);
}
if ($i < $spins - 2) {
tagitems('ex2', GetToken($w2, $p2 % $iconCount + 1, '|'), $item);
}
tagitems('ex3', GetToken($w3, $p3 % $iconCount + 1, '|'), $item);
$p1++;$p2++;$p3++;
}
wait 10;
$i++;
}
// Check if focused item is a winner!
$v = Report('{Extra 1}{Extra 2}{Extra 3}', <focitem>);
if ($v == StrRepeat($winner, 3)) {
$i = 0;
while ($i < 5) {
tagitems('ex1','',<focitem>);
tagitems('ex2','',<focitem>);
tagitems('ex3','',<focitem>);
wait 250;
tagitems('ex1',$winner,<focitem>);
tagitems('ex2',$winner,<focitem>);
tagitems('ex3',$winner,<focitem>);
wait 250;
$i++;
}
}
[/size]
Re: Custom column - Ability to display icon(s)
Posted: 30 Mar 2017 18:11
by admin
TheQwerty wrote:admin wrote:TheQwerty wrote:Can we please have the the ability to specify a list of icons that are shown side by side?
Yep, can be done. Has been done. Filled my morning but it was worth it. Still waiting for a script that emulates a slot machine...

Thanks Don!
However, this doesn't seem to work with Extra Columns. Is that intentional?
That's because | is not allowed in tags. Next version you can use ";" and it will work.
Re: Custom column - Ability to display icon(s)
Posted: 30 Mar 2017 18:13
by admin
TheQwerty wrote:Uses Extra 1-3 columns so that we could add "animation".
Now it just needs some noise from
beep or
sound.

YEAH!
