From 5e8444b2b104fc3175507aefe1b25dafb4ab97bd Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Sat, 20 Mar 2021 01:04:07 +0000 Subject: [PATCH] rename tooltip_alpha_step to tooltip_alpha_rate --- data/plugins/treeview.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 0e222525..5e16ce55 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -11,7 +11,7 @@ local tooltip_offset = style.font:get_height("A") local tooltip_border = 1 local tooltip_delay = 0.5 local tooltip_alpha = 255 -local tooltip_alpha_step = 1 +local tooltip_alpha_rate = 1 local function get_depth(filename) @@ -236,7 +236,7 @@ function TreeView:update() local duration = system.get_time() - self.tooltip.begin if self.hovered_item and self.tooltip.x and duration > tooltip_delay then - self:move_towards(self.tooltip, "alpha", tooltip_alpha, tooltip_alpha_step) + self:move_towards(self.tooltip, "alpha", tooltip_alpha, tooltip_alpha_rate) else self.tooltip.alpha = 0 end