Skip to content

Commit

Permalink
interface to show/hide gui. Returns previous state
Browse files Browse the repository at this point in the history
  • Loading branch information
Choumiko committed Oct 22, 2015
1 parent 36c5fce commit 9c3de7d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions remote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,22 @@ function interface.reset_player(player_name_or_index)
player_data.remote_viewer = nil
end

function interface.hide_expando(event)
if global.player_data[event.player_index].expandoed then
resmon.on_click.YARM_expando(event)
return true
end

return false
end

function interface.show_expando(event)
if not global.player_data[event.player_index].expandoed then
resmon.on_click.YARM_expando(event)
return false
end

return true
end

remote.add_interface("YARM", interface)

0 comments on commit 9c3de7d

Please sign in to comment.