Skip to content

Commit

Permalink
v3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
r-e-d committed Jul 18, 2018
1 parent 324f21e commit 5076de2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 45 deletions.
2 changes: 1 addition & 1 deletion LeUI-SoD/LeUI-SoD.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~LeUI-SoD/backup~
AUTHOR [email protected]~
VERSION ~3.5~
VERSION ~3.5.1~
LANGUAGE
~English~ ~en_US~ ~LeUI-SoD/lang/en_US/setup.tra~

Expand Down
26 changes: 4 additions & 22 deletions LeUI-SoD/copy/UI.menu
Original file line number Diff line number Diff line change
Expand Up @@ -22033,30 +22033,12 @@ function triggerChatboxScroll()
end

function chatboxScroll(top, height, contentHeight)
if(chatboxJumpToBottom and contentHeight > height) then
chatboxJumpToBottom = nil
return height-contentHeight
end
if(chatboxScrollToBottom == 0) then
--defer to default scrolling
return nil
end
if(contentHeight < height) then
--no scrolling required, content fits
if(chatboxScrollToBottom and contentHeight > height) then
chatboxScrollToBottom = nil
return nil
end
local dT = Infinity_GetClockTicks() - chatboxScrollTimeLast
chatboxScrollTimeLast = Infinity_GetClockTicks()
local newTop = (dT * -0.25) + top
if (newTop + contentHeight > height + 200) then
return (height - contentHeight + 200)
end
if(newTop + contentHeight < height) then
chatboxScrollToBottom = 0
return height - contentHeight
return height-contentHeight
end
return newTop
--defer to default
return nil
end
function displayOverflowResponses()
for k,v in pairs(dialogOverflowTable) do
Expand Down
26 changes: 4 additions & 22 deletions LeUI-SoD/copy/UI_25.menu
Original file line number Diff line number Diff line change
Expand Up @@ -22062,30 +22062,12 @@ function triggerChatboxScroll()
end

function chatboxScroll(top, height, contentHeight)
if(chatboxJumpToBottom and contentHeight > height) then
chatboxJumpToBottom = nil
return height-contentHeight
end
if(chatboxScrollToBottom == 0) then
--defer to default scrolling
return nil
end
if(contentHeight < height) then
--no scrolling required, content fits
if(chatboxScrollToBottom and contentHeight > height) then
chatboxScrollToBottom = nil
return nil
end
local dT = Infinity_GetClockTicks() - chatboxScrollTimeLast
chatboxScrollTimeLast = Infinity_GetClockTicks()
local newTop = (dT * -0.25) + top
if (newTop + contentHeight > height + 200) then
return (height - contentHeight + 200)
end
if(newTop + contentHeight < height) then
chatboxScrollToBottom = 0
return height - contentHeight
return height-contentHeight
end
return newTop
--defer to default
return nil
end
function displayOverflowResponses()
for k,v in pairs(dialogOverflowTable) do
Expand Down

0 comments on commit 5076de2

Please sign in to comment.