Skip to content

Commit

Permalink
Interface: Greatly increase duration of on-screen messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrams committed Apr 13, 2021
1 parent 8c500d0 commit 4ce555a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/interface/interface.gui_script
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local input = require "main.framework.input_globals"
local fileman = require "main.file_manager"

local messageNode
local messageDuration = 5

local initial_buttons = { "open btn", "clear btn", "save btn", "quit btn", "load overlay btn", "toggle overlay btn" }
local main_buttons = { "clear btn", "save btn", "load overlay btn", "toggle overlay btn", "quit btn" }
Expand Down Expand Up @@ -60,7 +61,7 @@ local function display_message(text)
gui.cancel_animation(messageNode, "color")
gui.set_text(messageNode, text)
gui.set_color(messageNode, vmath.vector4(1))
gui.animate(messageNode, "color.w", 0, gui.EASING_INSINE, 1.5)
gui.animate(messageNode, "color.w", 0, gui.EASING_INSINE, messageDuration)
end

--######################################## On Message ########################################
Expand Down

0 comments on commit 4ce555a

Please sign in to comment.