that works pretty well if the user doesn't resize his window
in window mode, my graphs look like this: when i go into fullscreen mode, everything gets scaled, except the black sprite i'm using for the background: Anybody have an idea?
with natural_height instead of height the window frame just stays smaller and the bottom of the graph dissapears (the lightblue graph)
and also adding natural_width makes the whole thing disappear...
Code: Select all
gui.add{type = "sprite", name = "graph", sprite="rr-black-background", direction = "vertical"}
gui.graph.style.width=math.floor(80*PIXEL_WIDTH)+32
gui.graph.style.height=GRAPH_HEIGHT
--gui.graph.style.scaleable = false
gui.graph.add{type = "table", column_count=COLUMN_COUNT+1, name = "table", direction = "vertical"}
gui.graph.table.style.horizontal_spacing=0
gui.graph.table.style.vertical_spacing=0
--gui.graph.table.style.scaleable = false
{
type="sprite",
name="rr-black-background",
filename = "__RealisticReactors__/graphics/black192x101.png",
priority = "extra-high",
width = 192,
height = 101,
},