Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Third Party Program Support

Third Party Program Support Misc support forum and advertisment forum for all RunUO related third party Utilities.

Reply
 
Thread Tools Display Modes
Old 02-02-2004, 07:39 PM   #1 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default Gump Editor

I've got screenshots of my new totally rewritten gump editor.

http://tkpups.com/screen1.JPG
http://tkpups.com/screen2.JPG
http://tkpups.com/screen3.JPG
Bradley is offline   Reply With Quote
Old 02-02-2004, 07:49 PM   #2 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

New Features:
1.All properties are edited through the Visual Studio Property Editor (you do not need to have visual studio)
2. Hue and GumpID properties ahve thier own porperty value browsers integrated with the VS Property Grid.
3. Full Drag, Drop, and resizing mouse support
4. The ability to group elements together, so they are treated as one single object
5. The ability to import to export groups to files that can be used as prebuilt templates, or exchanged with others over the web.
6. Users can create Element plugins for making thier own custom elements.
7. Scripting plugins that allow the Gump Designer to generate Emulator scripts in any lnaguge (and emulator)
Bradley is offline   Reply With Quote
Old 02-03-2004, 12:23 AM   #3 (permalink)
<censored>
 
Fury's Avatar
 
Join Date: Feb 2003
Location: NewYork
Age: 32
Posts: 581
Default

Sweet, ive been using ggg just for the mouse resizing ability.. i hate em but i always end up making a ton of gumps, i look forward to using this great looking tool.
__________________
UoEvolution
www.uoevolution.com

UoGateway
Fury is offline   Reply With Quote
Old 02-03-2004, 01:49 AM   #4 (permalink)
Forum Newbie
 
Join Date: Mar 2003
Age: 38
Posts: 50
Default

Looks great! I am looking forward to its release.
Xandor is offline   Reply With Quote
Old 02-03-2004, 03:20 AM   #5 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

Yep it looks great! If it's not too much asking, would you consider adding a snap-to-grid like feature when positioning items using the mouse?
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 02-03-2004, 07:01 AM   #6 (permalink)
Forum Novice
 
Join Date: Oct 2003
Age: 34
Posts: 192
Send a message via ICQ to Khaybel Send a message via MSN to Khaybel
Default

Looks Great, keep up the good work
__________________
OrBSydia DevNetwork
Khaybel is offline   Reply With Quote
Old 02-03-2004, 07:36 AM   #7 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by Arya
Yep it looks great! If it's not too much asking, would you consider adding a snap-to-grid like feature when positioning items using the mouse?
I'll see what I can do
Bradley is offline   Reply With Quote
Old 02-03-2004, 01:00 PM   #8 (permalink)
 
Join Date: Jan 2004
Posts: 18
Default

is this doen yet? and is there something better? I have tons of Graphics I want to use
Limitmaker is offline   Reply With Quote
Old 02-03-2004, 02:08 PM   #9 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default

holy sh*it! this would be very useful, indeed
Atomic is offline   Reply With Quote
Old 02-03-2004, 06:43 PM   #10 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by Limitmaker
is this doen yet? and is there something better? I have tons of Graphics I want to use
No, I'ts not done yet. I want to take the time to really make the editor good, before I trying to worry about some of the things that will make it useable by people.

Currently it would be good for laying out a form, but it can't generate script yet. There are also a few other Element types I want to implement. The plugin system is working, but I'm currently having a problem gettings objects loaded from extrenal DLLs to deserialize correctly, so it needs some work.

If anyone wants to help test what I have so far, and make suggestions contact me via ICQ and I can send you a current copy to look over.
Bradley is offline   Reply With Quote
Old 02-03-2004, 10:09 PM   #11 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

ok, that didn't come out right... let's try it again.

I want to concentrate on make the editing interface really smooth and functional before I add the scripting support.
Bradley is offline   Reply With Quote
Old 02-04-2004, 03:16 AM   #12 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

Here's another suggestion (or request depending on how you look at it ). I like to write most of the code by myself, and use software only for the gump generation part. I'd love to have an option to quickly copy to the clipboard a method that will only create the gump itself without the need of specifying namespace, class name and saving it to a script I'm not going to use. I'll try to stop now Thanks!
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 02-04-2004, 03:31 AM   #13 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Arya, in regards to your signature. Pure oxygen can be considered a drug, or a poison (depending on how you view its use).

Sorry if that was a little off-topic.
XxSP1DERxX is offline   Reply With Quote
Old 02-04-2004, 08:09 PM   #14 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by Arya
Here's another suggestion (or request depending on how you look at it ). I like to write most of the code by myself, and use software only for the gump generation part. I'd love to have an option to quickly copy to the clipboard a method that will only create the gump itself without the need of specifying namespace, class name and saving it to a script I'm not going to use. I'll try to stop now Thanks!
This could very easly be done through the plug-in interface. a plugin could be created that adds an items to the menu to export the gump in any way you want.
Bradley is offline   Reply With Quote
Old 02-04-2004, 11:04 PM   #15 (permalink)
<censored>
 
Fury's Avatar
 
Join Date: Feb 2003
Location: NewYork
Age: 32
Posts: 581
Default

Ive been testing this.. even in its early stages this is the best gump creating program i have used yet.. keep up the excellent work on it
__________________
UoEvolution
www.uoevolution.com

UoGateway
Fury is offline   Reply With Quote
Old 02-05-2004, 03:44 AM   #16 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

Glad to hear, I guess I didn't notice the plug-in part

Spider, that's true. My sig is just a quote I found funny though, I'm not trying to make oxygen illegal or something
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 02-05-2004, 03:51 AM   #17 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

LOL It is illegal in pure form (without proper license)
XxSP1DERxX is offline   Reply With Quote
Old 02-07-2004, 11:44 PM   #18 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

The Gump Editor can now display Label Elements in the UO Fonts.
Bradley is offline   Reply With Quote
Old 02-08-2004, 11:17 AM   #19 (permalink)
<censored>
 
Fury's Avatar
 
Join Date: Feb 2003
Location: NewYork
Age: 32
Posts: 581
Default

sweet
__________________
UoEvolution
www.uoevolution.com

UoGateway
Fury is offline   Reply With Quote
Old 02-09-2004, 11:15 AM   #20 (permalink)
What's a CrazySeaMonkey?
 
crazyseamonkey's Avatar
 
Join Date: Nov 2003
Location: Wisconsin
Age: 27
Posts: 53
Send a message via ICQ to crazyseamonkey Send a message via AIM to crazyseamonkey Send a message via Yahoo to crazyseamonkey
Default

Just want to say I got a look at this program already (Thanks Bradley) and it's looking awesome...I can't wait for it to be finished...it already blows most of the other editors out of the water and it's not finished yet.
crazyseamonkey is offline   Reply With Quote
Old 02-09-2004, 05:52 PM   #21 (permalink)
 
Join Date: Sep 2003
Location: Gatineau Quebec
Age: 19
Posts: 419
Send a message via ICQ to JonnyBrav Send a message via MSN to JonnyBrav
Default

Quote:
Originally Posted by crazyseamonkey
Just want to say I got a look at this program already (Thanks Bradley) and it's looking awesome...I can't wait for it to be finished...it already blows most of the other editors out of the water and it's not finished yet.
Exactly
JonnyBrav is offline   Reply With Quote
Old 02-11-2004, 03:33 PM   #22 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

I am currently working on moving the "snap to grid" feature into a plugin. I will post the source code and instruction on compiling the plugin to give an idea of what kinds of things can be done with the system.
Bradley is offline   Reply With Quote
Old 02-11-2004, 05:43 PM   #23 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default Plugin Example

This is the source code for a Gump Studio plugin. It is actually 2 plugins working together to create the snap to grid feature.

The first plugin, SnapToGrid, Adds a menu "Show Grid" that toggles on or off the grid of dots in the designer. It also hooks into the mouse movement code to watch for element dragging, and alters the mouse coord to snap it to the grid when the shift key is held down. It also installs another plugin, SnapToGridExtender, which gets placed into each type of Element. This plugin adds the "snap to grid" context menu to elements when they are right clicked.

The code would be compiled into a DLL, and placed into the "Plugins" folder next to the GumpDesigner.exe.

I'll try to come up with a better tutorial on creating plugins once I officially release the edit.

[code:1]Imports Gump_Designer
Imports Gump_Designer.Plugins
Imports System.Drawing


Public Class SnapToGrid
Inherits BasePlugin

Protected mDesigner As DesignerForm
Protected mExtender As SnapToGridExtender
Protected mShowGrid As Boolean = False
Protected mShowGridMenu As System.Windows.Forms.MenuItem

Public Overrides Function GetPluginInfo() As Gump_Designer.Plugins.PluginInfo
Dim Info As New PluginInfo
Info.AuthorEmail = &quot;**********&quot;
Info.AuthorName = &quot;Bradley Uffner&quot;
Info.Description = &quot;Allows elements to be snapped to an 8x8 grid.&quot;
Info.PluginName = &quot;SnapToGrid&quot;
Info.Version = &quot;1.0&quot;
Return Info
End Function

Public Overrides Sub Load(ByVal frmDesigner As Gump_Designer.DesignerForm)
mDesigner = frmDesigner
If mExtender Is Nothing Then mExtender = New SnapToGridExtender(mDesigner)

mShowGridMenu = New System.Windows.Forms.MenuItem(&quot;Show Grid&quot;, AddressOf DoToggleGridMenu)
frmDesigner.mnuPlugins.MenuItems.Add(mShowGridMenu )
AddHandler mDesigner.PreRender, AddressOf RenderGrid
End Sub

Public Overrides ReadOnly Property Name() As String
Get
Return GetPluginInfo.PluginName
End Get
End Property

Public Overrides Sub InitializeElementExtenders(ByVal Element As Gump_Designer.Elements.BaseElement)
Element.AddExtender(mExtender)
End Sub

Public Overrides Sub MouseMoveHook(ByRef e As Gump_Designer.Plugins.MouseMoveHookEventArgs)
If e.MoveMode = MoveModeType.Move AndAlso CBool(e.Keys And Windows.Forms.Keys.Shift) Then
e.MouseLocation = mExtender.SnapToGrid(e.MouseLocation, mExtender.GridSize)
End If
End Sub

Public Sub DoToggleGridMenu(ByVal sender As System.Object, ByVal e As System.EventArgs)
mShowGrid = Not mShowGrid
mShowGridMenu.Checked = mShowGrid
mDesigner.picCanvas.Refresh()
End Sub

Public Sub RenderGrid(ByVal Target As Bitmap)
If mShowGrid Then
For x As Integer = 0 To mDesigner.picCanvas.Width - 1 Step mExtender.GridSize.Width 'DrawGird
For y As Integer = 0 To mDesigner.picCanvas.Height - 1 Step mExtender.GridSize.Height
Target.SetPixel(x, y, Color.LightGray)
Next
Next
End If
End Sub
End Class

Public Class SnapToGridExtender
Inherits Plugins.ElementExtender

Public GridSize As Size = New Size(8, 8)
Protected mDesigner As DesignerForm

Public Sub New(ByVal Designer As DesignerForm)
mDesigner = Designer
End Sub

Public Overridable Sub DoSnapToGridMenu(ByVal sender As System.Object, ByVal e As System.EventArgs)
For Each o As Object In mDesigner.ElementStack.GetSelectedElements
Dim Element As Elements.BaseElement = CType(o, Elements.BaseElement)
Element.Location = SnapToGrid(Element.Location, GridSize)
Next
End Sub

Public Function SnapToGrid(ByVal Position As Point, ByVal GridSize As Size) As Point
Dim NewPoint As Point = Position
NewPoint.X = CInt(NewPoint.X \ GridSize.Width) * GridSize.Width
NewPoint.Y = CInt(NewPoint.Y \ GridSize.Height) * GridSize.Height
Return NewPoint
End Function

Public Overrides Sub AddContextMenus(ByRef GroupMenu As System.Windows.Forms.MenuItem, ByRef PositionMenu As System.Windows.Forms.MenuItem, ByRef OrderMenu As System.Windows.Forms.MenuItem, ByRef MiscMenu As System.Windows.Forms.MenuItem)
If PositionMenu.MenuItems.Count > 1 Then
PositionMenu.MenuItems.Add(New System.Windows.Forms.MenuItem(&quot;-&quot;))
End If
PositionMenu.MenuItems.Add(New System.Windows.Forms.MenuItem(&quot;Snap to Grid&quot;, AddressOf DoSnapToGridMenu))
End Sub
End Class[/code:1]
Bradley is offline   Reply With Quote
Old 02-12-2004, 07:44 AM   #24 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

where can I download it?
Nagash is offline   Reply With Quote
Old 02-12-2004, 08:09 AM   #25 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,529
Default

its not done read the whole thread before asking hehe
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes