lol just tried it with the example I made to post and it worked (wounder what i was doing when testing it =O )
thanks for the head up on the [key] => value thing I would never have figured out why it wasnt working lol, I changed it to:
but I get this error in chatPHP Code:
name = 'Farming',
author = 'Alpha_Utilities',
abilities = {
{ name = "Utility",
enable = true,
widget = { type = 'select',
values = { Farming = "Farming", Disenchant = "Disenchant", Mill = "Mill", Prospect = "Prospect" },
value = "Farming",
tooltip = "Select one!",
width = 80,
},
},
},
here is what I have so far: (THIS IS VERY W.I.P.)[21:29:07] <PQInterface Error> Config:Farming Ability:Utility Selection Table is required to contain atleast 2 options to be valid
[21:29:07] <PQInterface Error> Config:Disenchant Ability:Utility Selection Table is required to contain atleast 2 options to be valid
PS: how do you put something in a spoiler tag? =DPHP Code:
local config1 = {
name = 'Farming',
author = 'Alpha_Utilities',
abilities = {
{ name = "Utility",
enable = true,
widget = { type = 'select',
values = { Farming = "Farming", Disenchant = "Disenchant", Mill = "Mill", Prospect = "Prospect" },
value = "Farming",
tooltip = "Select one!",
width = 80,
},
},
},
hotkeys = {
{ name = "Force Target Tilled Soil", enable = true, hotkeys = {'la'}, },
{ name = "Till Soil",
enable = false,
hotkeys = { },
tooltip = "Use this if you dont have a Master Plow", },
{ name = "Destroy Targeted Plant",
enable = true,
hotkeys = {'ls', 'la'},
tooltip = "Requires Dented Shovel", },
},
}
local config2 = {
name = 'Disenchant',
author = 'Alpha_Utilities',
abilities = {
{ name = "Utility",
enable = true,
widget = { type = 'select',
values = { Farming = "Farming", Disenchant = "Disenchant", Mill = "Mill", Prospect = "Prospect" },
value = "Disenchant",
tooltip = "Select one!",
width = 80,
},
},
{ name = "TEST", newSection = true,
enable = true,
},
},
hotkeys = {
{ name = "pauses Disenchanting", enable = true, hotkeys = {'ls'}, },
},
}
if IsLeftShiftKeyDown() then
Alpha_Utilities_Farming = PQI:AddRotation(config1)
Alpha_Utilities_Disenchant = PQI:AddRotation(config2)
end
Tooltips for Abilities dont work too =( here is a example of what I was doing (again could be off in my coding =D)Abilities
The following parameters can be used when constructing an ability table entry, note that Name and enable are the only required fields every other field is optional
name (String) - Display Name for the ability
enable(boolean) - Default state of the ability
tooltip(String) - Tooltip for the ability
widget (table) - See below
newSection (boolean) - creates a new section between abilties (visually break up groups of abilities to make them easier to read when presenting the user with alot of ablities)
EDIT: also is there a way to color the word (Greens) green? =pPHP Code:
{ name = "J.C. Neck & Ring (Greens)",
enable = true,
tooltip = "Do you want to disenchant them?",
},
Last edited by paintpauller; 02-23-2013 at 12:04 AM.
is there a way to have a decimal in the NumBox Widget? I need to be extremely precise in this variable.
PHP Code:
{ name = "Overclock Speed", newSection = true,
enable = false,
tooltip = "Overclocking will cause Blizzard Error Messages!",
widget = { type = 'numBox',
value = (1.5),
min = (.5),
max = 3,
step = (.5),
tooltip = "Overclocking will cause Blizzard Error Messages!",
},
},
found a bug when scaling down the range of the Widget-NumBox, with a max of a low number the blue frame will extend past where intended.
here is the code if you want to reproduce the bug:
Edit: did some testing and its only noticeable when you start to use a max below 25, hope this helps.
PHP Code:
{ name = "Overclock Speed", newSection = true,
enable = false,
tooltip = "Overclocking will cause Blizzard Error Messages!",
widget = { type = 'numBox',
value = 1,
min = 1,
max = 5,
step = 1,
width = 50,
tooltip = "Overclocking will cause Blizzard Error Messages!",
},
},
Last edited by paintpauller; 02-23-2013 at 01:08 AM.
Fixed all those issues, 2.1.1 has just been uploaded to the wiki,
to use decimals just enter them as you would integers:
Note: there is a variable debugger you can activate in PQInterfaces options, useful if your curious what PQI is sending to its PQR variables, variable types are color coded: green = string, yellow = number, blue = booleanCode:widget = { type = 'numBox', value = 1.5, min = .5, max = 3, step = .5, tooltip = "Overclocking will cause Blizzard Error Messages!", },
Last edited by diesall; 02-23-2013 at 02:13 AM.
@ imdasandman : i need to know what data files you have loaded and rotations att he time of the error, excluding my data and profile files
@diesall Thanks for all the help and quick responses/updates!
is there any chance to getadded to hotkeys? that would be great if it wasn't to much of a hassle =DPHP Code:
newSection = true,
Hi, is it possible to make pqr simulate key press when abilities are returned true?