î Òfunction init(self) msg.post(".", "acquire_input_focus") gui.set_alpha(gui.get_node("button_level1_highlight"), 0) gui.set_alpha(gui.get_node("button_scoreboard_highlight"), 0) end function on_input(self, action_id, action) if action_id == hash("touch") and action.pressed then if gui.pick_node(gui.get_node("button_level1"), action.x, action.y) then msg.post("main:/controller#main", "show level1 screen") elseif gui.pick_node(gui.get_node("button_scoreboard"), action.x, action.y) then msg.post("main:/controller#main", "show scoreboard screen") end elseif action_id == nil then if gui.pick_node(gui.get_node("button_level1"), action.x, action.y) then gui.set_alpha(gui.get_node("button_level1_highlight"), 1) else gui.set_alpha(gui.get_node("button_level1_highlight"), 0) end if gui.pick_node(gui.get_node("button_scoreboard"), action.x, action.y) then gui.set_alpha(gui.get_node("button_scoreboard_highlight"), 1) else gui.set_alpha(gui.get_node("button_scoreboard_highlight"), 0) end end end @main/button.gui_script"