Disable TypeNPC for now, kaetemi/ryzomclassic#154

ryzomclassic-develop
kaetemi 4 years ago
parent a51597cf0b
commit 91a44fd5b5

@ -405,9 +405,11 @@ local registerFeature = function ()
{Name="Aggro", Type="Number", Min="0", Max="120", DefaultValue="30", DefaultInBase=1,
Visible=function(this) return this:isGroupedAndLeader() or not this:isGrouped() and not this:isBotObject() end
},
{Name="TypeNPC", Type="Number", WidgetStyle="EnumDropDown", SecondRequestFunc=function(value) r2:updateType(true) end,
Enum= {}, Visible=true, DefaultValue="-1",
},
-- FIXME: https://github.com/kaetemi/ryzomclassic/issues/154
--{Name="TypeNPC", Type="Number", WidgetStyle="EnumDropDown", SecondRequestFunc=function(value) r2:updateType(true) end,
-- Enum= {}, Visible=true, DefaultValue="-1",
--},
--
--

@ -692,7 +692,8 @@ function npcPropertySheetDisplayerTable:onSelect(instance, isSelected)
r2:activeLogicEntityPropertySheetDisplayer():onSelect(instance, isSelected)
r2:initTypeUI(instance)
-- FIXME: https://github.com/kaetemi/ryzomclassic/issues/154
-- r2:initTypeUI(instance)
end
------------------------------------------------
@ -1262,7 +1263,8 @@ function r2:updateType(existingAction)
end
-- TypeNPC
r2:setNpcAttribute(selection.InstanceId, "TypeNPC", typeNPC)
-- FIXME: https://github.com/kaetemi/ryzomclassic/issues/154
-- r2:setNpcAttribute(selection.InstanceId, "TypeNPC", typeNPC)
-- RingAccess
r2:setNpcAttribute(selection.InstanceId, "RingAccess", typeElement.RingAccess)

Loading…
Cancel
Save