Mercurial > mm7
diff UI/UIPopup.cpp @ 2355:a574a80e7012
Moving more functions out of unsorted_subs
author | Grumpy7 |
---|---|
date | Wed, 09 Apr 2014 22:58:22 +0200 |
parents | 7c10dfb6d802 |
children | bddcaf5d5db2 14c05b876218 |
line wrap: on
line diff
--- a/UI/UIPopup.cpp Wed Apr 09 21:58:46 2014 +0200 +++ b/UI/UIPopup.cpp Wed Apr 09 22:58:22 2014 +0200 @@ -1,4 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS +#include "UIPopup.h" #include "Books\UIMapBook.h" #include "UIShops.h" #include "..\MM7.h" @@ -2007,3 +2008,28 @@ return; } + +//----- (0045828B) -------------------------------------------------------- +unsigned int __fastcall GetSpellColor(signed int a1) +{ + if ( a1 == 0 ) + return Color16(0, 0, 0); + if ( a1 < 12 ) + return Color16(255, 85, 0); + if ( a1 < 23 ) + return Color16(150, 212, 255); + if ( a1 < 34 ) + return Color16(0, 128, 255); + if ( a1 < 45 ) + return Color16(128, 128, 128); + if ( a1 < 56 ) + return Color16(225, 225, 225); + if ( a1 < 67 ) + return Color16(235, 15, 255); + if ( a1 < 78 ) + return Color16(255, 128, 0); + if ( a1 < 89 ) + return Color16(255, 255, 155); + if ( a1 < 100 ) + return Color16(192, 192, 240); +} \ No newline at end of file