From becd8a7999afac59c6b010ae1add732fa5187e56 Mon Sep 17 00:00:00 2001 From: Simon Hirsig Date: Sat, 22 Sep 2018 10:44:15 +0200 Subject: [PATCH] Revert "post right click instead of double click for stack change" This reverts commit 0f7048787c61786c0b09e7dd9db9429c797dcc62. --- tabs/post/frame.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tabs/post/frame.lua b/tabs/post/frame.lua index c612ade..4ef040f 100644 --- a/tabs/post/frame.lua +++ b/tabs/post/frame.lua @@ -85,15 +85,17 @@ bid_listing:SetSelection(function(data) return data.record == get_bid_selection() or data.record.historical_value and get_bid_selection() and get_bid_selection().historical_value end) bid_listing:SetHandler('OnClick', function(table, row_data, column, button) - if button == 'RightButton' then - stack_size_slider:SetValue(row_data.record.stack_size) - elseif row_data.record == get_bid_selection() or row_data.record.historical_value and get_bid_selection() and get_bid_selection().historical_value then + if row_data.record == get_bid_selection() or row_data.record.historical_value and get_bid_selection() and get_bid_selection().historical_value then set_bid_selection() else set_bid_selection(row_data.record) end refresh = true end) +bid_listing:SetHandler('OnDoubleClick', function(table, row_data, column, button) + stack_size_slider:SetValue(row_data.record.stack_size) + refresh = true +end) buyout_listing = listing.new(frame.buyout_listing) buyout_listing:SetColInfo{ @@ -107,15 +109,17 @@ buyout_listing:SetSelection(function(data) return data.record == get_buyout_selection() or data.record.historical_value and get_buyout_selection() and get_buyout_selection().historical_value end) buyout_listing:SetHandler('OnClick', function(table, row_data, column, button) - if button == 'RightButton' then - stack_size_slider:SetValue(row_data.record.stack_size) - elseif row_data.record == get_buyout_selection() or row_data.record.historical_value and get_buyout_selection() and get_buyout_selection().historical_value then + if row_data.record == get_buyout_selection() or row_data.record.historical_value and get_buyout_selection() and get_buyout_selection().historical_value then set_buyout_selection() else set_buyout_selection(row_data.record) end refresh = true end) +buyout_listing:SetHandler('OnDoubleClick', function(table, row_data, column, button) + stack_size_slider:SetValue(row_data.record.stack_size) + refresh = true +end) do status_bar = gui.status_bar(frame)