uipetsystem.py dosyasında
class PetSystemMain(ui.ScriptWindow): sınıfındaki
duration = self.SealDuration - app.GetGlobalTimeStamp()
if self.SealDuration > 0:
self.GetChild("LifeGauge").SetPercentage(duration, self.BornDuration)
self.GetChild("LifeGauge").Show()
else:
self.GetChild("LifeGauge").Hide()
burayı aşağıdaki gibi değiştirin:
duration = self.SealDuration - app.GetGlobalTimeStamp()
if self.SealDuration > 0:
self.GetChild("LifeGauge").SetPercentageWithScale(duration, self.BornDuration)
self.GetChild("LifeGauge").Show()
else:
self.GetChild("LifeGauge").Hide()
sonra aynı dosyada
class PetSystemMini(ui.ScriptWindow): sınıfındaki
duration = self.SealDuration - app.GetGlobalTimeStamp()
if self.SealDuration > 0:
self.GetChild("LifeGauge").SetPercentage(duration, self.BornDuration)
self.GetChild("LifeGauge").Show()
else:
self.GetChild("LifeGauge").Hide()
burayı aşağıdaki gibi değiştirin
duration = self.wndMain.SealDuration - app.GetGlobalTimeStamp()
if self.wndMain.SealDuration > 0:
self.GetChild("LifeGauge").SetPercentageWithMiniBar(duration, self.wndMain.BornDuration)
self.GetChild("LifeGauge").Show()
else:
self.GetChild("LifeGauge").Hide()
Sonra ui.py dosyasındaki class AniImageBox(Window): sınıfında bulunan
def SetPercentageWithScale fonksiyonu varsa bu şekilde değiştirin yoksa ekleyin
def SetPercentageWithScale(self, curValue, maxValue):
if maxValue <= 0:
wndMgr.SetRenderingRect(self.hWnd, 0.0, 0.0, -1.0, 0.0)
return
oran = float(curValue) / float(maxValue)
oran = max(0.0, min(1.0, oran))
final_value = -1.0 + (oran * 1.613)
wndMgr.SetRenderingRect(self.hWnd, 0.0, 0.0, final_value, 0.0)
ardından altına şöyle bir fonksiyon ekleyin
def SetPercentageWithMiniBar(self, curValue, maxValue):
if maxValue <= 0:
wndMgr.SetRenderingRect(self.hWnd, 0.0, 0.0, -1.0, 0.0)
return
oran = float(curValue) / float(maxValue)
oran = max(0.0, min(1.0, oran))
final_value = -1.0 + (oran * 0.53)
wndMgr.SetRenderingRect(self.hWnd, 0.0, 0.0, final_value, 0.0)