From f710506c6c2d537e5eae1112617f4d52882d3f58 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 16 Feb 2005 07:50:46 +0000 Subject: [PATCH] add TableMetricLookup --- stepmania/Themes/default/Scripts/Utilities.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/Themes/default/Scripts/Utilities.lua b/stepmania/Themes/default/Scripts/Utilities.lua index 688f9c6995..72df0fa42b 100644 --- a/stepmania/Themes/default/Scripts/Utilities.lua +++ b/stepmania/Themes/default/Scripts/Utilities.lua @@ -20,6 +20,15 @@ function FindSelection( list ) return nil end +-- Look up each value in a table, returning a table with the resulting strings. +function TableMetricLookup( t, group ) + local ret = { } + for key, val in t do + Trace(val) + ret[key] = THEME:GetMetric(group,val) + end + return ret +end -- (c) 2005 Glenn Maynard -- All rights reserved.