REF use semicircle for dials

This commit is contained in:
Nathan Dwarshuis 2021-07-09 23:19:26 -04:00
parent 4579bdb2f8
commit 68b2b673b4
3 changed files with 18 additions and 16 deletions

2
core

@ -1 +1 @@
Subproject commit bc8a4548e536c4a46e78712cfe6c578e85ab694b Subproject commit 09ed55940cd075ca33b1037482e1293321dcbe4a

View File

@ -65,11 +65,12 @@ local DIAL_Y = header.bottom_y + DIAL_RADIUS + _DIAL_THICKNESS_ / 2
-- arc_pattern = _G_Patterns_.INDICATOR_BG -- arc_pattern = _G_Patterns_.INDICATOR_BG
-- } -- }
local dial = _G_Widget_.Dial( local dial = _G_Widget_.Dial(
DIAL_X, _G_Widget_.make_semicircle(
DIAL_Y, _G_Widget_.make_point(DIAL_X, DIAL_Y),
DIAL_RADIUS, DIAL_RADIUS,
90, 90,
360, 360
),
_DIAL_THICKNESS_, _DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_BG, _G_Patterns_.INDICATOR_BG,
_G_Patterns_.INDICATOR_FG_PRIMARY, _G_Patterns_.INDICATOR_FG_PRIMARY,

View File

@ -69,16 +69,17 @@ local _create_core_ = function(cores, id, x, y)
-- arc_pattern = _G_Patterns_.INDICATOR_BG -- arc_pattern = _G_Patterns_.INDICATOR_BG
-- }, -- },
dials = _G_Widget_.CompoundDial( dials = _G_Widget_.CompoundDial(
x, _G_Widget_.make_semicircle(
y, _G_Widget_.make_point(x, y),
_DIAL_OUTER_RADIUS_,
90, 90,
360, 360
),
_G_Patterns_.INDICATOR_BG, _G_Patterns_.INDICATOR_BG,
_G_Patterns_.INDICATOR_FG_PRIMARY, _G_Patterns_.INDICATOR_FG_PRIMARY,
_G_Patterns_.INDICATOR_FG_CRITICAL, _G_Patterns_.INDICATOR_FG_CRITICAL,
0.8, 0.8,
_DIAL_INNER_RADIUS_, _DIAL_INNER_RADIUS_,
_DIAL_OUTER_RADIUS_,
_DIAL_SPACING_, _DIAL_SPACING_,
NUM_THREADS_PER_CORE NUM_THREADS_PER_CORE
), ),