Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Xml -> Gui (https://forums.graalonline.com/forums/showthread.php?t=79693)

Robin 05-11-2008 10:51 AM

Xml -> Gui
 
I've started the inklings of a script in GS2 to allow you to start from an XML base, and markup GUI windows and controls, and allow you to define sensible objects for which to use with your events.

Is this something people would use, if I made it available? Or is it going to be something like my Motion tweening script :P

This was the sort of syntax I was planning on:

PHP Code:

<?xml version="1.0" encoding="utf-8"?>
<gui:Window name="myWindow" width="400" height="320">
  <gui:Button bottom="2" right="2" width="100" height="24" name="myButton">Apply</gui:Button>
</gui:Window>


Admins 05-11-2008 10:59 AM

It could be interesting to support loading and saving of GUI controls either by script or by the engine. Graal has support for reading and writing XML, although in public client version it is not very reliable, can't handle CDATA and such, in the next graal version it is working much better, like on server side.

Robin 05-11-2008 11:05 AM

If you're planning on building it into the engine that'd be fun, and it would save me a bit of work, although not much since I'm almost done :P

Admins 05-11-2008 11:12 AM

Normally it's always better when it's script-based, depends ok the speed.

Robin 05-11-2008 11:15 AM

Well Novo had expressed it may cause some overheads, but I'll do some testing :)

xXziroXx 05-11-2008 02:46 PM

I personally despise creating UI's from XML, Graal is doing it so much more efficient.

Inverness 05-11-2008 02:48 PM

Quote:

Originally Posted by xXziroXx (Post 1390206)
I personally despise creating UI's from XML, Graal is doing it so much more efficient.

Agreed.

The only advantage I could see with this is for making GUIs with external editor, which I don't see happening anytime soon.

Robin 05-11-2008 04:04 PM

The people have spoken, filed in "Abandoned" for now.

Twinny 05-11-2008 04:20 PM

Quote:

Originally Posted by Robin (Post 1390224)
The people have spoken, filed in "Abandoned" for now.

Interesting enough I started something quite similar to this in Zodiac. Tied in with my console idea/concept. I may have to make it and release it :)

cbk1994 05-11-2008 04:30 PM

I agree this might have gone slow, but it would have been easier to write probably, and would save time and -money-.

Robin 05-11-2008 04:37 PM

Quote:

Originally Posted by Twinny (Post 1390228)
Interesting enough I started something quite similar to this in Zodiac. Tied in with my console idea/concept. I may have to make it and release it :)

Yeah my ideas never seem to be original these days :P


All times are GMT +2. The time now is 10:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.