_:n40770d0fee75413c816613b63a1eb28fxb26
<http://schema.org/text>
"\n\tGot it! This turned out to be tricky. Setting the string value caused a conflict between the mouseover code in the plugin versus the active() call in the menu. As you moved the mouse around, you'd get overlapping descriptions due to the difference in timing. The solution was to set the actual trait and let the menu code continue to set the string.\n\n\n\n\tI decided not to mess with the skills or attributes sub-title on the description. Can we remove that? The skill or attribute should be highlighted so people will know whether it's a skill or attribute description. Trust me, they'll know anyway. \n\n\n\tHere's the new mouseover function code:\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\n\n\nBegin Function { menuType, pathName, buttonId }\n\n\t; Safety check \n\tif ( menuType != 1027 )\n\t\treturn\n\tendif\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\t\tlet descr := tile_GetString \"%z\\_descript\", 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\t\tlet descr := tile_GetString \"%z\\_descript\", pathName, 1027\n\telse\n\t\tlet picture := \"Bla\"\n\t\tlet actorVal := -1\n\t\tlet descr := \"\"\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\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\t\ttile_SetString \"%z\\_descript|%z\", pathName, descr, 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\t\ttile_SetString \"%z\\_descript|%z\", pathName, descr, 1027\n\tendif\n\tsv_Destruct pathName, picture, descr\n\t\nEnd\n\n\n\n\tThis was a function that Kyoma wrote after he switched to the new syntax. I was hoping that he allowed for more than one parameter and indeed he did. I'll do a bit more tidying up and then will post a new plugin.\n\n"
<http://www.theassimilationlab.com/forums/topic/16625-northern-ui-compatibility/?page=3>