From 86d24b069bac540ada60a063bf62c46e045261f8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 Dec 2019 11:50:31 +0100 Subject: osc: set an arbitrary high Z-order The main reason for this is just to make show the OSC always above console.lua, instead of a random order. (And this is also the only reason osc.lua was changed to the new API. The old API could have been extended, but lets not.) --- player/lua/osc.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index c7d155d0f0..17816dd507 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -137,6 +137,7 @@ function set_osd(res_x, res_y, text) state.osd.res_x = res_x state.osd.res_y = res_y state.osd.data = text + state.osd.z = 1000 state.osd:update() end -- cgit v1.2.3