Divergent/mods/Enhanced Graphical User Int.../gamedata/scripts/modxml_INC_QuestArrow_219.s...

30 lines
763 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
function on_xml_read()
RegisterScriptCallback("on_xml_read", function(xml_file_name, xml_obj)
if xml_file_name == [[ui\map_spots_219.xml]]
then
local res = xml_obj:query("quest_pointer > texture")
if res[1] then
local el = res[1]
xml_obj:setText(el, "QuestArrowIcon_S")
end
local res = xml_obj:query("quest_pointer2 > texture")
if res[1] then
local el = res[1]
xml_obj:setText(el, "QuestArrowIcon_P")
end
local res = xml_obj:query("quest_pointer_small > texture")
if res[1] then
local el = res[1]
xml_obj:setText(el, "QuestArrowIcon_S")
end
local res = xml_obj:query("combat_pointer > texture")
if res[1] then
local el = res[1]
xml_obj:setText(el, "QuestArrowIcon_S")
end
end
end)
end