diff options
| author | jj | 2012-09-20 19:57:43 +0200 |
|---|---|---|
| committer | jj | 2012-09-20 19:57:43 +0200 |
| commit | b115edcf68c69deb432915a6fbcd21ff6345bfe0 (patch) | |
| tree | 7ec9de5892948ab01ceaf863d2b774503d5a8c42 /plugins | |
| parent | e154d5447b08354f787ebc1ce4cf087b7c998384 (diff) | |
| download | dfhack-b115edcf68c69deb432915a6fbcd21ff6345bfe0.tar.gz dfhack-b115edcf68c69deb432915a6fbcd21ff6345bfe0.tar.bz2 dfhack-b115edcf68c69deb432915a6fbcd21ff6345bfe0.tar.xz | |
ruby: return selected zone in building_find
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/ruby/building.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index 4896aed4..68229c00 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -8,6 +8,8 @@ module DFHack k.building if k.type == :Building when :BuildingItems, :QueryBuilding world.selected_building + when :Zones, :ZonesPenInfo, :ZonesPitInfo, :ZonesHospitalInfo + ui_sidebar_menus.zone.selected end elsif what.kind_of?(Integer) |
