timedeltafix
This commit is contained in:
@@ -7,8 +7,8 @@ local TEXTBOX_Y = math.floor((Config.screen.height - TEXTBOX_H) / 2 - 8)
|
||||
local TEXTBOX_MAX_CHARS = 30
|
||||
local DISCUSSION_LINE_HEIGHT = 8
|
||||
local PADDING = 4
|
||||
local AUTO_SCROLL_DELAY = 12
|
||||
local AUTO_SCROLL_STEP = 1
|
||||
local AUTO_SCROLL_DELAY = 8
|
||||
local AUTO_SCROLL_STEP = 2
|
||||
|
||||
--- Draws the discussion window.
|
||||
--- @within DiscussionWindow
|
||||
@@ -61,7 +61,7 @@ function DiscussionWindow.update()
|
||||
|
||||
if max_scroll > 0 then
|
||||
if Context.discussion.auto_scroll then
|
||||
Context.discussion.scroll_timer = Context.discussion.scroll_timer + 1
|
||||
Context.discussion.scroll_timer = Context.discussion.scroll_timer + Context.dt60
|
||||
if Context.discussion.scroll_timer >= AUTO_SCROLL_DELAY then
|
||||
Context.discussion.scroll_timer = 0
|
||||
Context.discussion.scroll_y = Context.discussion.scroll_y + AUTO_SCROLL_STEP
|
||||
|
||||
Reference in New Issue
Block a user