Custom column - Ability to display icon(s)

Features wanted...
admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom column - Ability to display icon(s)

Post by admin »

Thanks, fix in next ver.

Do you have similar problems elsewhere in the GUI? (Not enough space around small icons)

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Custom column - Ability to display icon(s)

Post by LittleBiG »

No, I couldn't notice such thing.

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Custom column - Ability to display icon(s)

Post 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
2017-03-29_14h40_31.png (2.13 KiB) Viewed 1902 times
After:
2017-03-30_09h06_33.png
2017-03-30_09h06_33.png (3.11 KiB) Viewed 1902 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
2017-03-30_09h05_56.png (11.92 KiB) Viewed 1902 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom column - Ability to display icon(s)

Post by admin »

Will be better in next version.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Custom column - Ability to display icon(s)

Post 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... :mrgreen: :beer:
Thanks Don!
However, this doesn't seem to work with Extra Columns. Is that intentional?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Custom column - Ability to display icon(s)

Post 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]
Attachments
2017-03-30 1013.gif
2017-03-30 1013.gif (305.52 KiB) Viewed 1868 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom column - Ability to display icon(s)

Post 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... :mrgreen: :beer:
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.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom column - Ability to display icon(s)

Post 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! :beer: :appl:

Post Reply