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:
parent
1fa6d405a5
commit
c3d3ab6f97
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user