Skip to content

Commit

Permalink
#704 More Variable Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyLuke committed Oct 14, 2020
1 parent 0fde8da commit 8faac01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
10 changes: 0 additions & 10 deletions GSE_GUI/Editor.lua
Expand Up @@ -1226,16 +1226,6 @@ function GSE:GUIDrawVariableEditor(container)

if GSE.isEmpty(editframe.Sequence.Variables) then
editframe.Sequence.Variables = {}
else
for key, value in pairs(editframe.Sequence.Variables) do
if GSE.isEmpty(editframe.tempVariables) then
editframe.tempVariables = {}
end
local pair = {}
pair.key = key
pair.value = value
table.insert(editframe.tempVariables, pair)
end
end
if not GSE.isEmpty(editframe.tempVariables) then
local variables = {}
Expand Down
7 changes: 7 additions & 0 deletions GSE_GUI/GUIFunctions.lua
Expand Up @@ -86,6 +86,13 @@ function GSE.GUILoadEditor(key, incomingframe, recordedstring)
GSE.GUIEditFrame.Scenario = sequence.Scenario or sequence.Default
GSE.GUIEditorPerformLayout(GSE.GUIEditFrame)
GSE.GUIEditFrame.ContentContainer:SelectTab("config")
GSE.GUIEditFrame.tempVariables = {}
for key, value in pairs(sequence.Variables) do
local pair = {}
pair.key = key
pair.value = value
table.insert(GSE.GUIEditFrame.tempVariables, pair)
end
incomingframe:Hide()
if sequence.ReadOnly then
GSE.GUIEditFrame.SaveButton:SetDisabled(true)
Expand Down

0 comments on commit 8faac01

Please sign in to comment.