30 lines
762 B
Plaintext
30 lines
762 B
Plaintext
function on_xml_read()
|
|
RegisterScriptCallback("on_xml_read", function(xml_file_name, xml_obj)
|
|
if xml_file_name == [[ui\map_spots_16.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 |