Mercurial > wow > ouroloot
comparison gui.lua @ 145:e4bfe7a8b1c9
Fix slider stepping during history preen dialog.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Tue, 30 Dec 2014 17:45:06 -0500 |
parents | 375059a11c1d |
children | 113dd7c86222 |
comparison
equal
deleted
inserted
replaced
144:d7ece3ba6505 | 145:e4bfe7a8b1c9 |
---|---|
1975 end | 1975 end |
1976 end) | 1976 end) |
1977 specials:AddChild(b) | 1977 specials:AddChild(b) |
1978 | 1978 |
1979 b = mkbutton('hist_clear_all', "Clear All History", | 1979 b = mkbutton('hist_clear_all', "Clear All History", |
1980 [[|cffff1010Erases absolutely all> history entries from ALL realms.]]) | 1980 [[|cffff1010Erases absolutely all> history entries from |cffff1010ALL> realms.]]) |
1981 b:SetFullWidth(true) | 1981 b:SetFullWidth(true) |
1982 b:SetCallback("OnClick", function (_b) | 1982 b:SetCallback("OnClick", function (_b) |
1983 local dialog = StaticPopup_Show("OUROL_HIST_CLEAR", "ALL realms") | 1983 local dialog = StaticPopup_Show("OUROL_HIST_CLEAR", "ALL realms") |
1984 dialog.data = addon | 1984 dialog.data = addon |
1985 dialog.data2 = function(_addon) | 1985 dialog.data2 = function(_addon) |
2509 StaticPopup_Resize (dialog, "OUROL_HIST_PREEN") | 2509 StaticPopup_Resize (dialog, "OUROL_HIST_PREEN") |
2510 end | 2510 end |
2511 slider:SetOrientation('HORIZONTAL') | 2511 slider:SetOrientation('HORIZONTAL') |
2512 slider:SetMinMaxValues(1,30) | 2512 slider:SetMinMaxValues(1,30) |
2513 slider:SetValueStep(1) | 2513 slider:SetValueStep(1) |
2514 slider:SetObeyStepOnDrag(true) | |
2514 slider.low:SetText("1") | 2515 slider.low:SetText("1") |
2515 slider.high:SetText("30") | 2516 slider.high:SetText("30") |
2516 --slider.tooltipText = ??? | 2517 --slider.tooltipText = ??? |
2517 slider:SetParent(dialog.extraFrame) | 2518 slider:SetParent(dialog.extraFrame) |
2518 slider:ClearAllPoints() | 2519 slider:ClearAllPoints() |