1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-16 02:47:48 +02:00

pirates: remove subpanel_frame

This commit is contained in:
danielmartin0 2024-09-25 16:58:21 +01:00
parent 1fa6d405a5
commit c3d3ab6f97
2 changed files with 3 additions and 1 deletions

View File

@ -699,6 +699,7 @@ function Public.consume_undock_cost_resources()
end
end
-- TODO: Check if we need to update this borrowed code?
function Public.new_healthbar(text, target_entity, max_health, optional_id, health, size, extra_offset, location_override)
health = health or max_health
size = size or 0.5
@ -724,6 +725,7 @@ function Public.new_healthbar(text, target_entity, max_health, optional_id, heal
render2 =
rendering.draw_text(
{
text = '',
color = { 255, 255, 255 },
scale = 1.2 + size * 2,
render_layer = 'light-effect',

View File

@ -196,7 +196,7 @@ function Public.flow_add_subpanel(flow, name)
type = 'frame',
direction = 'vertical',
})
flow2.style = 'subpanel_frame'
flow2.style = 'tabbed_pane_frame'
flow2.style.natural_width = 100
flow2.style.top_padding = -2
flow2.style.top_margin = -8