_:n40770d0fee75413c816613b63a1eb28fxb38
<http://schema.org/text>
"\n\tI know what the mouseover script does, but I missed the part about you wanting the values written to the menu's root tile. Initially I tried setting the String trait as you indicated here and that didn't work at all. We need to make sure the code continues to work for those using a mouse. We also need to make sure we don't break the other UI's.\n\n\n\n\tIf you're using the keyboard or gamepad, what would trigger the mouseover function? The mouseover function is the event handler for the OnMouseover event. Is that a function of your DLL?\n\n\n\n\tIf user6 and user7 aren't used, then yes, it would be better to use those. I guess I'll have to use the canCreate boolean because user8 won't exist in the other UI's. I'll get complaints if I have Ob XP writing errors to the console.\n\n\n\n\tHere's the new script if you'd like to install the CSE and give it a try yourself:\n\n\n\nscn ObXPUILevelUpMouseoverFn\n\n; Parameters\nshort menuType\nstring_var pathName\nshort buttonId\n; Locals\nlong actorVal\nstring_var picture\nstring_var descr\nstring_var sName\n\nBegin Function { menuType, pathName, buttonId }\n\n\t; Safety check \n\tif ( menuType != 1027 )\n\t\treturn\n\tendif\n\n\tlet descr := tile_GetString \"%z\\_descript\", pathName, 1027\n\tlet sName := tile_GetString \"%z\\_name\", pathName, 1027\n\n\tif ( tile_HasTrait \"%z\\_smallpicture\", pathName, 1027 )\n\t\t; top-level template\n\t\tlet actorVal := tile_GetFloat \"%z\\_actorVal\", pathName, 1027\n\t\tlet picture := tile_GetString \"%z\\_smallpicture\", pathName, 1027\n\telseif ( buttonId == 100 || buttonId == 110 )\n\t\t; _plusImg or _minImg\n\t\tlet actorVal := tile_GetFloat \"%z\\...\\_actorVal\", pathName, 1027\n\t\tlet picture := tile_GetString \"%z\\...\\_smallpicture\", pathName, 1027\n\telse\n\t\tlet picture := \"Bla\"\n\t\tlet actorVal := -1\n\tendif\n\t\n\t; reset pictures\n\ttile_SetString \"levelup_background\\OXP_attributes\\OXP_attribute_picture\\filename|Bla\", 1027\n\ttile_SetString \"levelup_background\\OXP_skills\\OXP_skill_picture\\filename|Bla\", 1027\n\t\n\t; write current values to user traits for Northern UI\n\ttile_SetFloat \"\\user6\", 1027, actorVal\n\ttile_SetString \"\\user7|%z\", descr, 1027\n\ttile_SetString \"\\user8|%z\", sName, 1027, 1\n\n\tif ( actorVal &gt;= 0 &amp;&amp; actorVal &lt; 8 )\n\t\ttile_SetString \"levelup_background\\OXP_attributes\\OXP_attribute_picture\\filename|%z\", picture, 1027\n\telseif ( actorVal &gt;= 11 &amp;&amp; actorVal &lt; 33 )\n\t\ttile_SetString \"levelup_background\\OXP_skills\\OXP_skill_picture\\filename|%z\", picture, 1027\n\tendif\n\t\n\tsv_Destruct pathName, picture, descr, sName\nEnd\n\n\n\n\tI haven't tested that yet, so it may not work. I'm hoping that you'll only expect the user traits to have real values when the actor value isn't -1. And yes, the damned editors and other forum bits are all kinds of busted. This is IPS 4 and it sucks. We will be switching to other forum software, if I ever get time to finish my evaluations. \n"
<http://www.theassimilationlab.com/forums/topic/16625-northern-ui-compatibility/?page=3>