Skip to content

Commit 7a16d86

Browse files
committed
[Scroll] bug fix.
Noticed a small bug with [scroll] while checking on another issue.
1 parent 5d79b46 commit 7a16d86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/library/slog-text.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ function M:send(text, wrap_num, show_all)
286286
self.table_string = {}
287287
self.timer_pause = 0
288288
self.timer_print = 0
289+
self.scroll = 0
289290
self.command_modifer = ""
290291
self.current_character = 0
291292
self.sound_every_counter = 1
@@ -546,7 +547,6 @@ function M:setDefaults()
546547
love.graphics.setFont(self.default_font)
547548
self.current_print_speed = self.default_print_speed
548549
self.adjust_line_height = self.default_adjust_line_height
549-
self.scroll = 0
550550
-- Commands
551551
for k, v in pairs(self.effect_flags) do
552552
self.effect_flags[k] = false

example/main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Text.configure.add_text_sound(Audio.text.neue, 0.2)
136136
-- There are nicer ways to do this, but it works as an example.
137137
--[[-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------]]--
138138
example = {
139-
display_mode = 1,
139+
display_mode = 9,
140140
maxmodes = 9,
141141
long_text_block = require('longtext'),
142142
ex5_textboxsize = 64,

0 commit comments

Comments
 (0)