first commit

This commit is contained in:
Beyhan Oğur
2026-09-03 04:45:36 +03:00
commit d5f52cc3d3
1038 changed files with 169579 additions and 0 deletions
@@ -0,0 +1,39 @@
using System;
using ClassicAssist.Data;
using ClassicAssist.Misc;
using ClassicAssist.UO.Objects.Gumps;
namespace ClassicAssist.UO.Gumps
{
public sealed class UpdateMessageGump : Gump
{
private readonly Version _version;
public UpdateMessageGump( IntPtr hWnd, string message, Version version ) : base( 500, 250, -1 )
{
if ( NativeMethods.GetWindowRect( hWnd, out NativeMethods.RECT rect ) )
{
int windowWidth = rect.Right - rect.Left;
int windowHeight = rect.Bottom - rect.Top;
X = ( windowWidth - 600 ) / 2;
Y = ( windowHeight - 400 ) / 2;
}
_version = version;
Closable = true;
Disposable = false;
AddPage( 0 );
AddBackground( 0, 0, 500, 400, 9270 );
AddHtml( 20, 20, 460, 330, message, true, true );
AddButton( 420, 360, 247, 248, 0, GumpButtonType.Reply, 0 );
}
public override void OnResponse( int buttonID, int[] switches )
{
AssistantOptions.UpdateGumpVersion = _version;
base.OnResponse( buttonID, switches );
}
}
}