Compare commits
3 Commits
ae3d2b20d0
...
bf0bf91ce5
| Author | SHA1 | Date | |
|---|---|---|---|
| bf0bf91ce5 | |||
| e46ae17b75 | |||
| b0a6e61917 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/build/
|
/build/
|
||||||
imgui.ini
|
imgui.ini
|
||||||
|
*.wcl
|
||||||
BIN
calendar.wcl
BIN
calendar.wcl
Binary file not shown.
2
keks.wcl
2
keks.wcl
@ -1,2 +0,0 @@
|
|||||||
ŠCl.H¾ÇUn".ŒT¡Ô„Ÿ9¨M]$w‚‰Á#æÆ€ûê-‰<>Ðx¶5©2¥Êm®B*–dqúË7UF‘·7Ò»í‡äeÝ{…6¡Q2ý= ˆò<kè^÷âP0¯eþv¡8ø6ÉÊ3Öy.ê/Å0!˜E~éÿ6ƒxI¶g6qŸèEª ÄgID‚D¹ú5ìÃáILœ-Ê)HjMµí}ëÌê.²,)Úäã¾A
|
|
||||||
á†TR<52>¼Ž?úµlÂE8+¥É¢+ßêøqRaUƒ:‚Ó‡<C393>0Õ:c+×Á¤Ñ˜ë§î¾:'´þš3
|
|
||||||
@ -4,6 +4,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <hydrogen.h>
|
#include <hydrogen.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "inter.h"
|
#include "inter.h"
|
||||||
#include "inter-bold.h"
|
#include "inter-bold.h"
|
||||||
@ -13,11 +14,11 @@ extern bool should_exit;
|
|||||||
extern bool show_demo_window;
|
extern bool show_demo_window;
|
||||||
|
|
||||||
//standard year
|
//standard year
|
||||||
static int year = 2025;
|
static int year;
|
||||||
|
|
||||||
static int current_year = 2025;
|
static int current_year;
|
||||||
static int current_month = 1;
|
static int current_month;
|
||||||
static int current_day = 1;
|
static int current_day;
|
||||||
|
|
||||||
//fonts
|
//fonts
|
||||||
static ImFont *inter_regular;
|
static ImFont *inter_regular;
|
||||||
@ -635,7 +636,13 @@ void per_frame(){
|
|||||||
category.editing = false;
|
category.editing = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ImGui::Text("%s", category.name);
|
uint64_t num_days_this_year = 0;
|
||||||
|
for (size_t j = 0; j < num_categorized_days; j++) {
|
||||||
|
if (categorized_days[j].category == i && categorized_days[j].year == year) {
|
||||||
|
num_days_this_year++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ImGui::Text("%s (%" PRIu64 ")", category.name, num_days_this_year);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::TableSetColumnIndex(2);
|
ImGui::TableSetColumnIndex(2);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user