xboxscene.org forums

Author Topic: Userdefined Variable In Menu  (Read 62 times)

LarryX

  • Archived User
  • Newbie
  • *
  • Posts: 26
Userdefined Variable In Menu
« on: December 18, 2003, 03:08:00 PM »

I don't know what I'm doing wrong here.  Nothing shows up.  I have tested this with CGEntry and CGEntryValue, with and without Section definition, I've tried defining the variable in mxm.xml (main node) and menu.xml.  Please Help...:uhh:

QUOTE
<LayoutElement Type=”Text” Source=”CGEntryValue” Section="Menu" Key=”Test”>
     <TextColor>0xFFFFFFFF</TextColor>
     <Font>light</Font>
     <Pos L="100" T="280" W="144" H="40"/>
  </LayoutElement>


I've tried this before without success then I seen a previous post and tried again changing the syntax.

Thanks,
LarryX  
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Userdefined Variable In Menu
« Reply #1 on: December 18, 2003, 03:16:00 PM »

Hmmmm... assuming you have the item defined:

<ITEM>
<TEST>Something here</TEST>
</ITEM>

Where the <ITEM> represents the item node, it should work (without "Section")

With the section:

<ITEM>
<MENU>
<TEST>Something here</TEST>
</MENU>
</ITEM>
Logged

LarryX

  • Archived User
  • Newbie
  • *
  • Posts: 26
Userdefined Variable In Menu
« Reply #2 on: December 18, 2003, 04:25:00 PM »

I was going crazy.  I know this stuff isn't that hard to figure out.
So, finally I figured it out.  Initially I copied the text out of the skinningoverview.doc and pasted into skin_mxm.xml but the double quotes were formated different and didn't work.  It took me a while to see they looked different than every where else in the code.  Once I replaced the double quotes low and behold it worked.  Just as defined in skinningoverview.doc.


Thanks BJ

LarryX
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Userdefined Variable In Menu
« Reply #3 on: December 18, 2003, 11:47:00 PM »

Thats has happened so many times.  Word always converts double quotes to either opening to closing, refusing to accept straight ones.  So, bj, next time you update the doc, please do a replace for every weird quote to a normal quote.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Userdefined Variable In Menu
« Reply #4 on: December 19, 2003, 12:56:00 AM »

QUOTE (geniusalz @ Dec 19 2003, 03:40 AM)
Thats has happened so many times.  Word always converts double quotes to either opening to closing, refusing to accept straight ones.  So, bj, next time you update the doc, please do a replace for every weird quote to a normal quote.

Will do.... I have seen the problem before - didn't realize that the DOC file was the culprit (or more specifically, Word's insistance that it change my text)
Logged