This commit is contained in:
Insality
2024-11-20 23:36:04 +02:00
parent f2fa5320d2
commit 7ea8691fc5
104 changed files with 451 additions and 12743 deletions

View File

@@ -1,10 +1,10 @@
fonts {
name: "text_regular"
font: "/druid/fonts/text_regular.font"
name: "druid_text_regular"
font: "/druid/fonts/druid_text_regular.font"
}
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"
@@ -122,7 +122,7 @@ nodes {
}
type: TYPE_TEXT
text: "12 FPS"
font: "text_regular"
font: "druid_text_regular"
id: "text_min_fps"
pivot: PIVOT_W
outline {
@@ -159,7 +159,7 @@ nodes {
}
type: TYPE_TEXT
text: "60 FPS"
font: "text_bold"
font: "druid_text_bold"
id: "text_fps"
outline {
x: 1.0

View File

@@ -75,9 +75,9 @@ function M:push_fps_value()
self.mini_graph:push_line_value(1 / average_frame_time)
self.text_fps:set_to(tostring(math.ceil(1 / average_frame_time) .. " FPS"))
self.text_fps:set_text(tostring(math.ceil(1 / average_frame_time) .. " FPS"))
local lowest_value = math.ceil(self.mini_graph:get_lowest_value())
self.text_min_fps:set_to(lowest_value .. " lowest")
self.text_min_fps:set_text(lowest_value .. " lowest")
end