Commit Graph

38 Commits

Author SHA1 Message Date
Michał Czekański
967146e45c Add drawing all Ui elems in on screen init 2020-04-05 22:58:32 +02:00
Michał Czekański
c822a1bfd4 Add calculating pos ui elems in Ui.__init__ 2020-04-05 22:58:06 +02:00
Michał Czekański
e73fc03fc4 Change how UiText renders text
Now UiText renders specified rect surface and on this surface blits text.
2020-04-05 22:37:37 +02:00
Michał Czekański
7f624fe56e Use colors enum properly in Ui class 2020-04-05 22:16:09 +02:00
Michał Czekański
9ddcec6d73 Add fields for params in __init__ in UiText 2020-04-05 22:15:23 +02:00
Michał Czekański
d6945f2bed Move up initialization of bar height in Ui class 2020-04-05 21:58:36 +02:00
Michał Czekański
097dbf1bf4 Merge remote-tracking branch 'origin/Time' into UI 2020-04-05 21:56:00 +02:00
d9c4e9b97b Added timer to main loop 2020-04-05 21:54:35 +02:00
Michał Czekański
aec4ddf2d3 Add method returning specified screen part width 2020-04-05 21:48:43 +02:00
Michał Czekański
900e8e2203 Add ui fields in Ui class 2020-04-05 21:39:08 +02:00
Michał Czekański
cbb9508c19 Add method addLinesToConsoleAndScrollToDisplayThem in UiConsole 2020-04-05 19:06:15 +02:00
Michał Czekański
8b126f636b Fix adding functions to invoke in UiButton 2020-04-04 21:37:42 +02:00
Michał Czekański
65c9171428 Fix writing console lines when line ind is too small or too big 2020-04-04 21:37:25 +02:00
Michał Czekański
bf166232f3 Add method addingLines to UiConsole and fix writing on console 2020-04-04 20:49:02 +02:00
Michał Czekański
41b7cd2a3f Fix font assignment in UiButton and UiText init() 2020-04-04 19:24:47 +02:00
Michał Czekański
3ff1b1b7bc Add method writing lines on UiConsole 2020-04-04 19:24:04 +02:00
Michał Czekański
e8a961cddd Fix generating UiConsole image 2020-04-04 18:40:56 +02:00
Michał Czekański
c9e6fac345 Add UiConsole class with __init__ 2020-04-04 18:37:18 +02:00
Michał Czekański
b01eaafdc4 Add invoking functions when UiButton click 2020-04-04 18:26:19 +02:00
Michał Czekański
6fc3a3155d Add button colors parameter, make code clearer in UiButton 2020-04-04 15:48:51 +02:00
Michał Czekański
74a08be69f Add UiButton class 2020-04-04 02:29:33 +02:00
Michał Czekański
429248c4b5 Add method updating UiBar fill 2020-04-04 01:52:01 +02:00
Michał Czekański
8dd2522b16 Add UiText class 2020-04-04 00:35:40 +02:00
Michał Czekański
5e76932a55 Add UiBar class 2020-04-04 00:35:22 +02:00
Michał Czekański
ed1d057be2 Add UiImage class 2020-04-04 00:35:07 +02:00
Michał Czekański
bb29d0cd1f Make UiElement inherit from pygame.sprite.Sprite 2020-04-03 22:55:22 +02:00
9e9fb7c4b2 Merge remote-tracking branch 'origin/drawTesting' 2020-04-03 22:12:38 +02:00
e78099deb1 Moved sprite group initialization higher in order 2020-04-03 22:08:27 +02:00
fcac23a878 Implemented timer functionality 2020-04-03 22:08:12 +02:00
46712749b6 Added alpha draw method 2020-04-02 18:31:21 +02:00
f535da1594 Added basic events 2020-04-02 17:30:25 +02:00
e8a8739c9d Paths are now relative to runnable script 2020-04-02 16:55:19 +02:00
db2f12846d Added runnable script 2020-04-02 16:54:55 +02:00
14fac73279 Implemented screen initialization 2020-04-02 16:49:03 +02:00
5e33e55396 initialized pygame 2020-04-02 15:50:47 +02:00
1c28b3a644 Initialized classes & file structure 2020-03-31 21:47:09 +02:00
eaef37c5a2 Spelling 2020-03-02 18:42:01 +00:00
6c8037c603 initial commit 2020-03-02 19:41:00 +01:00