summaryrefslogtreecommitdiff
path: root/src/gui/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/status.h')
-rw-r--r--src/gui/status.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/status.h b/src/gui/status.h
index 403a7d59..78d35a32 100644
--- a/src/gui/status.h
+++ b/src/gui/status.h
@@ -62,6 +62,11 @@ class StatusWindow : public Window, public gcn::ActionListener
static void updateXPBar(ProgressBar *bar, bool percent = true);
static void updateJobBar(ProgressBar *bar, bool percent = true);
+ /**
+ * Used by updateHPBar to get the weighted average of two colors
+ */
+ static float weightedAverage(float n1, float n2, float w);
+
private:
LocalPlayer *mPlayer;