Skip to main content
Skip to main content

MainScreen

MainScreen

Description

Main Menu Screen.

Parent

ScreenElement

Functions

inputEvent

Description

Definition

inputEvent()

Arguments

anyaction
anyvalue
anyeventUsed

Code

function MainScreen:inputEvent(action, value, eventUsed)
eventUsed = MainScreen:superClass().inputEvent( self , action, value, eventUsed)

if Platform.isAndroid then
if action = = InputAction.MENU_BACK then
local text = g_i18n:getText( InGameMenu.L10N_SYMBOL.END_GAME)
YesNoDialog.show( self.onYesNoEnd, self , text)

-- always consume event to avoid triggering any other focused elements
eventUsed = true
end
end

return eventUsed
end