Mercurial > mm7
comparison mm7_2.cpp @ 949:c0d0656aa662
Awards
author | Nomad |
---|---|
date | Wed, 01 May 2013 20:04:24 +0200 |
parents | 5a2dbb00c399 |
children | a92a34f9aef5 |
comparison
equal
deleted
inserted
replaced
948:5a2dbb00c399 | 949:c0d0656aa662 |
---|---|
5523 if ( a1 < 67 ) | 5523 if ( a1 < 67 ) |
5524 { | 5524 { |
5525 v4 = 255; | 5525 v4 = 255; |
5526 v1 = 15; | 5526 v1 = 15; |
5527 v2 = 235; | 5527 v2 = 235; |
5528 return GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v2, v1, v4); | 5528 return TargetColor(v2, v1, v4); |
5529 } | 5529 } |
5530 goto LABEL_21; | 5530 goto LABEL_21; |
5531 } | 5531 } |
5532 LABEL_15: | 5532 LABEL_15: |
5533 if ( a1 < 56 ) | 5533 if ( a1 < 56 ) |
5543 v2 = 128; | 5543 v2 = 128; |
5544 LABEL_13: | 5544 LABEL_13: |
5545 v4 = v2; | 5545 v4 = v2; |
5546 LABEL_30: | 5546 LABEL_30: |
5547 v1 = v2; | 5547 v1 = v2; |
5548 return GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v2, v1, v4); | 5548 return TargetColor(v2, v1, v4); |
5549 } | 5549 } |
5550 goto LABEL_15; | 5550 goto LABEL_15; |
5551 } | 5551 } |
5552 LABEL_8: | 5552 LABEL_8: |
5553 if ( a1 < 34 ) | 5553 if ( a1 < 34 ) |
5554 { | 5554 { |
5555 v4 = 255; | 5555 v4 = 255; |
5556 v1 = 128; | 5556 v1 = 128; |
5557 LABEL_32: | 5557 LABEL_32: |
5558 v2 = 0; | 5558 v2 = 0; |
5559 return GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v2, v1, v4); | 5559 return TargetColor(v2, v1, v4); |
5560 } | 5560 } |
5561 goto LABEL_11; | 5561 goto LABEL_11; |
5562 } | 5562 } |
5563 } | 5563 } |
5564 else | 5564 else |
5567 { | 5567 { |
5568 v4 = 0; | 5568 v4 = 0; |
5569 v1 = 85; | 5569 v1 = 85; |
5570 LABEL_23: | 5570 LABEL_23: |
5571 v2 = 255; | 5571 v2 = 255; |
5572 return GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v2, v1, v4); | 5572 return TargetColor(v2, v1, v4); |
5573 } | 5573 } |
5574 } | 5574 } |
5575 if ( a1 >= 23 ) | 5575 if ( a1 >= 23 ) |
5576 goto LABEL_8; | 5576 goto LABEL_8; |
5577 v4 = 255; | 5577 v4 = 255; |
5578 v1 = 212; | 5578 v1 = 212; |
5579 v2 = 150; | 5579 v2 = 150; |
5580 return GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v2, v1, v4); | 5580 return TargetColor(v2, v1, v4); |
5581 } | 5581 } |
5582 | 5582 |
5583 //----- (004583B0) -------------------------------------------------------- | 5583 //----- (004583B0) -------------------------------------------------------- |
5584 LevelDecoration::LevelDecoration() | 5584 LevelDecoration::LevelDecoration() |
5585 { | 5585 { |
9873 a1.uFrameY += 12; | 9873 a1.uFrameY += 12; |
9874 a1.uFrameHeight -= 12; | 9874 a1.uFrameHeight -= 12; |
9875 a1.uFrameZ = a1.uFrameWidth + a1.uFrameX - 1; | 9875 a1.uFrameZ = a1.uFrameWidth + a1.uFrameX - 1; |
9876 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; | 9876 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; |
9877 v1 = pItemsTable->pItems[(unsigned int)pGUIWindow_ScrollWindow->ptr_1C + 700].pName; | 9877 v1 = pItemsTable->pItems[(unsigned int)pGUIWindow_ScrollWindow->ptr_1C + 700].pName; |
9878 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 9878 v2 = TargetColor(0xFFu, 0xFFu, 0x9Bu); |
9879 sprintf(pTmpBuf, format_4E2D80, v2, v1); | 9879 sprintf(pTmpBuf, format_4E2D80, v2, v1); |
9880 a1.DrawTitleText(pFontCreate, 0, 0, 0, pTmpBuf, 3u); | 9880 a1.DrawTitleText(pFontCreate, 0, 0, 0, pTmpBuf, 3u); |
9881 return a1.DrawText( | 9881 return a1.DrawText( |
9882 pFontSmallnum, | 9882 pFontSmallnum, |
9883 1, | 9883 1, |