Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
add instructions for import/export and other small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Jun 16, 2021
1 parent 86a5360 commit 10fe00e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 8 deletions.
20 changes: 18 additions & 2 deletions Localizations/Neuron_X-enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,21 @@ 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["ImportExport_Desc"] = [[
Below you will find a text representation of your Neuron profile.
To export this profile, select and copy all of the text below and paste it somewhere safe.
To import a profile, replace all of the text below with the text from a previously exported profile.
]]
L["ImportExport_WarningDesc"] = [[
Copying and pasting profile data can be a time consuming experience. It may stall your game for multiple seconds.
WARNING: This will overwrite the current profile, and any changes you have made will be lost.
]]
L["ImportWarning"] = "Are you absolutely certain you wish to import this profile? The current profile will be overwritten."
L["No data to import."] = true
L["Decoding failed."] = true
Expand All @@ -541,9 +555,11 @@ L["Aborting."] = true
L["Experimental"] = true
L["Experimental Options"] = true
L["Experimental_Options_Warning"] = [[
Warning:
Here you will fill find experimental and potential dangerous options.
Here you will fill find experimental and potentially dangerous options.
Use at your own risk.
]]
34 changes: 28 additions & 6 deletions Neuron-GUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3881,22 +3881,44 @@ NeuronGUI.interfaceOptions = {
type = "group",
order = 1001,
args = {
line1 = {
type = "description",
name = L["Experimental_Options_Warning"]

Header = {
order = 1,
name = L["Experimental Options"],
type = "header",
},

Warning = {
order = 2,
type = "description",
name = DIM_RED_FONT_COLOR:WrapTextInColorCode(L["Experimental_Options_Warning"]),
fontSize = "large",
},
importexport={
name = L["Profile"].." "..L["Import"].."/"..L["Export"],
type = "group",
order = 1,
args={
TextBox = {

Header = {
order = 1,
name = L["Profile"].." "..L["Import"].."/"..L["Export"],
type = "header",
},

Instructions = {
order = 2,
name = L["ImportExport_Desc"],
type = "description",
fontSize = "medium",
},

TextBox = {
order = 3,
name = L["Import or Export the current profile:"],
desc = L["ImportExport_Desc"],
desc = DIM_RED_FONT_COLOR:WrapTextInColorCode(L["ImportExport_WarningDesc"]),
type = "input",
multiline = 30,
multiline = 22,
confirm = function() return L["ImportWarning"] end,
validate = false,
set = function(self, input) Neuron:SetSerializedAndCompressedProfile(input) end,
Expand Down

0 comments on commit 10fe00e

Please sign in to comment.