
function meu:define_ui()
	local ref = self.ref
	local ui = self.ui
	local bu
	local ix = 1
	local iy = 1
	local SY = 1
	local DY = .5
	local SYM = SY * .8

	iy = iy + DY
	self:add_slider(	{ix,iy,	8,SY},			"Flatland_offset_X", 			aaa.ref.draw_focus_offset_x	):set_min_max( 0, 4000 )
	iy = iy + SY + DY

	ix, iy = 9, 1
	iy = self:add_exploitation_start_stop(	{ix,iy,	8,SY}, true, false )

	self:add_ui_exploitation_window(	{ix,iy,	8,5 })
	iy = iy + 5

end

function meu:init()
	local ref = self.ref
--	local bdd = self:get_layer_bdd(1)
--	ref.temp	= param.get_ref( bdd, "received_number_last" )
	self.s_fullscreen_needed = 0
end

function meu:update_ui()
	self:update_ui_exploitation_start_stop()
end

function meu:update()
	local b_onsite = not aaa.pc.is_maa()
	if b_onsite or self.b_onsite_force then
		-- full screen
		if self.s_fullscreen_needed==0 then
			ga:force_fullscreen( "right" )
			self.s_fullscreen_needed = 1
		elseif self.s_fullscreen_needed==1 then
			ga:force_fullscreen( "all" )
			self.s_fullscreen_needed = 2
		end

		self:update_exploitation_start_stop( true, true )
	end

	self:update_exploitation_window()

end