Praise Be To The Sun God.
 
HomeHome  Chat RoomChat Room  FAQFAQ  RegisterRegister  Log inLog in  
Forum Time
Latest topics
» Google_Search_1.3.3.247963.apk
Sun Oct 11, 2015 2:48 pm by janthemay

» Download Free Avenir Ttf
Thu Sep 24, 2015 9:08 pm by janthemay

» Crack Speedmaxpc 3.1.6 Licence
Wed Sep 16, 2015 7:01 pm by janthemay

» Horimouja Book Japanese Design Part 2 Torrent
Tue Jul 07, 2015 11:17 pm by janthemay

» S H I E L D S02e08
Mon Jun 08, 2015 11:19 am by janthemay

» Reasons why I don't watch/like Naruto anymore.
Mon Feb 23, 2015 10:22 am by Legen2dkiller

» HI GUYS
Tue Jul 22, 2014 9:42 am by Schylige

» Pokeom X/Y Guide
Thu Jan 09, 2014 7:33 pm by Kisame

» Old man rivers
Thu Jan 09, 2014 7:22 pm by Kisame

Top posting users this month

Share | 
 

 Foobar Volume Problem

View previous topic View next topic Go down 
AuthorMessage
Schylige

avatar

Posts : 47
Join date : 2011-02-18

PostSubject: Foobar Volume Problem   Wed Feb 29, 2012 3:11 pm

I got it fixed you fucking faggots.







function RGB(r,g,b){ return (0xff000000|(r<<16)|(g<<Cool|(b)); }

var font = gdi.Font("ProFontWindows", 9, 0);
var g_drag = 0;
var ww = 55;
var wh = 13;
var color = RGB((127-255-0));
var frameColor = RGB(27-27-27);

function StringFormat()
{
var h_align = 0,
v_align = 0,
trimming = 0,
flags = 0;

switch (arguments.length)
{
case 4:
flags = arguments[3];
case 3:
trimming = arguments[2];
case 2:
v_align = arguments[1];
case 1:
h_align = arguments[0];
break;
default:
return 0;
}

return ((h_align << 28) | (v_align << 24) | (trimming << 20) | flags);
}

var StringAlignment =
{
Near: 0,
Center: 1,
Far: 2
};

function on_paint(e)
{
e.SetTextRenderingHint(5);
var vol = Math.ceil(Math.pow((100 + fb.Volume) / 100, 2) * 100);

// Draw frame background
e.FillSolidRect(0, 0, ww, wh, frameColor);

e.DrawString("Vol:" + vol + "%", font, color, 0, 0, ww, wh, StringFormat(StringAlignment.Far, StringAlignment.Center));
}
function on_mouse_lbtn_down(x, y)
{
g_drag = 1;
}

function on_mouse_lbtn_up(x, y)
{
on_mouse_move(x, y);
g_drag = 0;
}
function on_mouse_move(x, y)
{
if (g_drag)
{
var v = x / ww;
v = v < 0 ? 0 : (v < 1 ? v : 1);
v = 100 * (Math.pow(v, 1 / 2) - 1);
fb.Volume = v;
}
}
function on_mouse_wheel(delta)
{
fb.Volume += delta;
}

function on_volume_change(val)
{
window.Repaint();
}

Also on the 'README' file it gives a brief explaination on how to do it:
' Volume:
Seekbar:
Right click -> configure, there are comments.
For the seekbar's characters it is rather easy,
just replace the 3 variables inside the barChar array with whatever you desire.'


Last edited by Schylige on Mon Mar 19, 2012 6:43 pm; edited 1 time in total
Back to top Go down
View user profile
Kisame
Rupt Admin
avatar

Posts : 813
Join date : 2009-12-29
Age : 27

PostSubject: Re: Foobar Volume Problem   Thu Mar 15, 2012 12:41 am

Schylige wrote:
...you fucking faggots.

no u.

_________________


"Invincibility lies in the defense; the possibility of victory in the attack"
Back to top Go down
View user profile http://www.last.fm/user/kisame88
Schylige

avatar

Posts : 47
Join date : 2011-02-18

PostSubject: Re: Foobar Volume Problem   Wed Mar 21, 2012 2:25 pm

Kisame wrote:
Schylige wrote:
...you fucking faggots.

no u.

Yeah, the problem was actually really stupid..

The RGB codes I was using was something like
[130-92-103]
But only for the volume specifically it was supposed to be like
[130, 92, 103]
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Foobar Volume Problem   

Back to top Go down
 
Foobar Volume Problem
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Pokerupt :: Gaming Platforms :: PC Gaming Discussion Forum-
Jump to: