![]() |
Saying things with buttons: SOE broke it?
Anyone else having problems /saying things with buttons anymore?
It seems after a very recent (had to be within the last week) SOE changed... something. My button that is for a recipe parser used to work great. It now backfires badly, instead of saying the one line it should, it messes up badly. The code for the button: [code]<Button LocalText="Dump" LocalTooltip="Dump Data A" Location="228,64" Name="DumpButton" OnPress="say "{pr5}|rname@" ## Parent.Name.LocalText ## "{pr5}^line0{pr5}" say "{pr5}|rtext@" ## Parent.Desc.LocalText ## "{pr5}^line1{pr5}" say "{pr5}|rlevel@" ## Parent.FixedPage.LevelValue.LocalText ## "{pr5}^line2{pr5}" say "{pr5}|class@" ## Parent.FixedPage.KnowledgeValue.LocalText ## "{pr5}^line3{pr5}" say "{pr5}|tech@" ## Parent.FixedPage.TechniqueValue.LocalText ## "{pr5}^line4{pr5}" say "{pr5}|dev@" ## Parent.FixedPage.DeviceValue.LocalText ## "{pr5}^line5{pr5}" say "{pr5}|mcomp@" ## Parent.ComponentsPage.ComponentValue0.LocalText ## "{pr5}^line6{pr5}" say "{pr5}|comp1@" ## Parent.ComponentsPage.ComponentValue1.LocalText ## "{pr5}^line7{pr5}" say "{pr5}|comp2@" ## Parent.ComponentsPage.ComponentValue2.LocalText ## "{pr5}^line8{pr5}" say "{pr5}|comp3@" ## Parent.ComponentsPage.ComponentValue3.LocalText ## "{pr5}^line9{pr5}" say "{pr5}|comp4@" ## Parent.ComponentsPage.ComponentValue4.LocalText ## "{pr5}^linea{pr5}" say "{pr5}|fuel@" ## Parent.ComponentsPage.ComponentValue5.LocalText ## "{pr5}^lineb{pr5}" say "{pr5}|prod@" ## Parent.ProductPage.ProductValue.LocalText ## "{pr5}^linec{pr5}" say "{pr5}|bprod@" ## Parent.ProductPage.ByproductValue.LocalText ## "{pr5}^lined{pr5}"" PackLocation="right,top" PackLocationProp="-045/0001,0064/0001" ScrollExtent="42,20" Size="42,20" Style="/Fetish.ButtonStyles.text_button" Tooltip="Dump Data A" UserMovable="true"></Button>[/quote] The button is in the Examine_Recipe window. Instead of spitting out text like it should (which would be this): Quote:
Does this have something to do with SOE's localization efforts? And, does anyone know how to fix this and make it work again? |
"
This is the HTML Entity representation of a quotation mark. It's actually the SOE UI Builder that broke your code. Use a text editor to replace every instance of " with a " (quotation mark), and save it in your mods folder. Should (might?) fix what ails you. |
Yeah...
But I didn't use UIBuilder to add that. I did (however) find a fix. The problem seems to be that SOE changed how it uses things like " Before I used that so that it would say those strings, but the whole set of says were just one string (because it was all in " " it was a string, then when it went through it it turned the " s into the proper "s). To fix it, I replaced the outer quotes with single-quotes (which also work to delimit strings) and replaced every " with the doublequote character ("). Seems to be working fine so far. |
| All times are GMT -5. The time now is 09:05 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI