当进度条完全加载并且我有一个“刷新”按钮时,我想显示一条调试消息,当我点击这个按钮时,它应该重新加载进度条。下面是我尝试过的代码:
var energyBar : GUIStyle ;
var bgImage : Texture2D; // background image that is 256 x 32
var fgImage : Texture2D; // foreground image that is 256 x 32
static var playerEnergy = 1.0; // a float between 0.0 and 1.0
function Start() {
}
可能重复:
我构建了一个进度条类,它显示了for循环中的进度。下面是进度条类的代码:
Public Class frmProgress
Private Sub frmProgress_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
progressBar.Minimum = 0
End Sub
Public Sub ProgressBarSetup(ByRef Maximum As Integer, ByRef Title As String)
progressBar.