From 346519204a99a4b2848d04c7254156c06d16dad8 Mon Sep 17 00:00:00 2001 From: Britt Yazel Date: Tue, 15 Jun 2021 16:34:58 -0700 Subject: [PATCH] cleanup the interface panel --- Localizations/Neuron_X-enUS.lua | 256 ++------------------------------ Neuron-GUI.lua | 114 +++----------- 2 files changed, 33 insertions(+), 337 deletions(-) diff --git a/Localizations/Neuron_X-enUS.lua b/Localizations/Neuron_X-enUS.lua index f36605f..86fe0da 100644 --- a/Localizations/Neuron_X-enUS.lua +++ b/Localizations/Neuron_X-enUS.lua @@ -151,16 +151,6 @@ L["How to use"] = true L["Command"] = true L["Option"] = true -L["Import"] = true -L["Export"] = true -L["Import or Export the current profile:"] = true -L["ImportExport_Desc"] = "Copying the profile can be a time consuming experience. It may stall your game for multiple seconds. WARNING: It will overwrite the current profile." -L["ImportWarning"] = "Are you absolutely certain you wish to import this profile? The current profile will be overwritten." -L["Decoding failed."] = true -L["Decompression failed."] = true -L["Data import Failed."] = true -L["Aborting."] = true - L["No bar selected or command invalid"] = true L["Custom_Option"] = "For custom states, add a desired state string (/neuron state custom ) where is a semicolon seperated list of state conditions" @@ -534,239 +524,25 @@ L["Copy and Paste the text below"] = true L["Pet Actions can not be added to Neuron bars at this time."] = true ------------------------------------------------------------- -----------------------FAQ Strings--------------------------- ------------------------------------------------------------- - -L["F.A.Q."] = true -L["Frequently Asked Questions"] = true -L["FAQ_Intro"] = [[ -Neuron F.A.Q: - -Below you will find answers to various questions that may arise as you use Neuron. Though please note that not all answers may be found here. - -For questions not answered here, please direct them here: -https://www.curseforge.com/wow/addons/neuron -or -http://www.wowinterface.com/downloads/info10636-IonActionBars.html - -Further, if you encounter any bugs or missing features, please direct all inquiries here: -https://github.com/brittyazel/Neuron/issues - -The source code can be found here: -https://github.com/brittyazel/Neuron - -Thank you again for using Neuron. - -]] - -L["Changelog"] = true - -L["Changelog_Latest_Version"] = [[ -Changelog: - -Neuron 0.9.11 Update Changes: - -Fully reworked the localization system to work within the CurseForge framework. We can now have crowdsourced language translations! -Fully rebuilt all localized strings to abide by the Ace3-Locale guidelines -As a side effect of the above change, we have fully rebuilt the /neuron functionality make better use of Ace3-Console and make this system more extensible - -]] - -L["Bar Configuration"] = true -L["Bar_Configuration_FAQ"] = [[ -Bar Editor Mode -To enter the Bar Editor, left click on the Neuron icon or type "/neuron config" into the chat window. You will know that the mode is enabled because any hidden bars (IE the Pet or Extra Action Bars) will be displayed and the bars will display a highlight & name on mouse over. - -To exit the Bar Editor Mode, left click the Neuron icon, enter the text line command, or hit the Escape key. Once you leave this mode, any bars set to hidden will disappear once again. - -Bar Configuration Menu -To open the Bar Configuration Menu, right click on any bar when the Bar Editor Mode is enabled. The first time the menu is opened it will be on the general options tab. If it is opened a second time after being closed, it will open to the last displayed tab. -]] - -L["General Options"] = true -L["General_Bar_Configuration_Option_FAQ"] = [[ -Bar Listing Section -To the far left of the menu there will be a section that lists all of the bars that have been created. Clicking on a name will select that bar and update the menu to display the options for the selected bar. - -Bar Name Field -To the right of the Bar Listing, there is a text field that displays the name of the currently selected bar in white. You can rename the bar by clicking in the text field and editing the text. To save any changes press the Enter button when finished. - -Bar Display Options -Under the Bar Name Field are the display options for the bar. These options allow you to change how the bar will be displayed. - -Auto Hide: When enabled, then the bar will automatically be hidden until you mouse over it again. -Show Grid: When enabled, empty grid boxes on a bar will be displayed. -Snap To: When enabled, repositioning a bar close to another bar will cause it to snap to so it will be centered with the other bar. -Up Clicks: When selected, actions will trigger when the bound key is released. -Down Clicks: When selected, actions will trigger when the bound key is pressed. -Multi Spec: When enabled, the bar will automatically swap when your character changes spec. -Hidden: When selected, the bar will be completely hidden. The only way to see the bar is to be in the edit mode. If a bar is set to be hidden, it will have a red tint to it when shown in the edit mode. -Lock Actions: When enabled, you will no longer be able to drag items from the bars. -Unlock on : When Lock Actions is enabled, these options will be shown. Selecting any of these options will allow you to drag items from locked bars when the corresponding key is held. -Enable Tooltips: When enabled, tooltips will be shown when you mouse over an item on the bar. -Enhanced: If tooltips are enabled, this option will be displayed. If selected, then enhanced tooltips will be shown if available. -Hide In Combat: If tooltips are enabled, this option will be displayed. If selected, then all tooltips will be hidden while a player is in combat. - -Bar Layout Options -To the left of the Bar Display Options is the Bar Layout options. These settings give you the ability to change the layout of the bars. - -Scale: This sets the scale of the bar. The default value is 1. Changing this to a smaller number will shrink the bar, while increasing the number will make the bar get larger. -Shape: Changes the button layout of the bar. -Columns: Will only be displayed when Linear is selected in the Shape selector. Default is Off. Increasing the count will divide the number of buttons on a bar into the entered number of columns. -Arc Start: Will only be displayed when one of the Circle options is selected in the Shape selector. Sets the current bar's starting arc location (in degrees). -Arc Length: Will only be displayed when one of the Circle options is selected in the Shape selector. Sets the current bar's arc length (in degrees). -Horizontal Padding: Sets the current bar's horizontal padding. -Vertical Padding: Sets the current bar's vertical padding. -H+V Pad: Adjust both horizontal and vertical padding of the current bar incrementally. -Strata: Changes the strata that the bar will be shown on. The lower the strata, then the more likely other items may get displayed over it. -Alpha: Changes the transparency of a bar. -Alpha up: Choosing one of these options will cause a bar's transparency setting to be temporarily disabled when the chosen action occurs. -A/U Speed: This is how fast a bar's transparency will change when the Alpha Up action occurs. -X Pos: Changes the current bar's horizontal axis position. -Y Pos: Changes tje current bar's vertical axis position - -Create Bar Button -At the bottom left of the option menu is the Create Bar Button. Use this button to add additional bars. Once selected, you will be prompted to choose what type of bar to create. After you have selected a type, the new bar will appear on screen and in the Bar Listing Section. Newly created bars will have a button count of 0. - -Button Count & Add/Remove Button Arrows -At the bottom center of the option menu is the current count of how many buttons the selected bar has. On either side are arrows that when clicked will increase or decrease the button count. - -Delete Current Bar -At the bottom left of the option menu is the Delete Current Bar Button. When pressed, you will be given a Yes/No choice to confirm the deletion of the currently selected bar. If you select Yes, the bar will be deleted and removed from the screen & listing. This option cannot be undone. -]] - - - -L["Bar States"] = true - -L["Bar_State_Configuration_FAQ"] = [[ -Bar States Selector -The Bar States options allows for custom states and visibility triggers to be added to a bar. A bar state is what items are currently shown on it. Adding additional states will allow you to automatically change what is displayed when a set state is triggered. The default state is called the home state. - -Preset Action States - -Paged: When this is selected you can set 6 different pages of buttons. The ability to switch between the pages is via the game's key binding settings. The settings are Next & Previous Action Bar found under the Action Bar section. -Stance: his option is only available if a character has different stances available. When selected, switching stances will change the displayed buttons. -Pet: When this is selected you can have the bar change whenever a character gains control of a pet. - -Custom Action States -Neuron allows you to create your own custom bar states. This is done by entering the desired state conditions, separated by a semicolon. If you enter an improperly formatted state, an error message will be displayed in the chat window. It is advised not to use any Preset Action States when using custom states. Custom Actions state can be formed by using the majority of the default game macro conditionals, with "no" being added to the front of the conditional to check for a false state. IE [nocombat] - -Example: [actionbar:1];[stance:1];[stance3,stealth];[mounted] - -Bar Visibility Toggles -These options allow you to customize when a bar should be displayed or hidden. If a selection has a green mark next to it, then the bar will be shown when that condition is met. By unselecting the option, the bar will be hidden if the condition is met. -]] - - - -L["Spell Target Options"] = true -L["Spell_Target_Options_FAQ"]= [[ -Spell Target Options -Spell target options allow you to automatically add certain cast modifiers to spells added to the bar. Only spells dragged to the bar from the spell book will have these modifiers added. A way to check to see if a spell will be affected is to look at the button using the macro editor. If the macro has "#autowrite" at the beginning, then it can use the targeting options. -Self-Cast by Modifier: When enabled, any spell cast while holding the selected modifier key will try to be cast on your character. Note the selected modifier for this setting is global and will be the same for every bar. Changing it on one bar will change it for all. - -Focus-Cast by modifier: When enabled, any spell cast while holding the selected modifier key will try to be cast on your character's focus target. Note the selected modifier for this setting is global and will be the same for every bar. Changing it on one bar will change it for all. - -Right-Click Self-cast: When enabled, any spell cast by right-clicking on the button will try to be cast on your character - -Mouse-Over Casting: When enabled, any spell cast while holding the selected modifier key will try to be cast on the mob that the mouse cursor is currently over. If the modifier for this option is set to "None" then it will always be on.]] - - -L["Flyout"] = true -L["Flyout_FAQ"] = [[ -Flyout Menus - -Neuron allows for the creation of flyout menus of spells, items or companions. It accomplishes this by adding a new macro command and building the menu based on several options. The following are the instructions on how to go about making a custom flyout menu via the Neuron Button Macro Editor: - -Format: /flyout ::::::: - - -Types: Use as many comma-delimited types as you want (ex: "spell, item") - -Keyword: Use as many comma-delimited keywords as you want (ex: "quest, potion, blah, blah, blah") - Use ! in front of a keyword to exclude anything containing that keyword (ex: "!hearthstone") - -Available Types & Keywords: Note: Special Keywords such as Any or Favorite need to start with a Capitol letter. - -item:id or partial name -Add an item by its item:id or all items in your bags or worn that contain the partial name. -Examples: item:1234, item:Bandage, item:Ore - -spell:id or partial name -Add a spell by its numerical id or all spells that contain the partial name. -Examples: spell:1234, spell:Shout, spell:Polymorph - -mount:"Flying", "Land", "Favorite", "FFlying", "FavLand" or partial name -Add all flying, land, favorite, favorite flying, favorite land mounts or mounts that contain the partial name. -Examples: mount:flying, mount:Raptor, mount:favflying - -companion:"Favorite", "Any" or partial name -Adds favorite pets, all pets or pet that contain the partial name. -Examples: companion:Crash, companion:favorite, companion:any - -type:ItemType -Add all items that contain the keyword in one of its type fields. See www.wowpedia.com/ItemType for a full list. -Examples: type:Quest, type:Food, type:Herb, type:Leather - -profession:"Primary", "Secondary", "Any" or partial name -Adds all primary professions, secondary professions or any professions. -Examples: profession:Primary, profession:Any, profession:Herb - -fun:"Favorite", "Any" or partial name -Adds favorite toys, all toys or toys that contain the partial name. -Examples: toy:Crash, toy:favorite, toy:any - - -Shapes: - linear - circular - -Flyout Anchor Point is going to be the anchor point on first button of the flyout and influences the direction it goes. IE if you set it "BOTTOM" then the flyout will be anchored on the bottom row and display the rest of the buttons in a upward direction. - -Macro Button Anchor Point is where the flyout will appear in relation to button the macro is in and determines what side of the macro the little flyout indicator arrow will be on if enabled. IE if you set it to RIGHT then the indicator will be on the right side and the flyout will be displayed to the right of the macro button. - -Points: - left - right - top - bottom - topleft - topright - bottomleft - bottomright - center - - -Colums/Radius: - Any number. For a Linear style this will be how many columns the flyout will have. For a Circular style, thiw will be how wide the circle will be. - -Click/Mouse: - click: Displays the flyout when the button is clicked. - mouse: Displays the flyout on mouse-over. - -Show/hide flyout arrow - show: Displays the flyout indicator arrow - hide: Hides the indicator arrow. - - -Examples - - -/flyout type:trinket:linear:right:left:6:click:show -This will show all trinkets in a 6 column flyout that displays on a button click - -/flyout mount:invincible, phoenix, !dark:circular:center:center:15:mouse:hide -This will display any mounts with invincible & phoenix in the title excluding mounts with the word dark +L["Profile"] = true +L["Import"] = true +L["Export"] = true +L["Import or Export the current profile:"] = true +L["ImportExport_Desc"] = "Copying the profile can be a time consuming experience. It may stall your game for multiple seconds. WARNING: It will overwrite the current profile." +L["ImportWarning"] = "Are you absolutely certain you wish to import this profile? The current profile will be overwritten." +L["Decoding failed."] = true +L["Decompression failed."] = true +L["Data import Failed."] = true +L["Aborting."] = true -/flyout companion:Favorite:linear:right:left:4:click:show -This will dislay any companions that are marked as favorite +L["Experimental"] = true +L["Experimental Options"] = true +L["Experimental_Options_Warning"] = [[ +Warning: -/flyout spell, item:heal:linear:right:left:4:click:show -This will show all items & spells that have "heal" in the name +Here you will fill find experimental and potential dangerous options. -Most options may be abbreviated - -/flyout i:bandage:c:c:c:15:c:h is the same as /flyout item:bandage:circular:center:center:15:click:hide +Use at your own risk. ]] \ No newline at end of file diff --git a/Neuron-GUI.lua b/Neuron-GUI.lua index a3d366c..bc1cfc9 100644 --- a/Neuron-GUI.lua +++ b/Neuron-GUI.lua @@ -3875,116 +3875,36 @@ NeuronGUI.interfaceOptions = { }, }, - importexport={ - name = L["Import"].."/"..L["Export"], - type = "group", - order = 1, - args={ - TextBox = { - order = 1, - name = L["Import or Export the current profile:"], - desc = L["ImportExport_Desc"], - type = "input", - multiline = 30, - confirm = function() return L["ImportWarning"] end, - validate = false, - set = function(self, input) Neuron:SetSerializedAndCompressedProfile(input) end, - get = function() return Neuron:GetSerializedAndCompressedProfile() end, - width = "full", - }, - }, - }, - - changelog = { - name = L["Changelog"], - type = "group", - order = 1000, - args = { - line1 = { - type = "description", - name = L["Changelog_Latest_Version"], - }, - }, - }, - - faq = { - name = L["F.A.Q."], - desc = L["Frequently Asked Questions"], + experimental = { + name = L["Experimental"], + desc = L["Experimental Options"], type = "group", order = 1001, args = { - line1 = { type = "description", - name = L["FAQ_Intro"], + name = L["Experimental_Options_Warning"] }, - g1 = { + importexport={ + name = L["Profile"].." "..L["Import"].."/"..L["Export"], type = "group", - name = L["Bar Configuration"], order = 1, - args = { - - line1 = { - type = "description", - name = L["Bar_Configuration_FAQ"], - order = 1, - }, - - g1 = { - type = "group", - name = L["General Options"], - order = 1, - args = { - line1 = { - type = "description", - name = L["General_Bar_Configuration_Option_FAQ"] , - order = 1, - }, - }, - }, - - g2 = { - type = "group", - name = L["Bar States"], - order = 2, - args = { - line1 = { - type = "description", - name = L["Bar_State_Configuration_FAQ"], - order = 1, - }, - }, - }, - - g3 = { - type = "group", - name = L["Spell Target Options"], - order = 3, - args = { - line1 = { - type = "description", - name = L["Spell_Target_Options_FAQ"], - order = 1, - }, - }, - }, - }, - }, - - g2 = { - type = "group", - name = L["Flyout"], - order = 3, - args = { - line1a = { - type = "description", - name = L["Flyout_FAQ"], + args={ + TextBox = { order = 1, + name = L["Import or Export the current profile:"], + desc = L["ImportExport_Desc"], + type = "input", + multiline = 30, + confirm = function() return L["ImportWarning"] end, + validate = false, + set = function(self, input) Neuron:SetSerializedAndCompressedProfile(input) end, + get = function() return Neuron:GetSerializedAndCompressedProfile() end, + width = "full", }, }, }, - }, }, },