Mercurial > mm7
comparison 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 |
comparison
equal
deleted
inserted
replaced
2354:7f2e111bbafb | 2355:a574a80e7012 |
---|---|
1 #define _CRT_SECURE_NO_WARNINGS | 1 #define _CRT_SECURE_NO_WARNINGS |
2 #include "UIPopup.h" | |
2 #include "Books\UIMapBook.h" | 3 #include "Books\UIMapBook.h" |
3 #include "UIShops.h" | 4 #include "UIShops.h" |
4 #include "..\MM7.h" | 5 #include "..\MM7.h" |
5 #include "..\mm7_unsorted_subs.h" | 6 #include "..\mm7_unsorted_subs.h" |
6 | 7 |
2005 } | 2006 } |
2006 GameUI_DrawItemInfo(item); | 2007 GameUI_DrawItemInfo(item); |
2007 return; | 2008 return; |
2008 } | 2009 } |
2009 | 2010 |
2011 | |
2012 //----- (0045828B) -------------------------------------------------------- | |
2013 unsigned int __fastcall GetSpellColor(signed int a1) | |
2014 { | |
2015 if ( a1 == 0 ) | |
2016 return Color16(0, 0, 0); | |
2017 if ( a1 < 12 ) | |
2018 return Color16(255, 85, 0); | |
2019 if ( a1 < 23 ) | |
2020 return Color16(150, 212, 255); | |
2021 if ( a1 < 34 ) | |
2022 return Color16(0, 128, 255); | |
2023 if ( a1 < 45 ) | |
2024 return Color16(128, 128, 128); | |
2025 if ( a1 < 56 ) | |
2026 return Color16(225, 225, 225); | |
2027 if ( a1 < 67 ) | |
2028 return Color16(235, 15, 255); | |
2029 if ( a1 < 78 ) | |
2030 return Color16(255, 128, 0); | |
2031 if ( a1 < 89 ) | |
2032 return Color16(255, 255, 155); | |
2033 if ( a1 < 100 ) | |
2034 return Color16(192, 192, 240); | |
2035 } |