Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-11-2008, 10:51 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
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>
__________________


Last edited by Robin; 05-11-2008 at 11:04 AM..
Reply With Quote
  #2  
Old 05-11-2008, 10:59 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #3  
Old 05-11-2008, 11:05 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
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
__________________

Reply With Quote
  #4  
Old 05-11-2008, 11:12 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Normally it's always better when it's script-based, depends ok the speed.
Reply With Quote
  #5  
Old 05-11-2008, 11:15 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Well Novo had expressed it may cause some overheads, but I'll do some testing
__________________

Reply With Quote
  #6  
Old 05-11-2008, 02:46 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
I personally despise creating UI's from XML, Graal is doing it so much more efficient.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 05-11-2008, 02:48 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
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.
__________________
Reply With Quote
  #8  
Old 05-11-2008, 04:04 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
The people have spoken, filed in "Abandoned" for now.
__________________

Reply With Quote
  #9  
Old 05-11-2008, 04:20 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Robin View Post
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
Reply With Quote
  #10  
Old 05-11-2008, 04:30 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I agree this might have gone slow, but it would have been easier to write probably, and would save time and -money-.
__________________
Reply With Quote
  #11  
Old 05-11-2008, 04:37 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by Twinny View Post
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
__________________

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:23 AM.


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