xboxscene.org forums

Author Topic: Edit Boxes Not Updateing Value?  (Read 148 times)

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Edit Boxes Not Updateing Value?
« on: February 26, 2004, 12:30:00 AM »

Was Playing around with the simple namechanger scripts and it seems that getting .value xml part from an edit box of a dialog in the new version dosn't get the updated text but still the old one.   I tried this on both my IP and Name Changer scripts and the values were the same as before edited I even tried to convert it to the new XML pathing stuff in the latest release and still the same.

Of course it could be I dont know what I'm doing but hey I'll ask anyway

HELP
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Edit Boxes Not Updateing Value?
« Reply #1 on: February 26, 2004, 12:41:00 AM »

Ahh never mind figured it out the Dialog XML actually has to have the <value></Value> bit in it in the new wip the old ones didn't matter
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Edit Boxes Not Updateing Value?
« Reply #2 on: February 26, 2004, 02:15:00 AM »

Strange. I don't quite understand what the exact issue is here, though.
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Edit Boxes Not Updateing Value?
« Reply #3 on: February 26, 2004, 11:33:00 AM »

Its not really an issue just slackness on my part but I'll spell it out for you

In the old wips if you had this

Dialog.XML

 <Control Type="editboxsingle" CtrlID="106">
   <rect t="160" l="10" b="185" r="390" />
 </Control>

and then in you script lines like

 XMLSetValue testdialog !.Control:1.Value "%kbInput%"
..
..
..
 XMLGetValue testdialog kbInput !.Control:1.Value

It would work OK but in the new wips for that to work you need to actually have the dialog xml like this

 <Control Type="editboxsingle" CtrlID="106">
   <rect t="160" l="10" b="185" r="390" />
   <Value></Value>
 </Control>


I guess its not creating/updateing the value like it used to if the mxl tag didn't exist

Hope you understand that
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Edit Boxes Not Updateing Value?
« Reply #4 on: February 26, 2004, 11:49:00 AM »

That's why I do this just incase for any control I use. I add these for them all.

<Selected></Selected>
<Value></Value>
<Enable></Enable>
<Visible></Visible>
<Text></Text>
<Color></Color>
<BackColor></BackColor>
<BorderColor></BorderColor>
<Group></Group>

That way I'm sure all the nodes are there when I try to use them.
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Edit Boxes Not Updateing Value?
« Reply #5 on: February 26, 2004, 11:57:00 AM »

By the way the above example would let you set the value but if you try to get the updated text from the edit box it would still be the same as the original value from the xml set line.

Oh and I tried the new way of doing xml and it ws the same also
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Edit Boxes Not Updateing Value?
« Reply #6 on: February 26, 2004, 12:06:00 PM »

Post you script or a link to it and I give it a go so I can understand what your referring too.
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Edit Boxes Not Updateing Value?
« Reply #7 on: February 26, 2004, 12:19:00 PM »

QUOTE (flattspott @ Feb 26 2004, 10:06 PM)
Post you script or a link to it and I give it a go so I can understand what your referring too.

Nah its OK I fixed it but if you want to see for yourself try downloading and using this one

http://forums.xbox-s...howtopic=174241

The name will always go unchanged
Logged