@ -510,143 +510,45 @@ function validate_percent(input)
end
end
function right_click_menu ()
function right_click_menu ()
return false
-- return false
-- menustring ="!Change Font|>Show Players|"..((show_self==1 and "+") or "").."Include Self|All Others|No Others|-|"
menustring =""
-- local member_count = 0
local member_count = 0
-- local member_names = {}
-- if full_group_data and full_group_data.members and char_data and char_data.name then
menustring ="!Change Font|-|Bring To Front|Send To Back|-|Reset Defaults"
-- for i,v in ipairs(full_group_data.members) do
result = WindowMenu (win,
-- if v.name ~= char_data.name then
WindowInfo (win, 14), -- x position
-- menustring = menustring..(((hidden_members[v.name] == nil) and "+") or "")..v.name.."|"
WindowInfo (win, 15), -- y position
-- member_count = member_count + 1
menustring) -- content
-- table.insert(member_names, v.name)
-- end
if result ~= "" then
-- end
numResult = tonumber(result)
-- end
if numResult == 1 then
-- menustring = menustring.."<|-|>Configure Colors|>Health|Main|Border|<|>Mana|Main|Border|<|>Moves|Main|Border|<|>Align|Evil|Good|<|<|>Show Info|"..((show_hp==1 and "+") or "").."Health|"..((show_mn==1 and "+") or "").."Mana|"..((show_mv==1 and "+") or "").."Moves|<|"..((flat_gauges==1 and "+") or "").."Use Flat Gauges|"..((overlay_numbers==1 and "+") or "").."Overlay Numbers|>HP Thresholds|>First|"..(((thresh1active == 1) and "+") or "").."Activate|Set Percent ("..thresh1percent.."%)|Set Color ("..RGBColourToName(thresh1color)..")|<|>Second|"..(((thresh2active == 1) and "+") or "").."Activate|Set Percent ("..thresh2percent.."%)|Set Color ("..RGBColourToName(thresh2color)..")|<|<|-|Bring To Front|Send To Back|-|Reset Defaults"
-- ColourNote("yellow", "", "You will no longer see HP info in the group monitor.")
-- else
-- ColourNote("yellow", "", "You will now see HP info in the group monitor.")
-- end
-- elseif numResult == member_count+14 then
-- -- show/hide MANA info
-- show_mn = (((show_mn == 0) and 1) or 0)
-- if (show_mn == 0) then
-- ColourNote("yellow", "", "You will no longer see MN info in the group monitor.")
-- else
-- ColourNote("yellow", "", "You will now see MN info in the group monitor.")
-- end
-- elseif numResult == member_count+15 then
-- -- show/hide MOVES info
-- show_mv = (((show_mv == 0) and 1) or 0)
-- if (show_mv == 0) then
-- ColourNote("yellow", "", "You will no longer see MV info in the group monitor.")
-- else
-- ColourNote("yellow", "", "You will now see MV info in the group monitor.")
-- end
-- elseif numResult == member_count+16 then
-- -- use flat/shaded gauges
-- flat_gauges = (((flat_gauges == 0) and 1) or 0)
-- elseif numResult == member_count+17 then
-- -- toggle overlay numbers on top of gauges
-- overlay_numbers = (((overlay_numbers == 0) and 1) or 0)
-- elseif numResult == member_count+18 then
-- thresh1active = (((thresh1active == 0) and 1) or 0)
-- elseif numResult == member_count+19 then
-- local perc = utils.inputbox( "I want the HP bars to change color when they drop below this percent...\n(enter a whole number between 1 and 100)", "Group Monitor HP Threshold #1", thresh1percent, nil, nil, {validate=validate_percent})
-- if perc then
-- if string.sub(perc, -1) == "%" then
-- perc = string.sub(perc, 1,-2)
-- end
-- thresh1percent = tonumber(perc)
-- end
-- elseif numResult == member_count+20 then
-- local newColor = PickColour (thresh1color)
-- if newcolor ~= -1 then
-- thresh1color = newColor
-- end
-- elseif numResult == member_count+21 then
-- thresh2active = (((thresh2active == 0) and 1) or 0)
-- elseif numResult == member_count+22 then
-- local perc = utils.inputbox( "I want the HP bars to change color when they drop below this percent...\n(enter a whole number between 1 and 100)", "Group Monitor HP Threshold #2", thresh2percent, nil, nil, {validate=validate_percent})