Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Horizonal Bar plugin

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
Kilo
Plugin Author
Posts: 2
Joined: December 21st, 2006, 8:06 pm

Horizonal Bar plugin

Post by Kilo »

Hello All. Long time user, first time poster. I wrote a plugin to provide a little more functionality over the $Bar function:

- Allows you to define the characters used in the bar
- Allows you to specify the upper and lower bound
- Requires .NET 2.0
- Examples in README file and screenshots at download site

You can download it here.

-Brian
EvylRat
Posts: 53
Joined: September 26th, 2007, 5:33 pm
Contact:

Post by EvylRat »

Has anyone got this plugin? I've got three Bars on a screen, and all three don't look right.
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

I can't find the plugin where the author uploaded it, if someone can upload it then I could check.

@EvylRat If you can upload it somewhere then I'll check (http://mihd.net)
EvylRat
Posts: 53
Joined: September 26th, 2007, 5:33 pm
Contact:

Post by EvylRat »

Is there any other way to have a simple, none custom char bar
this might help in my other post

http://forums.lcdsmartie.org/viewtopic. ... highlight=
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

I don't know of a bar plugin that doesn't use custom chars. sorry.
EvylRat
Posts: 53
Joined: September 26th, 2007, 5:33 pm
Contact:

Post by EvylRat »

I've got a workaround... using the WIDTH plugin
$dll(width.dll,1,5#X,)
produces
XXXXX
on the screen
$dll(width.dll,1,10#X,)
produces
XXXXXXXXXX
on the screen.

I've tested this with custom chars.

Eg.
$dll(Pbar,2,9#8,$HDFree(C)#$HDTotal(C))
is the same as (i think)
$dll(width.dll,1,$dll(math,11,$dll(math,4,$dll(math,5,$HDFree(C),$HDTotal(C)),9),0)#$CustomChar(1,0,0,31,31,31,31,0,0)$Chr(176),)
I took the free space as a percentage of total, divded by number of total bars for graph, and rounded to nearest whole.
Command fails though if width is zero.Maybe a WARNIF could fix that.
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

Great idea!

PS: That's why I like smartie so much, plugin combining gets you interesting results.
Post Reply