Jump to content


Photo

How The Hell Do You Do This


  • Please log in to reply
10 replies to this topic

#1 Jezz_X

Jezz_X

    X-S Knowledgebase

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 4,531 posts
  • Location:Australia
  • Xbox Version:v1.1
  • 360 version:none

Posted 16 February 2004 - 10:05 AM

I'm trying to make a dialog reappear after a another message box has wiped it off the screen so I can keep entering some stuff into it, but I cant make them reappear again.

If I try to recall the whole thing with

OnEvent EventHandler
LoadDialogFromFile MyDialog testDialog.xml
ExecuteUIOBject MyDialog

it just pops up with an error

If I just add

ExecuteUIOBject MyDialog

it locks up the script without displaying it and no input is allowed

If I rename the dialog when I call it again thats fine like

LoadDialogFromFile NEWDialog testDialog.xml
ExecuteUIOBject NEWDialog

So how do I display it again with the same name of mydialog ???




#2 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 10:48 AM

Hmmm..... that's technically a bug, but not for simple reasons.

I'll need to work on it. When dialogs are dismissed, the UI "object" is deleted. The handle associated with the dialog should be re-usable, but you'd have to reload it (there may be a way for me to save the XML, or even the object, though)

I need to think about this issue in depth, though. Please be patient.

P.S. OnEvent only needs to be called once, as it sets the Event Handler for the executing script for all UI Objects. Once set, it doesn't need to be reset.

The problem is with re-using dialog/UI handles.

Edited by BenJeremy, 16 February 2004 - 10:50 AM.


#3 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 10:49 AM

Do you have a RETURN at the end of your :EventHandler section? Cause it works fine for me.

Edited by flattspott, 16 February 2004 - 10:55 AM.


#4 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 10:51 AM

QUOTE (flattspott @ Feb 16 2004, 07:49 AM)
Do you have a RETURN at the end of your :EventHandler section? Cause it works fine for me.

His problem is with re-using the handle within a script.

I might suggest calling a secondary script specifically for the dialog, each time you need to bring it up.

#5 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 11:00 AM

Okay then, so he needs a loader script to as a temp fix

2 xas files. The second one is just for the dialog stuff. And in the first script he'd have a CallFile whenever he needs to redraw the script. Wouldn't that work?

#6 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 11:02 AM

QUOTE (flattspott @ Feb 16 2004, 08:00 AM)
Okay then, so he needs a loader script to as a temp fix

2 xas files. The second one is just for the dialog stuff. And in the first script he'd have a CallFile whenever he needs to redraw the script. Wouldn't that work?

Yes, that should work fine.

#7 Jezz_X

Jezz_X

    X-S Knowledgebase

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 4,531 posts
  • Location:Australia
  • Xbox Version:v1.1
  • 360 version:none

Posted 16 February 2004 - 11:03 AM

Except I would need to _ all the vars in it

#8 Jezz_X

Jezz_X

    X-S Knowledgebase

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 4,531 posts
  • Location:Australia
  • Xbox Version:v1.1
  • 360 version:none

Posted 16 February 2004 - 11:12 AM

While I have your attention can i have an example of
ENABLED (Boolean, disabled is dimmed and cannot be in focus)
VISIBLE (Boolean, when FALSE, control is disabled and not drawn at all)

i want to make a edit box become unenabled when I click on a checkbox

I tried lots but cant get it to work

Also the text in the dialogs comes up as white and not the system ui colors for me as it says in the docs

#9 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 11:15 AM

QUOTE (Jezz_X @ Feb 16 2004, 08:12 AM)
While I have your attention can i have an example of
ENABLED (Boolean, disabled is dimmed and cannot be in focus)
VISIBLE (Boolean, when FALSE, control is disabled and not drawn at all)

i want to make a edit box become unenabled when I click on a checkbox

I tried lots but cant get it to work

Also the text in the dialogs comes up as white and not the system ui colors for me as it says in the docs

That's because I haven't implemented them yet. wink.gif

Soon. I'm cleaning up a few things yet. Overdraw is a biggy.... and I still also have to fix editboxes when the string is too big.

Gotta go to work now. Later.

#10 Krill123

Krill123

    X-S X-perience

  • Members
  • PipPip
  • 496 posts

Posted 16 February 2004 - 11:48 AM

blink.gif

I thought taking care of xbox-scene was your job!!?


#11 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 12:20 PM

Nice try bud laugh.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users