Spodii / netgore

Cross platform online rpg engine using C# and SFML
http://www.netgore.com/
40 stars 16 forks source link

Saving Tiled Graphics Form Last State #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm making some improvements in my map editor and noticed a small mistake and 
I'll show you how to solve it

The editor of tiles does not save its previous position to resolve

search for:

[csharp]DemoGame.Editor.cs[/csharp]

within that solution you will find sub

[csharp]public IDockContent Deserialize(string name)[/csharp]

inside and near the end you will put this code

                [csharp]if (IsNameFor(Owner._frmGrhTilesetForm, name))
                    return Owner._frmGrhTilesetForm;[/csharp]

this will cause the tile editor returns to its previous position

Every time I find any bugs will be showing you how to solve them

My editor at netgore

Original issue reported on code.google.com by ianADMki...@gmail.com on 30 Apr 2014 at 3:37

GoogleCodeExporter commented 9 years ago

Original comment by darksumm...@gmail.com on 10 May 2014 at 3:20