game(client): fix touch drawing problems

This commit is contained in:
nillerusr
2022-09-18 18:47:19 +03:00
parent a7611c481e
commit 9c4ace30c3
3 changed files with 67 additions and 21 deletions
+3 -2
View File
@@ -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 );