This commit is contained in:
2026-02-26 22:59:30 +01:00
parent 59e74df0a9
commit acb2ea5fdd
2 changed files with 56 additions and 35 deletions

12
main.py
View File

@@ -69,22 +69,22 @@ INDICATOR_POS = Vector2(TEXT_PAGE_WIDTH-(INDICATOR_SIZE+INDICATOR_MARGIN),TEXT_P
class WordColor(Enum):
Red = 0 # Names
Green = 1 # Nouns
Lime = 2 # Numbers and such
Lime = 6 # Numbers and such
Blue = 3 # Verbs
Grey = 4 # Other
Purple = 5 # Places
Yellow = 6 # Titles
Purple = 2 # Places
Yellow = 5 # Titles
Orange = 7 # Classes
def color(self):
return [
"#b03334",
"#6a5f31",
"#62a032",
"#623a75",
"#297cb7",
"#767978",
"#623a75",
"#bda627",
"#62a032",
"#b76c2d",
][self.value]
@@ -242,7 +242,7 @@ def draw_word_slot(word_slot: WordSlot, screen: pygame.surface.Surface):
pos.x + WORD_BORDER_WIDTH + WORD_WIDTH//4,
pos.y + WORD_BORDER_WIDTH,
(WORD_WIDTH*3)//4 - WORD_BORDER_WIDTH*2+1,
WORD_HEIGHT - WORD_BORDER_WIDTH*2+1
WORD_HEIGHT - WORD_BORDER_WIDTH*2
),
border_radius=WORD_BORDER_RADIUS
)