Added in an interface to the scale plugin.

This commit is contained in:
Adam Harrison 2021-06-14 20:33:15 -04:00
parent aed643893e
commit 2fc245eb69
1 changed files with 10 additions and 0 deletions

View File

@ -58,6 +58,9 @@ local function set_scale(scale)
core.redraw = true
end
local function get_scale()
return current_scale
end
local on_mouse_wheel = RootView.on_mouse_wheel
@ -98,3 +101,10 @@ keymap.add {
["ctrl+="] = "scale:increase",
}
return {
["set"] = set_scale,
["get"] = get_scale,
["increase"] = inc_scale,
["decrease"] = dec_scale,
["reset"] = res_scale
}