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

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"
@@ -104,7 +104,7 @@ nodes {
}
type: TYPE_TEXT
text: "120.23 KB"
font: "text_regular"
font: "druid_text_regular"
id: "text_max_value"
pivot: PIVOT_W
outline {
@@ -142,7 +142,7 @@ nodes {
}
type: TYPE_TEXT
text: "120 KB/s"
font: "text_regular"
font: "druid_text_regular"
id: "text_per_second"
pivot: PIVOT_E
outline {
@@ -221,7 +221,7 @@ nodes {
}
type: TYPE_TEXT
text: "120 KB"
font: "text_bold"
font: "druid_text_bold"
id: "text_memory"
outline {
x: 1.0

View File

@@ -51,14 +51,14 @@ function M:push_next_value()
self.mini_graph:set_max_value(max_value)
local max_memory = math.ceil(self.mini_graph:get_highest_value())
self.max_value:set_to(max_memory .. " KB")
self.max_value:set_text(max_memory .. " KB")
local last_second = 0
local last_second_samples = math.ceil(1 / self.delta_time)
for index = #self.memory_samples - last_second_samples + 1, #self.memory_samples do
last_second = last_second + (self.memory_samples[index] or 0)
end
self.text_per_second:set_to(math.ceil(last_second) .. " KB/s")
self.text_per_second:set_text(math.ceil(last_second) .. " KB/s")
end
@@ -66,9 +66,9 @@ function M:update_text_memory()
local memory = math.ceil(collectgarbage("count")) -- in KB
if memory > 1024 then
memory = memory / 1024
self.text_memory:set_to(string.format("%.2f", memory) .. " MB")
self.text_memory:set_text(string.format("%.2f", memory) .. " MB")
else
self.text_memory:set_to(memory .. " KB")
self.text_memory:set_text(memory .. " KB")
end
end

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"
@@ -67,7 +67,7 @@ nodes {
}
type: TYPE_TEXT
text: "Mini Graph"
font: "text_regular"
font: "druid_text_regular"
id: "text_header"
pivot: PIVOT_NW
outline {

View File

@@ -1,6 +1,6 @@
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"

View File

@@ -1,6 +1,6 @@
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"

View File

@@ -1,6 +1,6 @@
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"

View File

@@ -1,6 +1,6 @@
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"

View File

@@ -1,6 +1,6 @@
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"
@@ -37,7 +37,7 @@ nodes {
}
type: TYPE_TEXT
text: "Slider"
font: "text_bold"
font: "druid_text_bold"
id: "text_name"
pivot: PIVOT_W
outline {
@@ -201,7 +201,7 @@ nodes {
}
type: TYPE_TEXT
text: "25 %"
font: "text_bold"
font: "druid_text_bold"
id: "text_value"
outline {
x: 1.0

View File

@@ -1,6 +1,6 @@
fonts {
name: "text_bold"
font: "/druid/fonts/text_bold.font"
name: "druid_text_bold"
font: "/druid/fonts/druid_text_bold.font"
}
textures {
name: "druid"

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"
@@ -67,7 +67,7 @@ nodes {
}
type: TYPE_TEXT
text: "Properties"
font: "text_regular"
font: "druid_text_regular"
id: "text_header"
pivot: PIVOT_NW
outline {