@ -14,52 +14,52 @@ r2.logicEntityAttributes = {
[ " ApplicableActions " ] = {
[ " ApplicableActions " ] = {
-- ["Activate"] = tostring(i18n.get( "uiR2EdActivate" ) :toUtf8() ),
-- ["Activate"] = tostring(i18n.get( "uiR2EdActivate" ) ),
-- ["Deactivate"] = tostring(i18n.get( "uiR2EdDeactivate" ) :toUtf8() ),
-- ["Deactivate"] = tostring(i18n.get( "uiR2EdDeactivate" ) ),
-- ["Wander"] = tostring(i18n.get( "uiR2EdWander" ) :toUtf8() ),
-- ["Wander"] = tostring(i18n.get( "uiR2EdWander" ) ),
-- ["Sit Down"] = tostring(i18n.get( "uiR2EdSitDown" ) :toUtf8() ),
-- ["Sit Down"] = tostring(i18n.get( "uiR2EdSitDown" ) ),
-- ["Stand Up"] = tostring(i18n.get( "uiR2EdStandUp" ) :toUtf8() ),
-- ["Stand Up"] = tostring(i18n.get( "uiR2EdStandUp" ) ),
-- ["Respawn"] = tostring(i18n.get( "uiR2EdRespawn" ) :toUtf8() ),
-- ["Respawn"] = tostring(i18n.get( "uiR2EdRespawn" ) ),
-- ["Kill"] = tostring(i18n.get( "uiR2EdKill" ) :toUtf8() ),
-- ["Kill"] = tostring(i18n.get( "uiR2EdKill" ) ),
-- ["begin activity sequence"] = tostring(i18n.get( "uiR2EdBeginActivitySequ" ) :toUtf8() ),
-- ["begin activity sequence"] = tostring(i18n.get( "uiR2EdBeginActivitySequ" ) ),
-- ["begin chat sequence"] = tostring(i18n.get( "uiR2EdBeginChatSequ" ))
-- ["begin chat sequence"] = tostring(i18n.get( "uiR2EdBeginChatSequ" ))
} ,
} ,
[ " Events " ] = {
[ " Events " ] = {
-- ["activation"] = tostring(i18n.get( "uiR2EdActivation" ) :toUtf8() ),
-- ["activation"] = tostring(i18n.get( "uiR2EdActivation" ) ),
-- ["desactivation"] = tostring(i18n.get( "uiR2EdDesactivation" ) :toUtf8() ),
-- ["desactivation"] = tostring(i18n.get( "uiR2EdDesactivation" ) ),
-- ["a member death"] = tostring(i18n.get( "uiR2EdAMemberDeath" ) :toUtf8() ),
-- ["a member death"] = tostring(i18n.get( "uiR2EdAMemberDeath" ) ),
-- ["member death"] = tostring(i18n.get( "uiR2EdMemberDeath" ) :toUtf8() ),
-- ["member death"] = tostring(i18n.get( "uiR2EdMemberDeath" ) ),
-- ["group death"] = tostring(i18n.get( "uiR2EdGroupDeath" ) :toUtf8() ),
-- ["group death"] = tostring(i18n.get( "uiR2EdGroupDeath" ) ),
-- ["head to wander zone"] = tostring(i18n.get( "uiR2EdHeadWanderZone" ) :toUtf8() ),
-- ["head to wander zone"] = tostring(i18n.get( "uiR2EdHeadWanderZone" ) ),
-- ["arrive at wander zone"] = tostring(i18n.get( "uiR2EdArriveWanderZone" ) :toUtf8() ),
-- ["arrive at wander zone"] = tostring(i18n.get( "uiR2EdArriveWanderZone" ) ),
-- ["head to camp"] = tostring(i18n.get( "uiR2EdHeadCamp" ) :toUtf8() ),
-- ["head to camp"] = tostring(i18n.get( "uiR2EdHeadCamp" ) ),
-- ["arrive at camp"] = tostring(i18n.get( "uiR2EdArriveCamp" ) :toUtf8() ),
-- ["arrive at camp"] = tostring(i18n.get( "uiR2EdArriveCamp" ) ),
-- ["death"] = tostring(i18n.get( "uiR2EdDeath" ) :toUtf8() ),
-- ["death"] = tostring(i18n.get( "uiR2EdDeath" ) ),
-- ["end of activity step"] = tostring(i18n.get( "uiR2EdEndActivityStep" ) :toUtf8() ),
-- ["end of activity step"] = tostring(i18n.get( "uiR2EdEndActivityStep" ) ),
-- ["begin of activity step"] = tostring(i18n.get( "uiR2EdBeginActivityStep" ) :toUtf8() ),
-- ["begin of activity step"] = tostring(i18n.get( "uiR2EdBeginActivityStep" ) ),
-- ["end of activity sequence"] = tostring(i18n.get( "uiR2EdEndActivitySequ" ) :toUtf8() ),
-- ["end of activity sequence"] = tostring(i18n.get( "uiR2EdEndActivitySequ" ) ),
-- ["begin of activity sequence"] = tostring(i18n.get( "uiR2EdBeginOfActivitySequ" ) :toUtf8() ),
-- ["begin of activity sequence"] = tostring(i18n.get( "uiR2EdBeginOfActivitySequ" ) ),
-- ["end of chat step"] = tostring(i18n.get( "uiR2EdEndChatStep" ) :toUtf8() ),
-- ["end of chat step"] = tostring(i18n.get( "uiR2EdEndChatStep" ) ),
-- ["end of chat sequence"] = tostring(i18n.get( "uiR2EdEndChatSequ" ) :toUtf8() ),
-- ["end of chat sequence"] = tostring(i18n.get( "uiR2EdEndChatSequ" ) ),
-- ["group death"] = tostring(i18n.get( "uiR2EdGroupDeath" ) :toUtf8() ),
-- ["group death"] = tostring(i18n.get( "uiR2EdGroupDeath" ) ),
} ,
} ,
[ " Conditions " ] = {
[ " Conditions " ] = {
-- ["is active"] = tostring(i18n.get( "uiR2EdIsActive" ) :toUtf8() ),
-- ["is active"] = tostring(i18n.get( "uiR2EdIsActive" ) ),
-- ["is inactive"] = tostring(i18n.get( "uiR2EdIsInactive" ) :toUtf8() ),
-- ["is inactive"] = tostring(i18n.get( "uiR2EdIsInactive" ) ),
-- ["is dead"] = tostring(i18n.get( "uiR2EdIsDead" ) :toUtf8() ),
-- ["is dead"] = tostring(i18n.get( "uiR2EdIsDead" ) ),
-- ["is alive"] = tostring(i18n.get( "uiR2EdIsAlive" ) :toUtf8() ),
-- ["is alive"] = tostring(i18n.get( "uiR2EdIsAlive" ) ),
-- ["is wandering"] = tostring(i18n.get( "uiR2EdIsWandering" ) :toUtf8() ),
-- ["is wandering"] = tostring(i18n.get( "uiR2EdIsWandering" ) ),
-- ["is sitting"] = tostring(i18n.get( "uiR2EdIsSitting" ) :toUtf8() ),
-- ["is sitting"] = tostring(i18n.get( "uiR2EdIsSitting" ) ),
-- ["is heading to wander zone"] = tostring(i18n.get( "uiR2EdIsHeadingWanderZone" ) :toUtf8() ),
-- ["is heading to wander zone"] = tostring(i18n.get( "uiR2EdIsHeadingWanderZone" ) ),
-- ["is heading to camp"] = tostring(i18n.get( "uiR2EdIsHeadingCamp" ) :toUtf8() ),
-- ["is heading to camp"] = tostring(i18n.get( "uiR2EdIsHeadingCamp" ) ),
-- ["is in activity sequence"] = tostring(i18n.get( "uiR2EdIsInActivitySequ" ) :toUtf8() ),
-- ["is in activity sequence"] = tostring(i18n.get( "uiR2EdIsInActivitySequ" ) ),
-- ["is in activity step"] = tostring(i18n.get( "uiR2EdIsInActivityStep" ) :toUtf8() ),
-- ["is in activity step"] = tostring(i18n.get( "uiR2EdIsInActivityStep" ) ),
-- ["is in chat sequence"] = tostring(i18n.get( "uiR2EdIsInChatSequ" ) :toUtf8() ),
-- ["is in chat sequence"] = tostring(i18n.get( "uiR2EdIsInChatSequ" ) ),
-- ["is in chat step"] = tostring(i18n.get( "uiR2EdIsInChatStep" ) :toUtf8() ),
-- ["is in chat step"] = tostring(i18n.get( "uiR2EdIsInChatStep" ) ),
} ,
} ,
}
}
@ -313,13 +313,13 @@ function r2:initWhichEntityMenu()
logicEntityMenu : reset ( )
logicEntityMenu : reset ( )
local name = i18n.get ( " uiR2EdBanditCamps " )
local name = i18n.get ( " uiR2EdBanditCamps " )
logicEntityMenu : addLine ( ucstring( name) , " lua " , " " , " BanditCampFeature " )
logicEntityMenu : addLine ( name, " lua " , " " , " BanditCampFeature " )
name = i18n.get ( " uiR2EdGroups " )
name = i18n.get ( " uiR2EdGroups " )
logicEntityMenu : addLine ( ucstring( name) , " lua " , " " , " NpcGrpFeature " )
logicEntityMenu : addLine ( name, " lua " , " " , " NpcGrpFeature " )
name = i18n.get ( " uiR2EdNPCs " )
name = i18n.get ( " uiR2EdNPCs " )
logicEntityMenu : addLine ( ucstring( name) , " lua " , " " , " Npc " )
logicEntityMenu : addLine ( name, " lua " , " " , " Npc " )
r2 : registerFeaturesMenu ( logicEntityMenu )
r2 : registerFeaturesMenu ( logicEntityMenu )
@ -345,7 +345,7 @@ function r2:initWhichEntityMenu()
addLine = false
addLine = false
end
end
if addLine then
if addLine then
subMenu : addLine ( ucstring( entity.Name) , " lua " , " r2:selectWhichEntity( " .. tostring ( i ) .. " , " .. tostring ( count ) .. " ) " , entity.InstanceId )
subMenu : addLine ( entity.Name, " lua " , " r2:selectWhichEntity( " .. tostring ( i ) .. " , " .. tostring ( count ) .. " ) " , entity.InstanceId )
count = count + 1
count = count + 1
end
end
end
end
@ -500,7 +500,7 @@ function r2:updateActionText(actionUI)
totalText = totalText .. " \n "
totalText = totalText .. " \n "
end
end
actionText : addTextChild ( ucstring( totalText) )
actionText : addTextChild ( totalText)
sep.active = true
sep.active = true
else
else
sep.active = false
sep.active = false
@ -575,7 +575,7 @@ function r2:updateReactionText(reactionUI)
end
end
end
end
reactionText : addTextChild ( ucstring( totalText) )
reactionText : addTextChild ( totalText)
sep.active = true
sep.active = true
else
else
@ -986,7 +986,7 @@ function r2:openRightMenu(isEntityOfLeftMenu, loadTable, selectLineFunction)
local openSequencesMenu = r2.openSequencesMenu [ action ]
local openSequencesMenu = r2.openSequencesMenu [ action ]
local actionName = r2.logicEntityAttributes [ loadTable ] [ action ]
local actionName = r2.logicEntityAttributes [ loadTable ] [ action ]
if actionName == nil then actionName = " ? " .. action .. " ? " end
if actionName == nil then actionName = " ? " .. action .. " ? " end
local actionText = ucstring( actionName)
local actionText = actionName
if openSequencesMenu ~= nil then
if openSequencesMenu ~= nil then
-- first line
-- first line
@ -1013,8 +1013,8 @@ function r2:openRightMenu(isEntityOfLeftMenu, loadTable, selectLineFunction)
if not openSequencesMenu.singleSubMenu then
if not openSequencesMenu.singleSubMenu then
--subMenu:addLine( ucstring( sequence.Name) , "", "", sequence.InstanceId)
--subMenu:addLine( sequence.Name, "", "", sequence.InstanceId)
subMenu : addLine ( ucstring( r2: getSequenceName ( sequence ) ) , " " , " " , sequence.InstanceId )
subMenu : addLine ( r2: getSequenceName ( sequence ) , " " , " " , sequence.InstanceId )
-- steps sub menu
-- steps sub menu
subMenu : addSubMenu ( s )
subMenu : addSubMenu ( s )
@ -1029,13 +1029,13 @@ function r2:openRightMenu(isEntityOfLeftMenu, loadTable, selectLineFunction)
for s = 0 , steps.Size - 1 do
for s = 0 , steps.Size - 1 do
local step = steps [ s ]
local step = steps [ s ]
local stepName = r2 : getElementName ( step )
local stepName = r2 : getElementName ( step )
stepsMenu : addLine ( ucstring( stepName) , " lua " ,
stepsMenu : addLine ( stepName, " lua " ,
selectLineFunction .. " (' " .. action .. " ',' " .. step.InstanceId .. " ') " , step.InstanceId )
selectLineFunction .. " (' " .. action .. " ',' " .. step.InstanceId .. " ') " , step.InstanceId )
count2 = count2 + 1
count2 = count2 + 1
end
end
else
else
--subMenu:addLine( ucstring( sequence.Name) , "lua",
--subMenu:addLine( sequence.Name, "lua",
subMenu : addLine ( ucstring( r2: getSequenceName ( sequence ) ) , " lua " ,
subMenu : addLine ( r2: getSequenceName ( sequence ) , " lua " ,
selectLineFunction .. " (' " .. action .. " ',' " .. sequence.InstanceId .. " ') " , sequence.InstanceId )
selectLineFunction .. " (' " .. action .. " ',' " .. sequence.InstanceId .. " ') " , sequence.InstanceId )
end
end
@ -1321,7 +1321,7 @@ function r2:buildActionTitle(actionUI, erase)
-- title
-- title
local title = actionUI : find ( " title " )
local title = actionUI : find ( " title " )
assert ( title )
assert ( title )
title. uc_hard text= part1 .. part2
title. text= part1 .. part2
end
end
function r2 : getActionName ( actionInst )
function r2 : getActionName ( actionInst )
@ -1621,15 +1621,15 @@ function r2:updateActionEditor()
local whichEventNameText = whichEventLabel : find ( " name_text " )
local whichEventNameText = whichEventLabel : find ( " name_text " )
assert ( whichEventNameText )
assert ( whichEventNameText )
text = r2 : getSelectedInstance ( ) . Name
text = r2 : getSelectedInstance ( ) . Name
whichEventNameText. uc_hard text = text
whichEventNameText. text = text
if actionInst ~= nil then
if actionInst ~= nil then
local index = r2 : searchElementIndex ( actionInst )
local index = r2 : searchElementIndex ( actionInst )
if index ~= nil then
if index ~= nil then
actionName. uc_hard text = tostring ( i18n.get ( " uiR2EdAction " ) ) .. " " .. index .. " : "
actionName. text = tostring ( i18n.get ( " uiR2EdAction " ) ) .. " " .. index .. " : "
else
else
actionName. uc_hard text = tostring ( i18n.get ( " uiR2EdAction " ) ) .. " : "
actionName. text = tostring ( i18n.get ( " uiR2EdAction " ) ) .. " : "
end
end
-- which event text
-- which event text
@ -1641,7 +1641,7 @@ function r2:updateActionEditor()
assert ( inst )
assert ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whichEventText. uc_hard text = text
whichEventText. text = text
local previousButtonPair = actionsList : getChild ( 0 )
local previousButtonPair = actionsList : getChild ( 0 )
-- ActionStep list
-- ActionStep list
@ -1659,7 +1659,7 @@ function r2:updateActionEditor()
local whichEntityText = whichEntityMenu : find ( " text " )
local whichEntityText = whichEntityMenu : find ( " text " )
assert ( whichEntityText )
assert ( whichEntityText )
text = r2 : getInstanceFromId ( tostring ( actionStepInst.Entity ) ) . Name
text = r2 : getInstanceFromId ( tostring ( actionStepInst.Entity ) ) . Name
whichEntityText. uc_hard text = text
whichEntityText. text = text
local whatActionMenu = previousButtonPair : find ( " right_menu " )
local whatActionMenu = previousButtonPair : find ( " right_menu " )
@ -1674,7 +1674,7 @@ function r2:updateActionEditor()
assert ( inst )
assert ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whatActionText. uc_hard text = text
whatActionText. text = text
previousButtonPair.Env . entityId = tostring ( actionStepInst.Entity )
previousButtonPair.Env . entityId = tostring ( actionStepInst.Entity )
previousButtonPair = newButtonPair
previousButtonPair = newButtonPair
@ -1696,7 +1696,7 @@ function r2:updateActionEditor()
local whichEntityText = whichEntityMenu : find ( " text " )
local whichEntityText = whichEntityMenu : find ( " text " )
assert ( whichEntityText )
assert ( whichEntityText )
text = r2 : getInstanceFromId ( tostring ( conditionInst.Entity ) ) . Name
text = r2 : getInstanceFromId ( tostring ( conditionInst.Entity ) ) . Name
whichEntityText. uc_hard text = text
whichEntityText. text = text
local whatConditionMenu = previousButtonPair : find ( " right_menu " )
local whatConditionMenu = previousButtonPair : find ( " right_menu " )
assert ( whatConditionMenu )
assert ( whatConditionMenu )
@ -1710,7 +1710,7 @@ function r2:updateActionEditor()
assert ( inst )
assert ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whatConditionText. uc_hard text = text
whatConditionText. text = text
previousButtonPair.Env . entityId = tostring ( conditionInst.Entity )
previousButtonPair.Env . entityId = tostring ( conditionInst.Entity )
previousButtonPair = newButtonPair
previousButtonPair = newButtonPair
@ -1718,9 +1718,9 @@ function r2:updateActionEditor()
else
else
local name = tostring ( i18n.get ( " uiR2EdAction " ) ) .. " : "
local name = tostring ( i18n.get ( " uiR2EdAction " ) ) .. " : "
actionName. uc_hard text = name
actionName. text = name
whichEventText. uc_hard text = " "
whichEventText. text = " "
end
end
end
end
@ -1834,12 +1834,12 @@ function r2:buildReactionTitle(reactionUI, erase)
local part3 = tostring ( i18n.get ( " uiR2EdEventTxtPreEvent " ) ) .. " ' " .. eventType .. " ' " .. tostring ( i18n.get ( " uiR2EdEventOf " ) ) .. " " .. whichEntity.Name
local part3 = tostring ( i18n.get ( " uiR2EdEventTxtPreEvent " ) ) .. " ' " .. eventType .. " ' " .. tostring ( i18n.get ( " uiR2EdEventOf " ) ) .. " " .. whichEntity.Name
-- title
-- title
title. uc_hard text= part1 .. part2 .. part3
title. text= part1 .. part2 .. part3
elseif erase == true then
elseif erase == true then
local eltsList = reactionUI.parent
local eltsList = reactionUI.parent
local indexReactionUI = eltsList : getElementIndex ( reactionUI ) - 1
local indexReactionUI = eltsList : getElementIndex ( reactionUI ) - 1
title. uc_hard text = tostring ( i18n.get ( " uiR2EdReaction " ) ) .. " " .. indexReactionUI .. " : "
title. text = tostring ( i18n.get ( " uiR2EdReaction " ) ) .. " " .. indexReactionUI .. " : "
end
end
end
end
@ -2091,7 +2091,7 @@ function r2:updateReactionEditor()
local whatActionText = whatActionLabel : find ( " name_text " )
local whatActionText = whatActionLabel : find ( " name_text " )
assert ( whatActionText )
assert ( whatActionText )
local text = " " .. r2 : getSelectedInstance ( ) . Name
local text = " " .. r2 : getSelectedInstance ( ) . Name
whatActionText. uc_hard text = text
whatActionText. text = text
local conditions = reactionEditor : find ( " conditions_list " )
local conditions = reactionEditor : find ( " conditions_list " )
assert ( conditions )
assert ( conditions )
@ -2119,9 +2119,9 @@ function r2:updateReactionEditor()
actions.active = false
actions.active = false
conditions.active = false
conditions.active = false
whatActionText. uc_hard text = " "
whatActionText. text = " "
whatTriggersText. uc_hard text = " "
whatTriggersText. text = " "
whichEventText. uc_hard text = " "
whichEventText. text = " "
if reactionEditor.Env . minimize ~= true then
if reactionEditor.Env . minimize ~= true then
reactionEditor.h = reactionEditor.h - 320
reactionEditor.h = reactionEditor.h - 320
@ -2162,7 +2162,7 @@ function r2:updateReactionEditor()
assert ( inst )
assert ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whatActionText. uc_hard text = text
whatActionText. text = text
-- "what triggers..." and "which event" buttons text
-- "what triggers..." and "which event" buttons text
local entityName = actionInst.ParentInstance . Parent.Name
local entityName = actionInst.ParentInstance . Parent.Name
@ -2175,9 +2175,9 @@ function r2:updateReactionEditor()
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whatTriggersText. uc_hard text = entityName
whatTriggersText. text = entityName
whichEventText. uc_hard text = text
whichEventText. text = text
menuPair.Env . entityId = actionInst.ParentInstance . Parent.InstanceId
menuPair.Env . entityId = actionInst.ParentInstance . Parent.InstanceId
@ -2200,7 +2200,7 @@ function r2:updateReactionEditor()
local whichEntityText = whichEntityMenu : find ( " text " )
local whichEntityText = whichEntityMenu : find ( " text " )
assert ( whichEntityText )
assert ( whichEntityText )
text = r2 : getInstanceFromId ( tostring ( actionStepInst.Entity ) ) . Name
text = r2 : getInstanceFromId ( tostring ( actionStepInst.Entity ) ) . Name
whichEntityText. uc_hard text = text
whichEntityText. text = text
local whatActionMenu = previousButtonPair : find ( " right_menu " )
local whatActionMenu = previousButtonPair : find ( " right_menu " )
assert ( whatActionMenu )
assert ( whatActionMenu )
@ -2215,7 +2215,7 @@ function r2:updateReactionEditor()
assert ( inst )
assert ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whatActionText. uc_hard text = text
whatActionText. text = text
previousButtonPair.Env . entityId = tostring ( actionStepInst.Entity )
previousButtonPair.Env . entityId = tostring ( actionStepInst.Entity )
previousButtonPair = newButtonPair
previousButtonPair = newButtonPair
@ -2239,7 +2239,7 @@ function r2:updateReactionEditor()
local whichEntityText = whichEntityMenu : find ( " text " )
local whichEntityText = whichEntityMenu : find ( " text " )
assert ( whichEntityText )
assert ( whichEntityText )
text = r2 : getInstanceFromId ( tostring ( conditionInst.Entity ) ) . Name
text = r2 : getInstanceFromId ( tostring ( conditionInst.Entity ) ) . Name
whichEntityText. uc_hard text = text
whichEntityText. text = text
local whatConditionMenu = previousButtonPair : find ( " right_menu " )
local whatConditionMenu = previousButtonPair : find ( " right_menu " )
assert ( whatConditionMenu )
assert ( whatConditionMenu )
@ -2252,14 +2252,14 @@ function r2:updateReactionEditor()
assert ( inst )
assert ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
text = text .. " : " .. r2 : getElementName ( inst )
end
end
whatConditionText. uc_hard text = text
whatConditionText. text = text
previousButtonPair.Env . entityId = tostring ( conditionInst.Entity )
previousButtonPair.Env . entityId = tostring ( conditionInst.Entity )
previousButtonPair = newButtonPair
previousButtonPair = newButtonPair
end
end
end
end
reactionName. uc_hard text = name
reactionName. text = name
end
end
---------------------------- new element --------------------------------------------------------------
---------------------------- new element --------------------------------------------------------------
@ -2408,7 +2408,7 @@ function r2:updateLogicEntityUI(instance)
r2 : updateReactionEditor ( )
r2 : updateReactionEditor ( )
end
end
logicEntityUI. uc_ title = tostring ( i18n.get ( " uiR2EDEventsTriggersEditor " ) ) .. r2 : getSelectedInstance ( ) . Name
logicEntityUI. title = tostring ( i18n.get ( " uiR2EDEventsTriggersEditor " ) ) .. r2 : getSelectedInstance ( ) . Name
end
end
----------------------------- CLOSE ACTION / REACTION EDITOR ------------------------------------
----------------------------- CLOSE ACTION / REACTION EDITOR ------------------------------------
@ -2485,7 +2485,7 @@ r2.logicEntityUIUpdated = false
-- local logicEntityWnd = getUI("ui:interface:r2ed_logic_entities")
-- local logicEntityWnd = getUI("ui:interface:r2ed_logic_entities")
-- assert(logicEntityWnd)
-- assert(logicEntityWnd)
-- logicEntityWnd. uc_ title = tostring(i18n.get("uiR2EDEventsTriggersEditor")) .. instance[attributeName]
-- logicEntityWnd. title = tostring(i18n.get("uiR2EDEventsTriggersEditor")) .. instance[attributeName]
-- end
-- end
--end
--end