tag:blogger.com,1999:blog-8791741746993376550.post6382112841507376419..comments2023-09-27T01:00:04.175-07:00Comments on Aaron's Blog: Tutorial 2Aaronhttp://www.blogger.com/profile/14542533600283325017noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-8791741746993376550.post-73137289755916836042007-07-30T12:12:00.000-07:002007-07-30T12:12:00.000-07:00Hi Aaron!This is a fantastic tool for my project! ...Hi Aaron!<BR/><BR/>This is a fantastic tool for my project! But i need a little bit help.<BR/><BR/>I can create a dialog box, but the Combobox doesnt work for me.I cant select item from the list. <BR/><BR/>Thanks for help!<BR/><BR/>SanciUnknownhttps://www.blogger.com/profile/04787602123679936208noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-12613760628184439262007-06-20T13:12:00.000-07:002007-06-20T13:12:00.000-07:00Sparky:First of all... thanks!To be honest, the te...Sparky:<BR/><BR/>First of all... thanks!<BR/><BR/>To be honest, the testbed isn't the way real applications should be developed. The reason a new window comes up each time, is so that I get a bunch of controls on the screen, and check they're being freed properly after the windows are closed.<BR/><BR/>The first tutorial should give you a good overview of how to use the system, and keeping hold of references in particular.<BR/><BR/>If that's not really what you were asking, then just leave another message. Good luck!Aaronhttps://www.blogger.com/profile/14542533600283325017noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-78896733130740854792007-06-19T01:56:00.000-07:002007-06-19T01:56:00.000-07:00Hey AaronGreat GUI library!!Like some of the other...Hey Aaron<BR/><BR/>Great GUI library!!<BR/><BR/>Like some of the other guys here, I have a question or 2. Forgive my potential ignorance though!<BR/><BR/>In your GUI testbed application, you create a new "Window" every time the Enter key is pressed and add some controls to it.<BR/><BR/>I added a button and then added a Click event to that button. If there are several of these "Windows" on the screen at the same time, how can you reference the correct "Window" that the clicked button is on within the event-handler function?<BR/><BR/>Does that make any sense?<BR/><BR/>Regards<BR/><BR/>MarkSparkyhttps://www.blogger.com/profile/16860121412328047750noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-43949720827885392832007-06-02T15:48:00.000-07:002007-06-02T15:48:00.000-07:00Hi Aaron, I found your blog from an rss feed over ...Hi Aaron, I found your blog from an rss feed over at Mykres Space and all I can say is wow. I've been struggling incorporating a GUI system into my teams project, and this sounds like just the thing to solve our problems. It looks great and I can't wait to see your next tutorial!Johnathonhttps://www.blogger.com/profile/05715540399799780664noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-80168843388809216092007-05-30T15:04:00.000-07:002007-05-30T15:04:00.000-07:00Anthony - It's cool that you've found my library u...Anthony - It's cool that you've found my library useful. I've had some others asking for password textboxes too. Guess it'll be an addition for the next version.<BR/><BR/>I'd appreciate any bugs or feature requests. I'm probably going to move the project onto SourceForge at some point, as soon as I can think of a proper name for it! Then it'll be easier to log them.<BR/><BR/>I'm not actually working on the system at the moment, although I will pick it up again at some point in the future. I'm trying to develop a program I created for my final university project, a graphical game script editor.<BR/><BR/>If anybody is interested in helping with development of the GUI, then I'd like to hear from you.Aaronhttps://www.blogger.com/profile/14542533600283325017noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-50437853697426237652007-05-30T05:40:00.000-07:002007-05-30T05:40:00.000-07:00This has been in use by our group at www.legendro....This has been in use by our group at www.legendro.net<BR/><BR/>I've been rebuilding a 3d client for our game server which is currently only a hack/emulator for the game Ragnarok Online. We are using your Windows system to allow us to make our own game. We save locations of the different windows in an XML file, and it reloads them.<BR/><BR/>For user authentication, I added a dirty little hack but it is somewhat efficient. But the design is pretty much a password field, where you specify the textbox constructor with a replacement string that will be displayed/printed by the GUIManager.<BR/><BR/>Example:<BR/>passTextBox = new TextBox(game, guiManager, "*");<BR/><BR/>Source: <A HREF="http://www.legendro.net/~anthony/random/TextBox.cs" REL="nofollow">TextBox.cs</A><BR/><BR/>We will be sticking with this UI system till we finish our game sometime in August.<BR/><BR/>Also, if you need testing, or a place to get some results, don't hesitate to ask some from us.<BR/><BR/>contact me at anthony [dot- hernandez [at- clownphobia [dot- comAnthony Hhttps://www.blogger.com/profile/04964196673370236126noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-8933150938621539162007-05-30T05:33:00.000-07:002007-05-30T05:33:00.000-07:00This comment has been removed by the author.Anthony Hhttps://www.blogger.com/profile/04964196673370236126noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-38672418823038874792007-05-17T07:39:00.000-07:002007-05-17T07:39:00.000-07:00sofakng:Yes, I finally got round to testing it wit...sofakng:<BR/><BR/>Yes, I finally got round to testing it with XNA Refresh, and it all works fine out of the box.<BR/><BR/>Menu bars are fully implemented, and the first tutorial actually shows you how to use them. The only thing missing at the moment are menu item dividers, and possibly keyboard shortcuts. The next release may deal with controlling the GUI using the keyboard and joypad.Aaronhttps://www.blogger.com/profile/14542533600283325017noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-41784765372971732692007-05-16T20:20:00.000-07:002007-05-16T20:20:00.000-07:00Hey Aaron! This looks EXCELLENT!Is it compatible ...Hey Aaron! This looks EXCELLENT!<BR/><BR/>Is it compatible with the latest version of XNA? (aka the XNA Refresh)<BR/><BR/>I'd definitely like to use this in my project.<BR/><BR/>Oh, also, does your GUI library have support for menubars?SofaKnghttps://www.blogger.com/profile/16773277060468719199noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-52975574222540971182007-05-16T00:26:00.000-07:002007-05-16T00:26:00.000-07:00Sorry I haven't replied for a while, I've just sta...Sorry I haven't replied for a while, I've just started a new placement and haven't had an Internet connection for a few days.<BR/><BR/>Thanks for all the great comments, it really is motivating to work on a project that people actually use.<BR/><BR/>Jason, the first one, why don't you try sending me the actual exception message, and the piece of code that's throwing it. I am quite keen to reproduce this error, because it's the only real bug I know about at the moment.<BR/><BR/>By the way, I hope to release the source code of my tile map editor which uses this GUI, sometime next week. That should give you guys some help by picking through it's code. After that I may start extending the GUI. If people could compile lists of features or changes they wish to see, that would be quite helpful.Aaronhttps://www.blogger.com/profile/14542533600283325017noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-69986674805761520142007-05-15T19:21:00.000-07:002007-05-15T19:21:00.000-07:00Aaron. Keep up the good work. I haven't had time...Aaron. Keep up the good work. I haven't had time to check it out much yet, but GUI is definitely one of the missing links for XNA development right now. <BR/><BR/>It looks like you've put quite a bit of thought into this, and I look forward to playing with it.Bobhttps://www.blogger.com/profile/13638354185690268788noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-8995684033348713242007-05-12T04:59:00.000-07:002007-05-12T04:59:00.000-07:00Lots of Jasons here! Aaron, I'm a self-taught prog...Lots of Jasons here! <BR/><BR/>Aaron, I'm a self-taught programmer and have never used the debugger to any extent, so I couldn't easily determine the source of the exception. The program doesn't exit, it just prints the exceptions. I'll look into it more.<BR/><BR/>I've edited some functionality using your wonderfully documented code and you're right, it was pretty easy to implement most of it. Instead of butchering your work though, I think I'll just extend it through inheritance. Looking forward to the next tutorial!Jasonhttps://www.blogger.com/profile/02272488779030465363noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-62720539149059777532007-05-12T03:29:00.000-07:002007-05-12T03:29:00.000-07:00hey arron, I also want to say that this is super w...hey arron, I also want to say that this is super work, and I apreciate the fact that you released it, source included.<BR/><BR/>please keep up the good work, and I look forward to seeing any improvments you make to this in the future.<BR/><BR/>This is by far the best ui i have seen for xna thus far...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-44254236856512775622007-05-09T10:37:00.000-07:002007-05-09T10:37:00.000-07:00Hey Jason, thanks for the comment. My email addres...Hey Jason, thanks for the comment. My email address is aaronkm [at] gmail [dot][com]. I'm trying to reduce spam, not working so far!<BR/><BR/>I have no idea what those exceptions are, but it sounds like an infinite loop or something. If you can provide me any more information I'd be grateful.<BR/><BR/>I never thought to make a window unmovable, but it wouldn't be hard to do. Simply add a property to the Window class, IsMovable. When it's set to false, remove the movableArea and fullWindowMovableArea controls from the GUI, using Remove(). Similarly, Add() them when set to true. The GUI checks that a control is only added or removed once.<BR/><BR/>Originally I had a removable title bar, but it complicated matters. I figured that for game message boxes, I could create a separate class. It wouldn't be movable, resizeable or have a title bar. The only reason I haven't created it yet, is because I haven't made a game that requires it yet. A bit of study of the system will show that it wouldn't be hard to implement. It's definitely going to be included in the future though.<BR/><BR/>Originally that was the way transparency worked. Simply change the Window.Transparency property to set the box control transparency instead of the actual window.<BR/><BR/>I hadn't thought of the sticky thing before, I'm sure it's possible. I'll put it on my to-do list!<BR/><BR/>The nest tutorial should be next week. They always end up taking longer than I plan!<BR/><BR/>Good luck!Aaronhttps://www.blogger.com/profile/14542533600283325017noreply@blogger.comtag:blogger.com,1999:blog-8791741746993376550.post-71887243718135443392007-05-08T06:07:00.000-07:002007-05-08T06:07:00.000-07:00Hey Aaron. I appreciate the work you've put into t...Hey Aaron. I appreciate the work you've put into this and I know how it feels not to get any sort of feedback. I looked for your email address, but didn't see it anywhere (not that I blame you).<BR/><BR/>Anyway, I've just started looking into your GUI because I didn't want to re-invent the wheel with a game I'm designing. I have some questions, but keep in mind I haven't had a lot of time to look over the code so this might already be implemented.<BR/><BR/>- Using your GUI_Testbed, I get this warning spammed about 10 times when a window is created using your default code: "A first chance exception of type 'System.OverflowException' occurred in mscorlib.dll"<BR/><BR/>- You have a Resizable bool, but no Moveable? I'd like to have a static window placed on the screen in some cases that isn't moveable or resizeable.<BR/><BR/>- In that same vein, is there a way to remove the title bar? So a window is just a rectanglar area without a title and close button?<BR/><BR/>- How about an option to make the background of the window transparent, but keep the controls and labels normal?<BR/><BR/>- Finally, an option to have the window stick to the edges of the screen instead of drawing off-screen?<BR/><BR/>I know I could edit it myself, but I'd probably just end up making ugly hacks everywhere because I don't have the same level of knowledge that you would. :)<BR/><BR/>A tutorial on skinning the GUI would be really helpful. Something using textures for components, backgrounds, and title bars?<BR/><BR/>Thanks for the great software.Jasonhttps://www.blogger.com/profile/02272488779030465363noreply@blogger.com