Help - Search - Members - Calendar
Full Version: Dialog Maker (aka Mxm Ide) Pre-alpha
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM ActionScripting Forum
geniusalz
Very early preview (only makes buttons), check it out
dialog maker preview

BTW, requires .NET framework (sorry!)

EDIT: Dialog maker a2
Yuyu
Umm, I put two buttons on the screen named caption after deleting the first one I made, and it outputted this as the code. Is this correct, seems like alot of code for two dialog buttons ? Awsome work though none the less...

CODE
<Control Type="Button" CtrlID="102">
<Rect T="117" L="108" B="149" R="199" />
<Text>Caption</Text>
</Control>
<Control Type="Button" CtrlID="103">
<Rect T="169" L="111" B="201" R="198" />
<Text>Caption</Text>
</Control>
<Control Type="Button" CtrlID="104">
<Rect T="201" L="225" B="201" R="225" />
<Text>Caption</Text>
</Control>
<Control Type="Button" CtrlID="105">
<Rect T="191" L="212" B="191" R="212" />
<Text>Caption</Text>
</Control>
<Control Type="Button" CtrlID="106">
<Rect T="172" L="312" B="172" R="312" />
<Text>Caption</Text>
</Control>
<Control Type="Button" CtrlID="107">
<Rect T="143" L="275" B="143" R="275" />
<Text>Caption</Text>
</Control>
<Control Type="Button" CtrlID="108">
<Rect T="50" L="45" B="50" R="45" />
<Text>Caption</Text>
</Control>


OnEvent EventHandler
LoadDialogFromFile MyDialog TestDialog.xml
ExecuteUIOBject MyDialog
Quit
:EventHandler
Switch %UITriggerID%
Case 102
EndCase
Case 103
EndCase
Case 104
EndCase
Case 105
EndCase
Case 106
EndCase
Case 107
EndCase
Case 108
EndCase
geniusalz
Oh, it makes a button whenever you click on the gray box (it's very small so you can't see it)

I guess that's why you get duplicates.

So don't click on the gray box, but drag to make buttons instead.

And check out the right-click menu too.
Yuyu
I now finally understand how this dialog stuff works completely, just because of right clicking and adding an event to the on click window, and reading the generated code... Awsome... Now then if I could get in the right frame of mind to write some actionscripts here... But I have a mid-term in 7 hours, so I should probably continue studying...
Yuyu
Oh and yes I see what you mean now by just clickin in the area it makes a box, I thought you had to drag to make the box and clicking in the area would not effect it... Anyways I see you now know how to make a program resize the window it is in (minimize, maximize) and dude when you get this thing all put together I may actually be able to contribute some stuff....

G-Dub awsome work... cool.gif
geniusalz
Well, REAL resizing would be to resize the stuff inside it as well (the code box and stuff)
geniusalz
*bump*
The lack of feedback is very ...

Maybe I should work on it instead of saying this, but what the hell.
BenJeremy
I'll check it out in a minute... wink.gif
BenJeremy
OK, looks very cool so far. I like the event handler stuff.

BTW: Button text is usually centered. laugh.gif (I know it's a pre-alpha preview, but you wanted feedback!!)


I'm considering adding "specials" ($var$) for events. That might make things a little easier.
geniusalz
QUOTE (BenJeremy @ Feb 17 2004, 08:15 PM)
I'm considering adding "specials" ($var$) for events. That might make things a little easier.

What's that for?
BenJeremy
QUOTE (geniusalz @ Feb 17 2004, 08:21 PM)
QUOTE (BenJeremy @ Feb 17 2004, 08:15 PM)
I'm considering adding "specials" ($var$) for events. That might make things a little easier.

What's that for?

Like $UIEVT_CLICK$ to return constants for the events
geniusalz
Dialog maker a2

Another version, more stuff done. Textbox (aka editsingle or something), Checkbox, radiobutton, script editor (maybe that was in the previous version too unsure.gif ), grid for dialog layout, etc.

Oh, and REAL resizing now smile.gif . It's so easy to do in C# .NET

So check it out everyone, and this time don't skimp on feedback wink.gif
flattspott
Cool yo, checking out now. smile.gif
flattspott
Looks great. But I see the main dialog form part is still absent. Are you just using the entire screen as the default dialog size?


And the script editior thing is pretty slick. cool.gif
geniusalz
Well, this time I'm working from the ground up, so the main dialog editor comes in last. The dialog (box with gray bg) is resizable (using the corners), but you can't create new dialogs, and if you 'lose' a corner outside of the frame, you can't get it back.
Yuyu
SO what is the last button of the dialog toolbar that pops up for (the one that looks like a little logo) Oh and why does the dialog toolbar "pop up" why don't you build it into the border of the inteface on a side bar such as Fireworks, Paint, etc...
flattspott
My guess is that's gonna the image control
geniusalz
Yeah, it's the image control. As for the popup, I wanted everything to be self-contained (its just simpler that way. I've had enough trouble with skinner otherwise) I didn't want the toolbar to always stay up either, hence the popup.
geniusalz
Whoops, forgot to add 'generate code' for the controls other than 'button' dry.gif
The code is in there (right-click 'Show tag' works), it just won't show up in the box.
Yuyu
Hmm well in my now hour of use of it, I have found the popup toolbar unobtrusive, but annoying. I guess its just on a visual perception basis for me, but I like always having the"tools" I need in sight. But, a minor annoyance it is, and to others probably not one at all. In all though, I like the progress and where this is going simply because as I said before, I actually understand how the controls are going to be controlled by an actionscript when looking at the generated code, alongside the testdialog. THanks for the sweet alpha tool G-Dub, hope you get this thing fianlized sometime so I can maybe, as I said before, actually contribute something program/actionscript wise to MXM.
flattspott
One thing that bugs me is the how nothing is centered on the screen (the app)
Maybe you could make it so all the forms are centered.
geniusalz
OK, I'll do that when I polish the interface up.
flattspott
Another idea for you geniusalz. On the Show Tag stuff. Maybe you could change it from a messagebox to a form with the tag inside a Text Box so you can copy (Right Click)the tag from right there if need be.
geniusalz
That was just for testing anyway tongue.gif
But I'll consider keeping it as a textbox
boomboom
QUOTE (geniusalz @ Feb 22 2004, 12:16 AM)
Oh, and REAL resizing now smile.gif . It's so easy to do in C# .NET

Very nice. I'm getting an error if I right-click on an edit box and select Events -> OnClick.

You wrote this in C#? That's what I'm writing the ConvertToMXM app in. It's nice to know our code's compatible for code reuse.

How'd you handle the resize stuff? Do you use the framework, or did you roll your own?
geniusalz
Yeah, I fixed the error

I did the resize stuff myself for the custom controls. Four picboxes (one at each corner) in the control that change color on mouseenter, and when dragged they resize the control.

If you want to have a look at it, pm me

As for the resizing of controls while resizing windows (such as the script editor window), that's from the .net framework (that's what I was talking about there), using the 'Anchor' property.

I'm a little busy nowadays, so can't work on it much (next week I think I'll be free most of the days)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.