Mercurial > mm7
diff GUIProgressBar.cpp @ 396:4a60371fd70c
Слияние
author | Ritor1 |
---|---|
date | Fri, 22 Feb 2013 21:47:55 +0600 |
parents | edd2d8b7e3c4 |
children | 137c59c3dbc4 |
line wrap: on
line diff
--- a/GUIProgressBar.cpp Fri Feb 22 21:47:42 2013 +0600 +++ b/GUIProgressBar.cpp Fri Feb 22 21:47:55 2013 +0600 @@ -1,3 +1,5 @@ +#include <assert.h> + #include "GUIProgressBar.h" #include "LOD.h" #include "Mouse.h" @@ -23,8 +25,8 @@ int v5; // ecx@8 int v6; // edi@8 int v7; // edx@14 - const char *v8; // [sp-8h] [bp-84h]@20 - unsigned int v9; // [sp-4h] [bp-80h]@20 + //const char *v8; // [sp-8h] [bp-84h]@20 + //unsigned int v9; // [sp-4h] [bp-80h]@20 char Str1[64]; // [sp+4h] [bp-78h]@16 if (type < 1 || type > 1) @@ -74,7 +76,8 @@ Draw(); return true; } - if ( !pParty->uAlignment ) + + /*if ( !pParty->uAlignment ) { v9 = 2; v8 = "bardata-b"; @@ -92,7 +95,15 @@ v8 = "bardata-c"; LABEL_23: pIcons_LOD->_410522(&pBardata, v8, v9); + }*/ + switch (pParty->alignment) + { + case PartyAlignment_Good: pIcons_LOD->_410522(&pBardata, "bardata-b", 2); break; + case PartyAlignment_Neutral: pIcons_LOD->_410522(&pBardata, "bardata", 2); break; + case PartyAlignment_Evil: pIcons_LOD->_410522(&pBardata, "bardata-c", 2); break; + default: assert(false); } + uProgressCurrent = 0; uProgressMax = 26; Draw();