Skip to content

Commit

Permalink
新しいバージョンがあるときの表示を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakuto1112 committed Dec 14, 2024
1 parent 48a6853 commit 23fb424
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/avatar_modules/action_wheel/update_checker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,14 @@ UpdateChecker = {
local isActionWheelOpened = action_wheel:isEnabled()
if isActionWheelOpened then
local textTask = models.models.action_wheel_gui.Gui.VersionDisplay:getTask("action_wheel.gui.version_display.l3")
local newerVersion = self.compareVersions(self.latestVersion, self.FBAC_VERSION)
if newerVersion ~= nil and newerVersion ~= self.FBAC_VERSION then
if self.checkerStatus == "UPDATE_AVAILABLE" then
if math.floor(self.textAnimationCount / 20) % 2 == 0 then
textTask:setText("§6§n"..self.parent.locale:getLocale("action_wheel.gui.update_check.update_available")..self.latestVersion)
else
textTask:setText("§n"..self.parent.locale:getLocale("action_wheel.gui.update_check.update_available")..self.latestVersion)
end
self.textAnimationCount = self.textAnimationCount + 1
end
if self.checkerStatus == "ERROR_REQUEST_FAILED" then
elseif self.checkerStatus == "ERROR_REQUEST_FAILED" then
textTask:setText(self.parent.locale:getLocale("action_wheel.gui.update_check.error_request_failed").."("..self.requestStatus..")")
else
textTask:setText(self.parent.locale:getLocale("action_wheel.gui.update_check."..self.checkerStatus:lower()))
Expand Down

0 comments on commit 23fb424

Please sign in to comment.