Comments (5)
Which UI plugin are you using?
I just checked with WSH panels progress bar and fb2k's default progress bar, both of them stop at the end.
from foo_thbgm.
(Foobox 4)[http://tieba.baidu.com/p/3238830600?pn=1]. You may download it here:
http://pan.baidu.com/s/1kTIF6wn#path=%252Ffbx_latest_version
from foo_thbgm.
That progress bar is controlled by JScript code, you should ask its author to fix this
FYI
http://www.fooblog2000.com/2007-02/how-to-make-a-progress-bar/
from foo_thbgm.
Althougth the url you gave me doesn't help, I managed to find out where the progress bar is painted myself.
// skin\foobox\guiext.js: 28
this.Paint = function(gr){
if(this.Enabled){
var progress = this.Value/(this.MaxValue - this.MinValue);
if (progress > 1) {
progress -= progress | 0;
}
var pos = (progress*this.Width)|0;
if(fixedWidth){
gr.DrawImage(ImgBg,this.X,this.Y,this.Width,h,0,0,ImgBg.Width,h,0);
gr.DrawImage(ImgOverlay,this.X,this.Y,pos,h,0,0,pos,h,0);
}
else{
DrawThemedBox(gr,this.X,this.Y,this.Width,h,ImgBg,paddingLeft,0,paddingRight,0);
DrawThemedBox(gr,this.X,this.Y,pos,h,ImgOverlay,paddingLeft,0,paddingRight,0);
}
gr.DrawImage(ImgKnob,Math.floor(this.X+pos-(ImgKnob.Width/2)),this.Y,ImgKnob.Width,ImgKnob.Height,0,0,ImgKnob.Width,ImgKnob.Height,0);
}
}
Simply reset the position to 0 if it exceeds 1. The code is ugly but it works...
from foo_thbgm.
lol, awesome
from foo_thbgm.
Related Issues (10)
- Download link is dead HOT 1
- Foobar2k crashes immediately when playing BGMs which stored in thbgm.dat HOT 11
- 为什么17年就不能有东方粉 HOT 9
- 为什么17年就不能有东方粉 HOT 1
- Fade out songs HOT 2
- 萃夢想.thxml中的“〜”和“・”导出后显示异常 HOT 1
- thxml编写问题 HOT 13
- Binary release with 17.5's (東方剛欲異聞) support? HOT 2
- ".pak" (from 13.5, 14.5 and 15.5) are not possible to play since latest update HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foo_thbgm.