Skip to content

Commit

Permalink
v4.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
r-e-d committed Mar 15, 2022
1 parent c15d060 commit 1999d65
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LeUI/LeUI.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~LeUI/backup~
AUTHOR ~lefreut~
VERSION ~4.4.3~
VERSION ~4.4.4~
LANGUAGE
~English~ ~en_US~ ~LeUI/lang/en_US/setup.tra~

Expand Down
18 changes: 7 additions & 11 deletions LeUI/copy/UI.menu
Original file line number Diff line number Diff line change
Expand Up @@ -14121,10 +14121,7 @@ function makeDialogTable()
end

function getDialogPortrait()
if worldNPCDialogPortrait == nil or worldNPCDialogPortrait == 'NONE' then
return 'NOPORTLS'
end
if worldNPCDialogPortrait:sub(-1) == 'S' then
if worldNPCDialogPortrait ~= nil and worldNPCDialogPortrait:sub(-1) == 'S' then
for _, entry in ipairs(Infinity_GetFilesOfType("BMP")) do
if entry[1] == worldNPCDialogPortrait:sub(1, -2) .. 'M' then
return entry[1]
Expand Down Expand Up @@ -21759,8 +21756,13 @@ function updateJournalEntry(journalId, recvTime, stateType, chapter, timeStamp)
--NOTE this can be placed in a loop if there needs to be more than quest to an entry
--this would just mean entryToQuest returns a table that we iterate over
local questId = entryToQuest[journalId]
if questId == nil then
if questId == nil or stateType == const.ENTRY_TYPE_INFO then
--add loose entries into the looseEntries table so they still get displayed.
for _,entry in pairs(looseEntries) do
if entry.text == journalId then
return
end
end
local entry = buildEntry(journalId, recvTime, stateType, chapter, timeStamp)
table.insert(looseEntries,entry)

Expand Down Expand Up @@ -21831,12 +21833,6 @@ function updateJournalEntry(journalId, recvTime, stateType, chapter, timeStamp)
--sort the objectives.
table.sort(quest.objectives,compareByRecvTime)

if stateType == const.ENTRY_TYPE_INFO then
--add loose entries into the looseEntries table so they still get displayed.
local entry = buildEntry(journalId, recvTime, stateType, chapter, timeStamp)
table.insert(looseEntries,entry)
end

--update display data
buildQuestDisplay()
end
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The goal of this mod is to provide an unified and improved UI for Baldur's Gate

## Compatibility

For EE version 2.6, use the v4.4.3 version of this mod.
For EE version 2.6, use the v4.4.4 version of this mod.

For EE version 2.5, use the v4.3.2 version of this mod.

Expand Down

0 comments on commit 1999d65

Please sign in to comment.