Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IPanel
- {
- public:
- const char* GetName( unsigned int vguiPanel )
- {
- typedef const char* ( __thiscall* GetNameFn )( PVOID, unsigned int );
- return GetMethod< GetNameFn >( this, 35 )( this, vguiPanel );
- }
- };
- class ISurface
- {
- public:
- void DrawSetColor( int r, int g, int b, int a )
- {
- typedef void ( __thiscall* DrawSetColorFn )( PVOID, int, int, int, int );
- GetMethod< DrawSetColorFn >( this, 11 )( this, r, g, b, a );
- }
- void DrawFilledRect( int x0, int y0, int x1, int y1 )
- {
- typedef void ( __thiscall* DrawFilledRectFn )( PVOID, int, int, int, int );
- GetMethod< DrawFilledRectFn >( this, 12 )( this, x0, y0, x1, y1 );
- }
- void DrawOutlinedRect( int x0, int y0, int x1, int y1 )
- {
- typedef void ( __thiscall* DrawOutlinedFn )( PVOID, int, int, int, int );
- GetMethod< DrawOutlinedFn >( this, 14 )( this, x0, y0, x1, y1 );
- }
- void DrawLine( int x0, int y0, int x1, int y1 )
- {
- typedef void ( __thiscall* DrawLineFn )( PVOID, int, int, int, int );
- GetMethod< DrawLineFn >( this, 15 )( this, x0, y0, x1, y1 );
- }
- void DrawSetTextFont( unsigned long font )
- {
- typedef void ( __thiscall* DrawSetTextFontFn )( PVOID, unsigned long );
- GetMethod< DrawSetTextFontFn >( this, 17 )( this, font );
- }
- void DrawSetTextColor( int r, int g, int b, int a )
- {
- typedef void ( __thiscall* DrawSetTextColorFn )( PVOID, int, int, int, int );
- GetMethod< DrawSetTextColorFn >( this, 19 )( this, r, g, b, a );
- }
- void DrawSetTextPos( int x, int y )
- {
- typedef void ( __thiscall* DrawSetTextPosFn )( PVOID, int, int );
- GetMethod< DrawSetTextPosFn >( this, 20 )( this, x, y );
- }
- void DrawPrintText( const wchar_t* text, int textLen )
- {
- typedef void ( __thiscall* DrawPrintTextFn )( PVOID, const wchar_t*, int, int );
- return GetMethod< DrawPrintTextFn >( this, 22 )( this, text, textLen, 0 );
- }
- unsigned long CreateFont( )
- {
- typedef unsigned int ( __thiscall* CreateFontFn )( PVOID );
- return GetMethod< CreateFontFn >( this, 64 )( this );
- }
- void SetFontGlyphSet( unsigned long font, const char* windowsFontName, int tall, int weight, int blur, int scanlines, int flags )
- {
- typedef void ( __thiscall* SetFontGlyphSetFn )( PVOID, unsigned long, const char*, int, int, int, int, int );
- GetMethod< SetFontGlyphSetFn >( this, 65 )( this, font, windowsFontName, tall, weight, blur, scanlines, flags );
- }
- void GetTextSize( unsigned long font, const wchar_t* text, int& wide, int& tall )
- {
- typedef void ( __thiscall* GetTextSizeFn )( PVOID, unsigned long, const wchar_t*, int&, int& );
- GetMethod< GetTextSizeFn >( this, 72 )( this, font, text, wide, tall );
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment