From c1923d7361cf0eb2b258832ab1902b0f8003194e Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sat, 26 Jun 2010 20:03:15 -0500 Subject: [PATCH] Changed a dropdown to use the same xml/lua split as the rest --- weights.lua | 5 ----- weights.xml | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/weights.lua b/weights.lua index 7a674f4..a7ceb1d 100644 --- a/weights.lua +++ b/weights.lua @@ -598,11 +598,6 @@ function ClassDropDownInitialize(dropdown) end end -function ClassDropDownOnShow(dropdown) - UIDropDownMenu_Initialize(dropdown, ClassDropDownInitialize); - UIDropDownMenu_SetSelectedValue(dropdown, WeightsWatcher.playerClass) -end - function DropDownOnClick(choice, dropdown) UIDropDownMenu_SetSelectedValue(dropdown, choice.value, false) end diff --git a/weights.xml b/weights.xml index 8bd7f33..b14c545 100644 --- a/weights.xml +++ b/weights.xml @@ -744,7 +744,8 @@ - ClassDropDownOnShow(self); + UIDropDownMenu_Initialize(self, ww_ClassDropDownInitialize); + UIDropDownMenu_SetSelectedValue(self, WeightsWatcher.playerClass) -- 1.7.9.5