mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Display the units x/x/x value of the base in the base menu.
This commit is contained in:
parent
fd54a5f86c
commit
5eb921948a
@ -48,7 +48,9 @@ class BaseMenu(Menu):
|
|||||||
# Header
|
# Header
|
||||||
head = Frame(self.frame, **STYLES["header"])
|
head = Frame(self.frame, **STYLES["header"])
|
||||||
head.grid(row=row, column=0, columnspan=5, sticky=NSEW, pady=5)
|
head.grid(row=row, column=0, columnspan=5, sticky=NSEW, pady=5)
|
||||||
Label(head, text=self.cp.name, **STYLES["title"]).grid()
|
Label(head, text=self.cp.name, **STYLES["title"]).grid(row=0, column=0, sticky=NW+S)
|
||||||
|
units_title = "{}/{}/{}".format(self.cp.base.total_planes, self.cp.base.total_armor, self.cp.base.total_aa)
|
||||||
|
Label(head, text=units_title, **STYLES["strong-grey"]).grid(row=0, column=1, sticky=NE+S)
|
||||||
row += 1
|
row += 1
|
||||||
|
|
||||||
self.budget_label = Label(self.frame, text="Budget: {}m".format(self.game.budget), **STYLES["widget"])
|
self.budget_label = Label(self.frame, text="Budget: {}m".format(self.game.budget), **STYLES["widget"])
|
||||||
|
|||||||
@ -6,6 +6,7 @@ PADDING_Y = 5
|
|||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
FG_COLOR = "white"
|
FG_COLOR = "white"
|
||||||
|
FG_COLOR_LIGHT = "#dddddd"
|
||||||
BG_COLOR = "#4E5760"
|
BG_COLOR = "#4E5760"
|
||||||
BTN_COLOR = "#699245"
|
BTN_COLOR = "#699245"
|
||||||
YELLOW = "#FDB731"
|
YELLOW = "#FDB731"
|
||||||
@ -25,6 +26,7 @@ STYLES["frame-wrapper"] = {"bg": BG_COLOR, "relief":"sunken"}
|
|||||||
|
|
||||||
STYLES["body"] = {"bg": BG_COLOR, "padx": 25, "pady": 35}
|
STYLES["body"] = {"bg": BG_COLOR, "padx": 25, "pady": 35}
|
||||||
STYLES["strong"] = {"font": BOLD_FONT, "bg": BG_TITLE_COLOR, "fg": FG_COLOR}
|
STYLES["strong"] = {"font": BOLD_FONT, "bg": BG_TITLE_COLOR, "fg": FG_COLOR}
|
||||||
|
STYLES["strong-grey"] = {"font": BOLD_FONT, "bg": BG_TITLE_COLOR, "fg": FG_COLOR_LIGHT}
|
||||||
STYLES["widget"] = {"bg": BG_COLOR, "fg": FG_COLOR, "padx": PADDING_X, "pady": PADDING_Y, "font": DEFAULT_FONT}
|
STYLES["widget"] = {"bg": BG_COLOR, "fg": FG_COLOR, "padx": PADDING_X, "pady": PADDING_Y, "font": DEFAULT_FONT}
|
||||||
STYLES["radiobutton"] = {"bg": BG_COLOR, "fg": "black", "padx": PADDING_X, "pady": PADDING_Y, "font": DEFAULT_FONT,
|
STYLES["radiobutton"] = {"bg": BG_COLOR, "fg": "black", "padx": PADDING_X, "pady": PADDING_Y, "font": DEFAULT_FONT,
|
||||||
"activebackground": BG_COLOR, "highlightbackground": BG_COLOR, "selectcolor": "white"}
|
"activebackground": BG_COLOR, "highlightbackground": BG_COLOR, "selectcolor": "white"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user