Moongates

Redmoon

Citizen
I have added 3 new maps, edited my PublicMoongate.cs, but for the life of me I can not remember where to fix this issue of gump buttons being off. I do know that I still need to edit my cliloc to add the new names and colors.
Redmoon_9-25_10.15.jpg
 

Milva

Administrator
Moderator
In publicmoongate.cs towards the bottom you will find-this starts the gump
information
AddPage( 0 );
AddBackground( 0, 0, 380, 280, 5054 ); <<< I think maybe the background if changed the numbers, you should be able to change the size.
 

Redmoon

Citizen
That did increase the gump size and it is bigger (400,400 does nill),but didnt fix the buttons. :(
I changed from:
// this.AddBackground(0, 0, 380, 280, 5054);
this.AddBackground(0, 0, 600, 600, 5054);

If I remember correctly (it's been about 6 yrs)
this.AddBackground( gump location x, gump location y, gump height, gump width, gump dec value ID );
I do see the "this.AddButton", but only for OKAY and CANCEL.

Above in the added map is only cliloc numbers:
public static readonly PMList DergogeaLach =
new PMList(cliloc for name, cliloc for name hue, Map.Maps[34], new PMEntry[][DOUBLEPOST=1380123177,1380121961][/DOUBLEPOST]Well, I think I answered myself. ;)
I guess it takes asking to wade through all the cobwebs in my head, :D.
I left more space for the other 2 maps that I'm adding.
Thank you Milva!
Code:
 // this.AddBackground(0, 0, 380, 280, 5054);
this.AddBackground(0, 0, 600, 600, 5054);
 
//this.AddButton(10, 210, 4005, 4007, 1, GumpButtonType.Reply, 0);
//this.AddHtmlLocalized(45, 210, 140, 25, 1011036, false, false); // OKAY
this.AddButton(20, 310, 4005, 4007, 1, GumpButtonType.Reply, 0);
this.AddHtmlLocalized(55, 310, 140, 25, 1011036, false, false); // OKAY
 
 
//this.AddButton(10, 235, 4005, 4007, 0, GumpButtonType.Reply, 0);
//this.AddHtmlLocalized(45, 235, 140, 25, 1011012, false, false); // CANCEL
this.AddButton(20, 335, 4005, 4007, 0, GumpButtonType.Reply, 0);
this.AddHtmlLocalized(55, 335, 140, 25, 1011012, false, false); // CANCEL
Redmoon_9-25_11.29.jpg
 

Attachments

  • awww.uoguide.com_images_6_61_Drelgor_corpse.jpg
    awww.uoguide.com_images_6_61_Drelgor_corpse.jpg
    15.6 KB · Views: 17

Milva

Administrator
Moderator
Each button in the script for Tram, Fel etc should also show a number (for the location on the gump?
I have never worked with the publicmoongate only with gump studio to create gumps from scratch.
 

RoninGT

Citizen
Try this. Not mind someone else made it but I use it and love it.
 

Attachments

  • Public Gates.zip
    14.6 KB · Views: 61

Redmoon

Citizen
I check that one out, but I have public moongates done; maybe I can use that for the other moongates. I'm ~way~ behind on the newer way to do things. I just have to re-adjust the buttons, here is what I have thus far. (Each facet has it's own color too) :D
Redmoon_9-25_12.47.jpg
 

tass23

Moderator
CEO's Moongate Library is pretty wonderful as well. Not to get off-topic here or anything. It allows you to charge various fees to use it, plus you can add locations as easily as marking a rune, dropping it in a Runebook, then dropping the runebook into the moongate lol

I even was able to get it setup to use custom currency, so it's very flexible. :)
 

Milva

Administrator
Moderator
We used the CEO Public Moongate also and it was great, so easy to add custom areas to it.
But of course with wanting the custom art/ for the moongate gump you would want to altar the script :)
 

zerodowned

Moderator
ServUO Developer
Where would I put the Public Gates zip?
usually in your Scripts folder, if there isn't already a folder for Custom Systems, I'd suggest making one. Makes it easier to keep the custom scripts you've added separated from the distro ones.
then restart your shard if it's running