Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
majestyotbr committed Oct 20, 2023
1 parent 53e363e commit 620f43a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/client_entergame/characterlist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function CharacterList.create(characters, account, otui)
creatureDisplay:setCreature(creature)

local mainCharacter = widget:getChildById('mainCharacter', characterList)
if characterInfo.main == true then
if characterInfo.main then
mainCharacter:setImageSource('/images/game/entergame/maincharacter')
else
mainCharacter:setImageSource('')
Expand All @@ -308,11 +308,11 @@ function CharacterList.create(characters, account, otui)
if characterInfo.dailyreward == 0 then
statusDailyReward:setImageSource('/images/game/entergame/dailyreward_collected')
else
statusDailyReward:setImageSource('/images/game/entergame/dailyreward_notcollectedcollected')
statusDailyReward:setImageSource('/images/game/entergame/dailyreward_notcollected')
end

local statusHidden = widget:getChildById('statusHidden', characterList)
if characterInfo.hidden == true then
if characterInfo.hidden then
statusHidden:setImageSource('/images/game/entergame/hidden')
else
statusHidden:setImageSource('')
Expand Down Expand Up @@ -359,11 +359,10 @@ function CharacterList.create(characters, account, otui)
elseif account.subStatus == SubscriptionStatus.Premium then
if account.premDays == 0 or account.premDays == 65535 then
accountStatusLabel:setText(('%s%s'):format(tr('Gratis Premium Account'), status))
accountStatusIcon:setImageSource('/images/game/entergame/premium')
else
accountStatusLabel:setText(('%s%s'):format(tr('Premium Account (%s) days left', account.premDays), status))
accountStatusIcon:setImageSource('/images/game/entergame/premium')
end
accountStatusIcon:setImageSource('/images/game/entergame/premium')
end

if account.premDays > 0 and account.premDays <= 7 then
Expand Down

0 comments on commit 620f43a

Please sign in to comment.