Commit graph

56 commits

Author SHA1 Message Date
0cd5270419 Using deprecated.deprecated instead of warnings.deprecated because warnings.deprecated is not compatible with all python3 versions. 2024-11-21 18:25:44 +01:00
c56e93a617 Added some comments. 2024-08-29 15:58:37 +02:00
ec8ba98b56 Moved some code to the right place. 2024-08-29 15:27:02 +02:00
5a9224bdae Added sparse voxel octree system. 2024-08-29 15:18:15 +02:00
800e7f306d Started work on infinite matrix. 2024-07-20 20:15:37 +02:00
805763af19 Corrected a word. 2024-07-20 19:06:26 +02:00
0dfb7008d7 Marked old textfile function as deprecated because it is not safe. 2024-07-20 19:05:46 +02:00
3dba928436 Just placed one more symbol that missed. 2024-07-20 17:32:30 +02:00
9121342bff Made the TextButton a pygame.sprite.Sprite. 2024-04-20 15:55:49 +02:00
67424f067f Added some comments and descriptions. 2024-03-25 15:14:47 +01:00
80af2234a6 Added example scripts to demonstrate the pygame tools. 2024-03-25 14:25:45 +01:00
aed66009a3 Corrected something. 2024-03-25 14:25:05 +01:00
60271e4164 Made a better multiline text class. 2024-03-25 14:24:13 +01:00
6161c081b1 Added function to get nth occurrence of a string in another string. 2024-03-24 18:42:43 +01:00
727c7bfd5c Improved MultilineText. 2024-03-22 21:07:26 +01:00
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
45ad97fc13 Added some descriptions. 2024-03-14 18:36:52 +01:00
f5e44bf45f Made it not crash if the class contains functions. 2024-02-25 16:51:10 +01:00
246875690f Corrected some imports. 2024-02-25 15:03:11 +01:00
9a52203ba2 Added some comments. 2024-02-25 14:48:51 +01:00
9bb90c14f1 Added 2 functions to store dataclasses in json files. 2024-02-25 14:29:14 +01:00
57463e8ebb README.md aktualisiert 2024-02-25 14:10:07 +01:00
65d7dbd043 Added a class that can save dataclasses to a json file. 2024-02-24 20:51:58 +01:00
6292f0b5e9 README.md aktualisiert 2024-02-24 17:23:21 +01:00
2fa9ce7f1d README.md aktualisiert 2024-01-28 11:38:15 +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
eaae218243 Corrected the name of a variable and removed a debug print. 2024-01-05 22:30:21 +01:00
16424d1f23 Added asap() and rsap() functions.
These functions are so simple that I am too lazy to explain their tasks.
2024-01-05 22:14:36 +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
6df677bb84 Merge remote-tracking branch 'origin/master' 2023-11-11 20:22:08 +01:00
bef56f4b28 Made the callable position in TextButton() work. 2023-11-11 20:21:54 +01:00
58506392cb Added readme. 2023-11-11 19:50:32 +01:00
8633958f29 Renamed settings.py to file_dict.py, because it can not only be used to store settings. 2023-11-11 18:34:28 +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
9f8c4ce1a7 settings.py: Added possibility to leave path unfilled in save() 2023-11-05 19:08:12 +01:00
825322d000 Fixed crash: Font was initialized before pygame.init() 2023-11-05 19:06:57 +01:00