RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

a gump editor/creator

Rokam

Wanderer
Background propriets not working.... And there is no about...

the false and true in the script (Closable) are True and False, so it dont work...
 

Bradley

Sorceror
New Version!

http://tkpups.com/GumpEditor.zip

The property window now displays the active element's properties correctly, and it docked into the main window better.
Alpha Elements are now working.
You can select a picture to be displayed behind the gump to make it look like the gump is displaying in game.
I know I've added a fixed other issues, but I can't remember all of it.
 

mrkroket

Wanderer
Your gump editor is really useful, thanks for share it. Every scripter that works with gump should use it. It saves a lot of time.
Unfortunately, there are some bugs.

That's one gump code:
[code:1]using System;
using Server;
namespace Server.Gumps
{
public class GumpWithNoName : Gump
{
private object m_State;
public GumpWithNoName(Object state) : base(0,0)
{
m_state = state
{ //****That shouldn't appear****
Closable = False; //****It's false, on lower case****
Dragable = True;//****It's true, on lower case****

AddPage(0);

AddBackground(0, 0, 200, 200, 9250);
AddBackground(17, 16, 163, 125, 3000);
AddButton( 49, 67, 4005, 4007, 1, GumpButtonType.Reply, 0 ); //*****That doesn't appear on my gump . On gump I have a TiledImage, but on the code it doesn't appears******

AddImage(0, 0, 2714);
AddLabel(106, 180, 1449"New Label"); //******You forgot a comma, just before "New Label"*******

AddAlphaRegion( 26, 20, 137, 40 );
AddButton( 11, 168, 2369, 2371, 7, GumpButtonType.Reply, 0 );
}

public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
{

}
}
}[/code:1]


The alpha regions works good, but seems to be a problem with load/save gumps. When I try to read a .gump, it gives me a problem and doesn't read anything beyond the first alpha region.
Ah! the last issue, Sometimes I close the toolbox by error, and I can't open it again. The toolbox shouldn't be closable.

Another little detail (secondary), when I add a new background it doesn't take the image I was pointing as gumpID, I need to put later manually.

With those problems solved and a page control, your program is perfect.

Again thanks for your great editor.
 

mrkroket

Wanderer
Off topic:
My post: Posted: Thu May 29, 2003 11:29 am
Previous post: Posted: Thu May 29, 2003 12:38 am

How can I reply one hour before the last post? strange :)
 

Bradley

Sorceror
The ID requirements for background images are stricter then that for the other elements. That's why it always defaults to one type of background, and the graphics must be updated manually.

I'm eventually trying to move to a different format for the Toolbox, I want to get everything in one window, which will solve the problem with not being able to reopen the toolbox.

Sorry about al the bugs in the generated script, VB is my "native" language :) I'm used to things being case-insensitive. I will try to get some time tonight to clean up the script errors that you pointed out.

About the save error with Alpha Elements... Opps :oops: , I forgot to implement reloading the alpha relement from th file, so the file pointers are getting all messed up and reading in bad numbers. I will try to fix this tonight.

Thanks for the bug report, and praise. It's always appreciated.
 

mrkroket

Wanderer
The ID requirements for background images are stricter then that for the other elements. That's why it always defaults to one type of background, and the graphics must be updated manually.

I'm eventually trying to move to a different format for the Toolbox, I want to get everything in one window, which will solve the problem with not being able to reopen the toolbox.
As they are secondary problems, it's ok.

Sorry about al the bugs in the generated script, VB is my "native" language I'm used to things being case-insensitive.
I also comes from a case-insensitive lang (Delphi), I understand it ^^

I will try to get some time tonight to clean up the script errors that you pointed out.
Tonight, tomorrow, on a week,... when you like ^_^


About the save error with Alpha Elements... Opps , I forgot to implement reloading the alpha relement from th file, so the file pointers are getting all messed up and reading in bad numbers. I will try to fix this tonight.
You forgot to change your "deserialize" method to the new version, hehe. It's usual that kind of bugs :).

Thanks for the bug report, and praise. It's always appreciated.
To you, I did 4 complex gumps in almost no time. On the usual way (Inside UO + try & error) that should take at least 3 times more.
 

Rokam

Wanderer
I think the same... All my Reward System where made in this tool...

I'm sure that this tool is better then tools that help gms in the shard....
 

Bradley

Sorceror
mrkroket said:
Any new bugfix?
Sorry, I haven’t had much time to work on this project. I'm in the middle of getting my things ready to move to a new apartment, and on Thursday I was involved in a car crash which obliterated my car. So things are a bit hectic right now.
 

Bradley

Sorceror
[quote="PerfectWing]I know the feeling. I was in a POS Geo Tracker and slammed head on into a Ford F-350.[/quote]
As a nice trivia fact, in Hyundai Elantra vs Jeep Grad Cherokee, the jeep will win. I was processding across an intersection with a green light at about 40 mph, He was coming from the other direction, and made a left hand turn across my lane right in front of me, there was no way to avoid hitting him.
 

Bradley

Sorceror
my left arm is brused from the elbow to my wrist where it hit the steering wheel. But other then that I'm fine. The angle that we hit made the impact a lot less then it would have been if it was head on. Although the front half of the engine compartment is ditributed fairly evenly across much of Frederick Country, Maryland at the moment. I feel very, very lucky, it could have been much worse.
 

mrkroket

Wanderer
Sorry, I haven’t had much time to work on this project. I'm in the middle of getting my things ready to move to a new apartment, and on Thursday I was involved in a car crash which obliterated my car. So things are a bit hectic right now.

I'm sure that you post the new version when you have it.
But I don't want this post goes out of the first page, it's a very useful proggie. That's why I asked you ^_^
 

PerfectWing

Wanderer
Ok, going towards school, in the left lane on a 4 lane highway. Guy cut out of the turning lane and into my lane, slammed, 45-50 mph + whatever he got up to by slamming his gas trying to cross the road.

Caused a degenerative disc in my back (eventually will cause me back problems, supposedly) to get 'upset' and for a while I could barely stand up straight without severe pain. Bruised my shoulder to my hip (seatbelt burn). Bruised my brother the same, caused a slight cut, burn-esque cut, across his chest. Trashed the car and destroyed the CD player and tape adapter for it. :(

For those of you who know what a Geo Tracker looks like; picture it about half as long. That's what my car looked like. Compared to his truck I only caused a rather large dent in the lower half of his bumper.
 

psz

Administrator
The Beltway is fun.

It's the ones who will be in, say, Laurel's Shopping Center (The one with a Ruby Tuesdays) who will blow through the stop sign WHILE an officer is at THAT intersection with them, turn right down a ONE WAY street, and wonder why they take the rear bumper off of 1990 Ford Escorts...


*ahem*

Yes, I had fun while living in MD ;->
 
P

php-junkie

Guest
Bradley, I don't know if you seen it yet but Krrios released a new version of his ultima.dll. Something you might try is consulting with Krrios, Ryan, or Zippy. These guys are obviously truly awesome and I'm sure they wouldn't mind helping to improve it. At the very least they could give you suggestions, ideas or code examples. It's always good to work with a group when developing something because then it comes out 10x better than what you originally intended.
 

Bradley

Sorceror
New version of the Gump Editor has been released.
You can download it from http://tkpups.com/GumpEditor.zip.

This version uses the new version of the SDK .dll, adds support for Item elements, and the ability to save the gump as a jpeg file. It also fixes the multi-select issues from the element list box.

The first time it is run you will get an error about the cache file being missing or currupt, just answer that you want to rebuild the cache and everything should be ok. As always, you will ne .NET framework 1.1.

The current Item browser is not really up to the quality that I would like. If anyone would like to build a custom form controll that allows a user to brows all available Items in the Ultima.Art namespace, and select the one they want I will gladly use it, and give you credit. I'll try to work on a better solution for the next version. I'm shooting for something along the lines of the Item browser in insideUO, but my current version is too slow for my tastes.

Enjoy! And let me know about any bugs you find.
 

UOT

Knight
I still haven't downloaded this new version but I was wondering if in this new version you changed anything with the addlabel. Cause right now with the previous version any labels you add when you export it to a cs it adds 4 to the y of the label.
 
Top