starlit  Diff

Differences From Artifact [d00e83c8f9]:

To Artifact [461714c4c0]:


   191    191   							user:reconfigureSuit()
   192    192   						end;
   193    193   						pullConf = function()
   194    194   							local stack = inv:get_stack('starlit_suit_chips', pgm.chipSlot)
   195    195   							pgm.fd.chip=stack
   196    196   							pgm.file = pgm.fd:read()
   197    197   						end;
          198  +						availableChips = function()
          199  +							return inv:get_list('starlit_suit_chips')
          200  +						end;
          201  +						drawCurrent = function(...)
          202  +							return user:suitDrawCurrent(...)
          203  +						end;
   198    204   					}
   199    205   				end
   200    206   
   201    207   				if pgm.sw.powerKind == 'active' then
   202    208   					if cfg then
   203    209   						user:openUI(pgm.sw.ui, 'index', {
   204    210   							context = 'suit';
................................................................................
   378    384   				return starlit.ui.build {
   379    385   					kind = 'vert', mode = 'sw';
   380    386   					padding = 0.5;
   381    387   				}
   382    388   			end;
   383    389   		};
   384    390   		body = {
          391  +			refresh = true;
   385    392   			render = function(state, user)
   386    393   				local barh = .75
   387    394   				local tb = {
   388    395   					kind = 'vert', mode = 'sw';
   389    396   					padding = 0.5, 
   390    397   					{kind = 'hztl', padding = 0.25;
   391    398   						{kind = 'label', text = 'Name', w = 2, h = barh};