comparison UI/UIHouses.cpp @ 1606:25f5c041f39b

m
author Ritor1
date Wed, 11 Sep 2013 00:16:49 +0600
parents 1264fce1a17f
children fb809d1891bd
comparison
equal deleted inserted replaced
1582:d3d539924e5e 1606:25f5c041f39b
3900 unsigned int v36; // edi@51 3900 unsigned int v36; // edi@51
3901 GUIButton *v37; // eax@52 3901 GUIButton *v37; // eax@52
3902 int v38; // eax@52 3902 int v38; // eax@52
3903 signed int v39; // ecx@54 3903 signed int v39; // ecx@54
3904 int v40; // edi@57 3904 int v40; // edi@57
3905 GUIButton *v41; // eax@60 3905 //GUIButton *v41; // eax@60
3906 GUIButton *v42; // esi@60 3906 //GUIButton *v42; // esi@60
3907 const char *v43; // ebx@60 3907 const char *v43; // ebx@60
3908 int v44; // eax@60 3908 int v44; // eax@60
3909 unsigned int v45; // ecx@60 3909 unsigned int v45; // ecx@60
3910 unsigned __int16 v46; // ax@60 3910 unsigned __int16 v46; // ax@60
3911 GUIFont *v47; // ebx@64 3911 GUIFont *v47; // ebx@64
4114 pNPC = (NPCData *)32; 4114 pNPC = (NPCData *)32;
4115 pInString = (char *)2; 4115 pInString = (char *)2;
4116 v40 = (174 - (signed int)pNPC * v39 - v34) / 2 - (signed int)pNPC / 2 + 138; 4116 v40 = (174 - (signed int)pNPC * v39 - v34) / 2 - (signed int)pNPC / 2 + 138;
4117 for ( i = pDialogueWindow->pStartingPosActiveItem; i < pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; ++i ) 4117 for ( i = pDialogueWindow->pStartingPosActiveItem; i < pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; ++i )
4118 { 4118 {
4119 v41 = pDialogueWindow->GetControl(i); 4119 pButton = pDialogueWindow->GetControl(i);
4120 v42 = v41; 4120 //v42 = v41;
4121 v43 = v41->pButtonName; 4121 v43 = pButton->pButtonName;
4122 v41->uY = (unsigned int)((char *)pNPC + v40); 4122 pButton->uY = (unsigned int)((char *)pNPC + v40);
4123 v44 = pFontArrus->CalcTextHeight(v41->pButtonName, &v52, 0, 0); 4123 v44 = pFontArrus->CalcTextHeight(pButton->pButtonName, &v52, 0, 0);
4124 v45 = v42->uY; 4124 v45 = pButton->uY;
4125 v42->uHeight = v44; 4125 pButton->uHeight = v44;
4126 v40 = v45 + v44 - 1; 4126 v40 = v45 + v44 - 1;
4127 v42->uW = v40; 4127 pButton->uW = v40;
4128 v46 = TargetColor(0xE1u, 0xCDu, 0x23u); 4128 v46 = TargetColor(0xE1u, 0xCDu, 0x23u);
4129 if ( (char *)pDialogueWindow->pCurrentPosActiveItem != pInString ) 4129 if ( (char *)pDialogueWindow->pCurrentPosActiveItem != pInString )
4130 v46 = TargetColor(0xFFu, 0xFFu, 0xFFu); 4130 v46 = TargetColor(0xFFu, 0xFFu, 0xFFu);
4131 v52.DrawTitleText(pFontArrus, 0, v45, v46, v43, 3); 4131 v52.DrawTitleText(pFontArrus, 0, v45, v46, v43, 3);
4132 ++pInString; 4132 ++pInString;