From ae44ed27483132495c46a6167bdfd8955b62a26e Mon Sep 17 00:00:00 2001 From: danielmartin0 Date: Wed, 25 Sep 2024 16:58:21 +0100 Subject: [PATCH] pirates: remove subpanel_frame --- maps/pirates/common.lua | 2 ++ maps/pirates/gui/common.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/maps/pirates/common.lua b/maps/pirates/common.lua index b834e30d..2ccf7bf1 100644 --- a/maps/pirates/common.lua +++ b/maps/pirates/common.lua @@ -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', diff --git a/maps/pirates/gui/common.lua b/maps/pirates/gui/common.lua index 4ddc68c6..b2e8fa19 100644 --- a/maps/pirates/gui/common.lua +++ b/maps/pirates/gui/common.lua @@ -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