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!

[missing feature] DateTimeGump property for "Set"

fwiffo

Sorceror
below line 417 in current runuo SVN add this in file \Scripts\Gumps\Properties\PropsGump.cs :

Code:
private static Type typeofDateTime = typeof( DateTime );

below line 310 in the same file add:

Code:
else if ( IsType( type, typeofDateTime ) )
                            from.SendGump( new SetDateTimeGump( prop, from, m_Object, m_Stack, m_Page, m_List ) );

and add the file included in the same folder where the propsgump.cs was

this is already working on my side, and the code is not that bad...this is a missing feature from decades, it never worked, so I decided to made it.
 

Attachments

  • SetDateTimeGump.cs
    6.8 KB · Views: 6

fwiffo

Sorceror
fixed a tiny error in string.format for year (I used capital Y, where I should've used normal y)
 
Top