1
Scripting / Re: PopUp.nut displaying image behind background
« on: January 02, 2024, 07:33:17 PM »
this will set custom1 to use as a pop up for the pic..
Code: [Select]
local image_hud = fe.add_image ("images/hud.png", 250, 200, 1395, 683);
image_hud.visible = false;
function on_transition (ttime){
(fe.get_input_state ("custom1") ) ? image_hud.visible = true : image_hud.visible = false;
}
fe.add_ticks_callback ("on_transition");