mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-13 20:21:06 +00:00
game(client): fix touch drawing problems
This commit is contained in:
+3
-2
@@ -83,6 +83,7 @@ struct CTouchTexture
|
||||
|
||||
float X0, Y0, X1, Y1; // position in atlas texture
|
||||
int height, width;
|
||||
int textureID;
|
||||
bool isInAtlas;
|
||||
char szName[1024];
|
||||
};
|
||||
@@ -164,7 +165,7 @@ public:
|
||||
|
||||
void Paint( );
|
||||
void Frame( );
|
||||
|
||||
|
||||
void AddButton( const char *name, const char *texturefile, const char *command, float x1, float y1, float x2, float y2, rgba_t color = rgba_t(255, 255, 255, 255), int round = 2, float aspect = 1.f, int flags = 0 );
|
||||
void RemoveButton( const char *name );
|
||||
void ResetToDefaults();
|
||||
@@ -172,7 +173,7 @@ public:
|
||||
void ShowButton( const char *name );
|
||||
void ListButtons();
|
||||
void RemoveButtons();
|
||||
|
||||
|
||||
CTouchButton *FindButton( const char *name );
|
||||
// bool FindNextButton( const char *name, CTouchButton &button );
|
||||
void SetTexture( const char *name, const char *file );
|
||||
|
||||
Reference in New Issue
Block a user