samples/07_advanced_rendering/03_render_target_viewports/app/main.rb
def export_game_state_demo
    state.export_game_state_button ||= new_button_prefab(460, 100, "click to export app state")
    tick_button_prefab(state.export_game_state_button) # calls method to output button
    if button_clicked? state.export_game_state_button # if the export button is clicked
      args.gtk.export! "Exported from clicking the export button in the tech demo." # the export occurs
    end
  end
# Exports the app's game state if the export button is clicked.
Exports the app's game state if the export button is clicked.
Exports the app ' s game state if the export button is clicked .
def export_game_state_demo
    state.export_game_state_button ||= new_button_prefab(460, 100, "click to export app state")
    tick_button_prefab(state.export_game_state_button) 
    if button_clicked? state.export_game_state_button 
      args.gtk.export! "Exported from clicking the export button in the tech demo." 
    end
  end
def export_game_state_demo state . export_game_state_button ||= new_button_prefab ( 460 , 100 , "click to export app state" ) tick_button_prefab ( state . export_game_state_button ) if button_clicked? state . export_game_state_button args . gtk . export! "Exported from clicking the export button in the tech demo." end end
Exports the app's game state if the export button is clicked.
Exports the app ' s game state if the export button is clicked .
# calls method to output button # if the export button is clicked # the export occurs