Thread: Weird LUA error
View Single Post
09-09-18, 06:14 PM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
You just need to move the bytes section to the end of the EditBox line. Just tested it. No errors. Of course theres no guarantee it does what it says though rofl. I've never used EditBox on my addons but the theory is sound.

Here is a revised version of that xml file if you want to replace its contents and get rid of the error. Or, if there is another way to report the error to the developers let them know and they should fix it.

Lua Code:
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\..\FrameXML\UI.xsd">
  3.  
  4.   <!-- Options panel Frame-->
  5.   <Frame name="ProfitOptionsPanel" hidden="false">
  6.    
  7.     <Layers>
  8.         <Layer level="ARTWORK">
  9.             <FontString name="$parentTitle" inherits="GameFontNormalLarge" text="Profit v3.0.1 - By Coomacheek" justifyH="LEFT" justifyV="TOP">
  10.                 <Anchors>
  11.                     <Anchor point="TOPLEFT">
  12.                         <Offset x="16" y="-16" />
  13.                     </Anchor>
  14.                 </Anchors>
  15.             </FontString>
  16.         </Layer>
  17.     </Layers>
  18.    
  19.     <!--Frames for the main Panel  -->
  20.     <Frames>
  21.       <Button name="$parentAlgorithms" inherits="UIDropDownMenuTemplate">
  22.         <Anchors>
  23.                 <Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOMRIGHT">
  24.                 <Offset>
  25.                         <AbsDimension x="0" y="-20"/>
  26.                     </Offset>
  27.                 </Anchor>
  28.             </Anchors>
  29.    
  30.         <Layers>
  31.                 <Layer level="ARTWORK">
  32.  
  33.                     <FontString name="$parentText" text="Auctioneer Pricing Algorithm" inherits="GameFontHighlight" justifyH="RIGHT">
  34.                     <Anchors>
  35.                                 <Anchor point="RIGHT" relativePoint="LEFT">
  36.                                 <Offset>
  37.                                         <AbsDimension x="0" y="6"/>
  38.                                 </Offset>
  39.                                 </Anchor>
  40.                         </Anchors>
  41.                     </FontString>
  42.                 </Layer>
  43.             </Layers>
  44.        
  45.         <Scripts>
  46.             <OnShow>
  47.                     UIDropDownMenu_Initialize(self, ProfitDropDownMenu_Initialize);
  48.             </OnShow>
  49.  
  50.         </Scripts>
  51.  
  52.     </Button>
  53.    
  54.     <CheckButton name="$parentStartupMsg" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  55.         <Anchors>
  56.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  57.                     <Offset>
  58.                         <AbsDimension x="10" y="-50"/>
  59.                     </Offset>
  60.                 </Anchor>
  61.             </Anchors>
  62.        
  63.         <Layers>
  64.                 <Layer level="ARTWORK">
  65.                     <FontString name="$parentText" text="Show Startup Messages" inherits="GameFontHighlight">
  66.                         <Anchors>
  67.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  68.                                 <Offset>
  69.                                         <AbsDimension x="0" y="6"/>
  70.                                 </Offset>
  71.                                 </Anchor>
  72.                         </Anchors>
  73.                     </FontString>
  74.                 </Layer>
  75.             </Layers>
  76.       </CheckButton>
  77.  
  78.     <CheckButton name="$parentAHListing" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  79.         <Anchors>
  80.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  81.                     <Offset>
  82.                         <AbsDimension x="10" y="-90"/>
  83.                     </Offset>
  84.                 </Anchor>
  85.             </Anchors>
  86.        
  87.         <Layers>
  88.                 <Layer level="ARTWORK">
  89.                     <FontString name="$parentText" text="Show per unit auction price next to the recipe name even if materials are unavailable for a given recipe." inherits="GameFontHighlight" justifyH="LEFT" maxLines="2">
  90.                          <Size>
  91.                             <AbsDimension x="400" y="20" />
  92.                         </Size>
  93.                         <Anchors>
  94.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  95.                                 <Offset>
  96.                                         <AbsDimension x="0" y="6"/>
  97.                                 </Offset>
  98.                                 </Anchor>
  99.                         </Anchors>
  100.                     </FontString>
  101.                 </Layer>
  102.             </Layers>
  103.       </CheckButton>
  104.  
  105.     <CheckButton name="$parentAHListingPerUnit" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  106.         <Anchors>
  107.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  108.                     <Offset>
  109.                         <AbsDimension x="10" y="-140"/>
  110.                     </Offset>
  111.                 </Anchor>
  112.             </Anchors>
  113.        
  114.         <Layers>
  115.                 <Layer level="ARTWORK">
  116.                     <FontString name="$parentText" text="When materials are available for a given recipe, always show per unit auction price rather than total stack price." inherits="GameFontHighlight" justifyH="LEFT" maxLines="2">
  117.                         <Size>
  118.                             <AbsDimension x="400" y="20" />
  119.                         </Size>
  120.                         <Anchors>
  121.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  122.                                 <Offset>
  123.                                         <AbsDimension x="0" y="6"/>
  124.                                 </Offset>
  125.                                 </Anchor>
  126.                         </Anchors>
  127.                     </FontString>
  128.                 </Layer>
  129.             </Layers>
  130.       </CheckButton>
  131.       <CheckButton name="$parentRoundValue" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  132.         <Anchors>
  133.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  134.                     <Offset>
  135.                         <AbsDimension x="10" y="-185"/>
  136.                     </Offset>
  137.                 </Anchor>
  138.             </Anchors>
  139.        
  140.         <Layers>
  141.                 <Layer level="ARTWORK">
  142.                     <FontString name="$parentText" text="Round all results to the nearest Gold." inherits="GameFontHighlight">
  143.                         <Anchors>
  144.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  145.                                 <Offset>
  146.                                         <AbsDimension x="0" y="6"/>
  147.                                 </Offset>
  148.                                 </Anchor>
  149.                         </Anchors>
  150.                     </FontString>
  151.                 </Layer>
  152.             </Layers>
  153.       </CheckButton>
  154.  
  155.  
  156.    
  157.       <CheckButton name="$parentFlagProfit" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  158.         <Anchors>
  159.           <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  160.             <Offset>
  161.               <AbsDimension x="10" y="-225"/>
  162.             </Offset>
  163.           </Anchor>
  164.         </Anchors>
  165.         <Layers>
  166.           <Layer level="ARTWORK">
  167.             <FontString name="$parentText" text="Only show price for items that result in potential profit:" inherits="GameFontHighlight">
  168.               <Anchors>
  169.                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  170.                   <Offset>
  171.                     <AbsDimension x="0" y="6"/>
  172.                   </Offset>
  173.                 </Anchor>
  174.               </Anchors>
  175.             </FontString>
  176.           </Layer>
  177.         </Layers>
  178.       </CheckButton>
  179.  
  180.       <EditBox name="$parentProfitLevel" autoFocus="false" inherits="InputBoxTemplate"  bytes="64">
  181.         <Size>
  182.           <AbsDimension x="50" y="5"/>
  183.         </Size>
  184.         <Anchors>
  185.           <Anchor point="TOPLEFT" relativeTo="$parentFlagProfit" relativePoint="BOTTOMLEFT">
  186.             <Offset>
  187.               <AbsDimension x="248" y="-5"/>
  188.             </Offset>
  189.           </Anchor>
  190.         </Anchors>
  191.         <Layers>
  192.           <Layer level="ARTWORK">
  193.             <FontString name="$parentText" text="Greater than (in gold):" inherits="GameFontHighlight">
  194.               <Anchors>
  195.                 <Anchor point="RIGHT" relativePoint="LEFT">
  196.                   <Offset>
  197.                     <AbsDimension x="-10" y="1"/>
  198.                   </Offset>
  199.                 </Anchor>
  200.               </Anchors>
  201.             </FontString>
  202.           </Layer>
  203.         </Layers>
  204.         <FontString inherits="ChatFontNormal"/>
  205.       </EditBox>
  206.  
  207.     <CheckButton name="$parentShowReagentValue" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  208.         <Anchors>
  209.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  210.                     <Offset>
  211.                         <AbsDimension x="10" y="-275"/>
  212.                     </Offset>
  213.                 </Anchor>
  214.             </Anchors>
  215.        
  216.         <Layers>
  217.                 <Layer level="ARTWORK">
  218.                     <FontString name="$parentText" text="Show price of reagents in the recipe details window." inherits="GameFontHighlight">
  219.                         <Anchors>
  220.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  221.                                 <Offset>
  222.                                         <AbsDimension x="0" y="6"/>
  223.                                 </Offset>
  224.                                 </Anchor>
  225.                         </Anchors>
  226.                     </FontString>
  227.                 </Layer>
  228.             </Layers>
  229.       </CheckButton>
  230.         <CheckButton name="$parentProfitMargin" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  231.         <Anchors>
  232.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  233.                     <Offset>
  234.                         <AbsDimension x="10" y="-310"/>
  235.                     </Offset>
  236.                 </Anchor>
  237.             </Anchors>
  238.        
  239.         <Layers>
  240.                 <Layer level="ARTWORK">
  241.                     <FontString name="$parentText" text="Show profit margin in recipe details window along with gold profit." inherits="GameFontHighlight" justifyH="LEFT" maxLines="2">
  242.                          <Size>
  243.                             <AbsDimension x="325" y="20" />
  244.                         </Size>
  245.                         <Anchors>
  246.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  247.                                 <Offset>
  248.                                         <AbsDimension x="0" y="6"/>
  249.                                 </Offset>
  250.                                 </Anchor>
  251.                         </Anchors>
  252.                     </FontString>
  253.                 </Layer>
  254.             </Layers>
  255.       </CheckButton>
  256.      
  257.       <CheckButton name="$parentShort" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  258.         <Anchors>
  259.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  260.                     <Offset>
  261.                         <AbsDimension x="10" y="-350"/>
  262.                     </Offset>
  263.                 </Anchor>
  264.             </Anchors>
  265.        
  266.         <Layers>
  267.                 <Layer level="ARTWORK">
  268.                     <FontString name="$parentText" text="Tidy up the tradeskill window by removing certain key words (separated by a comma) from the tradeskill name." inherits="GameFontHighlight" justifyH="LEFT" maxLines="3">
  269.                         <Size>
  270.                             <AbsDimension x="400" y="30" />
  271.                         </Size>
  272.                         <Anchors>
  273.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  274.                                 <Offset>
  275.                                         <AbsDimension x="0" y="6"/>
  276.                                 </Offset>
  277.                                 </Anchor>
  278.                         </Anchors>                 
  279.                     </FontString>
  280.                 </Layer>
  281.             </Layers>
  282.       </CheckButton>
  283.      
  284.       <EditBox name="$parentShortEditBox" autoFocus="false" inherits="InputBoxTemplate" bytes="128">
  285.         <Size>
  286.           <AbsDimension x="475" y="5"/>
  287.         </Size>
  288.         <Anchors>
  289.           <Anchor point="TOPLEFT" relativeTo="$parentShort" relativePoint="BOTTOMLEFT">
  290.             <Offset>
  291.               <AbsDimension x="50" y="-25"/>
  292.             </Offset>
  293.           </Anchor>
  294.         </Anchors>
  295.         <FontString inherits="ChatFontNormal"/>
  296.       </EditBox>
  297.      
  298.       <CheckButton name="$parentUsePlayerReagentCount" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  299.         <Anchors>
  300.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  301.                     <Offset>
  302.                         <AbsDimension x="10" y="-430"/>
  303.                     </Offset>
  304.                 </Anchor>
  305.             </Anchors>
  306.        
  307.         <Layers>
  308.                 <Layer level="ARTWORK">
  309.                     <FontString name="$parentText" text="Take into account current inventory when calculating total price for a recipe.  If unchecked, presumes all reagents will be purchased from vendor/auction house. " inherits="GameFontHighlight" justifyH="LEFT" maxLines="4">
  310.                         <Size>
  311.                             <AbsDimension x="330" y="40" />
  312.                         </Size>
  313.                         <Anchors>
  314.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  315.                                 <Offset>
  316.                                     <AbsDimension x="0" y="6"/>
  317.                                 </Offset>
  318.                                 </Anchor>
  319.                         </Anchors>                 
  320.                     </FontString>
  321.                 </Layer>
  322.             </Layers>
  323.       </CheckButton>
  324.       <CheckButton name="$parentDebugMode" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  325.             <Anchors>
  326.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  327.                     <Offset>
  328.                         <AbsDimension x="10" y="-500"/>
  329.                     </Offset>
  330.                 </Anchor>
  331.             </Anchors>
  332.        
  333.         <Layers>
  334.                 <Layer level="ARTWORK">
  335.                     <FontString name="$parentText" text="Enable debug mode." inherits="GameFontHighlight" justifyH="LEFT" maxLines="4">
  336.  
  337.                         <Anchors>
  338.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  339.                                 <Offset>
  340.                                     <AbsDimension x="0" y="6"/>
  341.                                 </Offset>
  342.                                 </Anchor>
  343.                         </Anchors>                 
  344.                     </FontString>
  345.                 </Layer>
  346.             </Layers>
  347.       </CheckButton>
  348.     </Frames>
  349.   </Frame>
  350. </Ui>
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote