Commit graph

25 commits

Author SHA1 Message Date
3aa6cd9904 Fixed another bug in MultilineText. 2024-03-22 20:54:30 +01:00
7a2cd3e984 Fixed multiline text. 2024-03-22 20:30:49 +01:00
7113e6a8c8 Added args parameter to all button/hover classes to be able to execute a function with arguments. 2024-03-22 19:39:42 +01:00
8d4bb14583 Simplified some button classes. 2024-03-17 14:13:55 +01:00
246875690f Corrected some imports. 2024-02-25 15:03:11 +01:00
e1acafa0ac Added TextInput() class. 2024-01-05 22:46:06 +01:00
e5951abb21 Added crop_surface() function. 2024-01-05 22:43:49 +01:00
2e42dd0cb4 pg: In TextButton.blit(), padding was used as if it would be still an int. 2023-12-09 12:49:57 +01:00
f76da0f202 pg: In TextButton.blit(), padding was used as if it would be still an int. 2023-11-12 15:36:37 +01:00
e106d87d6d pg: Padding in TextButton() is now a tuple to specify the padding for x and y. 2023-11-12 15:30:20 +01:00
6fb6280bad Removed debug prints. 2023-11-12 15:00:53 +01:00
d89e8bf96e Fixed Crash in TextButton().update():
New button had wrong parameters.
2023-11-12 14:58:04 +01:00
c0aafce29a Fixed Crash in TextButton():
Position was checked if it is an int, but it has to be checked if it is a tuple.
2023-11-12 14:27:41 +01:00
bef56f4b28 Made the callable position in TextButton() work. 2023-11-11 20:21:54 +01:00
95c6346d26 Pygame: Made it possible to pass a function as position for an text button to automatically update the position. 2023-11-09 17:15:30 +01:00
57ded2ff83 Made the changes in the latest commit work. 2023-11-06 20:18:07 +01:00
542e6b39ca Added possibility to pass an executable to buttons to recalculate the position. 2023-11-06 20:09:30 +01:00
e6006e5264 Added update() function to text button. 2023-11-06 19:43:24 +01:00
808b613273 Started working on update function for text buttons. 2023-11-06 19:30:30 +01:00
b758d46139 Fixed crash: pygame.Surface has no collidepoint(). 2023-11-05 19:43:41 +01:00
825322d000 Fixed crash: Font was initialized before pygame.init() 2023-11-05 19:06:57 +01:00
bf09b0bcc6 /tools/ now has to be in /site-packages/ or /dist-packages/. 2023-11-05 18:36:40 +01:00
2ab5e56969 Simplified some things. 2023-11-05 15:49:14 +01:00
2b3ac6a31d Added settings class. 2023-10-31 19:31:22 +01:00
e867318c7f Got buttons working. 2023-08-25 16:15:01 +02:00
Renamed from tools.py (Browse further)