Mercurial > might-and-magic-trilogy
comparison mm7_4.cpp @ 152:e27e846bc996
28.11.12
author | Ritor1 |
---|---|
date | Wed, 28 Nov 2012 17:42:03 +0600 |
parents | 918dca162239 |
children | 60bb9d93c097 |
comparison
equal
deleted
inserted
replaced
151:a8f4a158e284 | 152:e27e846bc996 |
---|---|
5789 unsigned int uXc; // [sp+14h] [bp-8h]@13 | 5789 unsigned int uXc; // [sp+14h] [bp-8h]@13 |
5790 signed int uXd; // [sp+14h] [bp-8h]@16 | 5790 signed int uXd; // [sp+14h] [bp-8h]@16 |
5791 | 5791 |
5792 if ( pMessageQueue_50CBD0->uNumMessages ) | 5792 if ( pMessageQueue_50CBD0->uNumMessages ) |
5793 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 5793 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
5794 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0)); | 5794 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0));// ?? |
5795 ++pIcons_LOD->uTexturePacksCount; | 5795 ++pIcons_LOD->uTexturePacksCount; |
5796 if ( !pIcons_LOD->uNumPrevLoadedFiles ) | 5796 if ( !pIcons_LOD->uNumPrevLoadedFiles ) |
5797 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; | 5797 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; |
5798 pCurrentScreen = 21; | 5798 pCurrentScreen = 21; |
5799 uPlayerCreationUI_ArrowAnim = 0; | 5799 uPlayerCreationUI_ArrowAnim = 0; |
5810 pTexture_IC_KNIGHT[7] = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("IC_DRUID", TEXTURE_16BIT_PALETTE)]; | 5810 pTexture_IC_KNIGHT[7] = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("IC_DRUID", TEXTURE_16BIT_PALETTE)]; |
5811 pTexture_IC_KNIGHT[8] = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("IC_SORC", TEXTURE_16BIT_PALETTE)]; | 5811 pTexture_IC_KNIGHT[8] = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("IC_SORC", TEXTURE_16BIT_PALETTE)]; |
5812 pTexture_MAKETOP = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("MAKETOP", TEXTURE_16BIT_PALETTE)]; | 5812 pTexture_MAKETOP = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("MAKETOP", TEXTURE_16BIT_PALETTE)]; |
5813 uX = 0; | 5813 uX = 0; |
5814 pTexture_MAKESKY = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("MAKESKY", TEXTURE_16BIT_PALETTE)]; | 5814 pTexture_MAKESKY = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("MAKESKY", TEXTURE_16BIT_PALETTE)]; |
5815 do | 5815 do // load PlayerPortraits texture |
5816 { | 5816 { |
5817 sprintf(pTmpBuf, "%s01", pPlayerPortraitsNames[uX]); | 5817 sprintf(pTmpBuf, "%s01", pPlayerPortraitsNames[uX]); |
5818 v1 = pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE); | 5818 v1 = pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE); |
5819 v2 = uX * 4; | 5819 v2 = uX * 4; |
5820 ++uX; | 5820 ++uX; |
5845 pGUIWindow_CurrentMenu->CreateButton(uXa, 120u, 145u, 25u, 1, 0, 0x3Cu, uControlParama, 0, "", 0); | 5845 pGUIWindow_CurrentMenu->CreateButton(uXa, 120u, 145u, 25u, 1, 0, 0x3Cu, uControlParama, 0, "", 0); |
5846 uXa += 158; | 5846 uXa += 158; |
5847 ++uControlParama; | 5847 ++uControlParama; |
5848 } | 5848 } |
5849 while ( (signed int)uXa < 640 ); | 5849 while ( (signed int)uXa < 640 ); |
5850 pCreationUI_BtnPressLeft[0] = pGUIWindow_CurrentMenu->CreateButton(10u, 32u, 11u, 13u, 1, 0, 0xABu, 0, 0, "", pTexture_presleft, 0); | 5850 pCreationUI_BtnPressLeft[0] = pGUIWindow_CurrentMenu->CreateButton(10, 32, 11, 13, 1, 0, 0xABu, 0, 0, "", pTexture_presleft, 0); |
5851 pCreationUI_BtnPressLeft[1] = pGUIWindow_CurrentMenu->CreateButton(169u, 32u, 11u, 13u, 1, 0, 0xABu, 1u, 0, "", pTexture_presleft, 0); | 5851 pCreationUI_BtnPressLeft[1] = pGUIWindow_CurrentMenu->CreateButton(169, 32, 11, 13, 1, 0, 0xABu, 1, 0, "", pTexture_presleft, 0); |
5852 pCreationUI_BtnPressLeft[2] = pGUIWindow_CurrentMenu->CreateButton( | 5852 pCreationUI_BtnPressLeft[2] = pGUIWindow_CurrentMenu->CreateButton(327, 32, 11, 13, 1, 0, 0xABu, 2, 0, "", pTexture_presleft, 0); |
5853 327u, | 5853 pCreationUI_BtnPressLeft[3] = pGUIWindow_CurrentMenu->CreateButton(486, 32, 11, 13, 1, 0, 0xABu, 3, 0, "", pTexture_presleft, 0); |
5854 32u, | 5854 pCreationUI_BtnPressRight[0] = pGUIWindow_CurrentMenu->CreateButton(74, 32, 11, 13, 1, 0, 0xACu, 0, 0, "", pTexture_pressrigh, 0); |
5855 11u, | 5855 pCreationUI_BtnPressRight[1] = pGUIWindow_CurrentMenu->CreateButton(233, 32, 11, 13, 1, 0, 0xACu, 1, 0, "", pTexture_pressrigh, 0); |
5856 13u, | 5856 pCreationUI_BtnPressRight[2] = pGUIWindow_CurrentMenu->CreateButton(391, 32, 11, 13, 1, 0, 0xACu, 2, 0, "", pTexture_pressrigh, 0); |
5857 1, | 5857 pCreationUI_BtnPressRight[3] = pGUIWindow_CurrentMenu->CreateButton(549, 32, 11, 13, 1, 0, 0xACu, 3, 0, "", pTexture_pressrigh, 0); |
5858 0, | 5858 pCreationUI_BtnPressLeft2[0] = pGUIWindow_CurrentMenu->CreateButton(10, 103, 11, 13, 1, 0, 0x90u, 0, 0, "", pTexture_presleft, 0); |
5859 0xABu, | 5859 pCreationUI_BtnPressLeft2[1] = pGUIWindow_CurrentMenu->CreateButton(169, 103, 11, 13, 1, 0, 0x90u, 1, 0, "", pTexture_presleft, 0); |
5860 2u, | 5860 pCreationUI_BtnPressLeft2[2] = pGUIWindow_CurrentMenu->CreateButton(327, 103, 11, 13, 1, 0, 0x90u, 2, 0, "", pTexture_presleft, 0); |
5861 0, | 5861 pCreationUI_BtnPressLeft2[3] = pGUIWindow_CurrentMenu->CreateButton(486, 103, 11, 13, 1, 0, 0x90u, 3, 0, "", pTexture_presleft, 0); |
5862 "", | 5862 pCreationUI_BtnPressRight2[0] = pGUIWindow_CurrentMenu->CreateButton(74, 103, 11, 13, 1, 0, 0x91u, 0, 0, "", pTexture_pressrigh, 0); |
5863 pTexture_presleft, | 5863 pCreationUI_BtnPressRight2[1] = pGUIWindow_CurrentMenu->CreateButton(233, 103, 11, 13, 1, 0, 0x91u, 1, 0, "", pTexture_pressrigh, 0); |
5864 0); | 5864 pCreationUI_BtnPressRight2[2] = pGUIWindow_CurrentMenu->CreateButton(391, 103, 11, 13, 1, 0, 0x91u, 2, 0, "", pTexture_pressrigh, 0); |
5865 pCreationUI_BtnPressLeft[3] = pGUIWindow_CurrentMenu->CreateButton( | 5865 pCreationUI_BtnPressRight2[3] = pGUIWindow_CurrentMenu->CreateButton(549, 103, 11, 13, 1, 0, 0x91u, 3, 0, "", pTexture_pressrigh, 0); |
5866 486u, | |
5867 32u, | |
5868 11u, | |
5869 13u, | |
5870 1, | |
5871 0, | |
5872 0xABu, | |
5873 3u, | |
5874 0, | |
5875 "", | |
5876 pTexture_presleft, | |
5877 0); | |
5878 pCreationUI_BtnPressRight[0] = pGUIWindow_CurrentMenu->CreateButton( | |
5879 74u, | |
5880 32u, | |
5881 11u, | |
5882 13u, | |
5883 1, | |
5884 0, | |
5885 0xACu, | |
5886 0, | |
5887 0, | |
5888 "", | |
5889 pTexture_pressrigh, | |
5890 0); | |
5891 pCreationUI_BtnPressRight[1] = pGUIWindow_CurrentMenu->CreateButton( | |
5892 233u, | |
5893 32u, | |
5894 11u, | |
5895 13u, | |
5896 1, | |
5897 0, | |
5898 0xACu, | |
5899 1u, | |
5900 0, | |
5901 "", | |
5902 pTexture_pressrigh, | |
5903 0); | |
5904 pCreationUI_BtnPressRight[2] = pGUIWindow_CurrentMenu->CreateButton( | |
5905 391u, | |
5906 32u, | |
5907 11u, | |
5908 13u, | |
5909 1, | |
5910 0, | |
5911 0xACu, | |
5912 2u, | |
5913 0, | |
5914 "", | |
5915 pTexture_pressrigh, | |
5916 0); | |
5917 pCreationUI_BtnPressRight[3] = pGUIWindow_CurrentMenu->CreateButton( | |
5918 549u, | |
5919 32u, | |
5920 11u, | |
5921 13u, | |
5922 1, | |
5923 0, | |
5924 0xACu, | |
5925 3u, | |
5926 0, | |
5927 "", | |
5928 pTexture_pressrigh, | |
5929 0); | |
5930 pCreationUI_BtnPressLeft2[0] = pGUIWindow_CurrentMenu->CreateButton( | |
5931 10u, | |
5932 103u, | |
5933 11u, | |
5934 13u, | |
5935 1, | |
5936 0, | |
5937 0x90u, | |
5938 0, | |
5939 0, | |
5940 "", | |
5941 pTexture_presleft, | |
5942 0); | |
5943 pCreationUI_BtnPressLeft2[1] = pGUIWindow_CurrentMenu->CreateButton( | |
5944 169u, | |
5945 103u, | |
5946 11u, | |
5947 13u, | |
5948 1, | |
5949 0, | |
5950 0x90u, | |
5951 1u, | |
5952 0, | |
5953 "", | |
5954 pTexture_presleft, | |
5955 0); | |
5956 pCreationUI_BtnPressLeft2[2] = pGUIWindow_CurrentMenu->CreateButton( | |
5957 327u, | |
5958 103u, | |
5959 11u, | |
5960 13u, | |
5961 1, | |
5962 0, | |
5963 0x90u, | |
5964 2u, | |
5965 0, | |
5966 "", | |
5967 pTexture_presleft, | |
5968 0); | |
5969 pCreationUI_BtnPressLeft2[3] = pGUIWindow_CurrentMenu->CreateButton( | |
5970 486u, | |
5971 103u, | |
5972 11u, | |
5973 13u, | |
5974 1, | |
5975 0, | |
5976 0x90u, | |
5977 3u, | |
5978 0, | |
5979 "", | |
5980 pTexture_presleft, | |
5981 0); | |
5982 pCreationUI_BtnPressRight2[0] = pGUIWindow_CurrentMenu->CreateButton( | |
5983 74u, | |
5984 103u, | |
5985 11u, | |
5986 13u, | |
5987 1, | |
5988 0, | |
5989 0x91u, | |
5990 0, | |
5991 0, | |
5992 "", | |
5993 pTexture_pressrigh, | |
5994 0); | |
5995 pCreationUI_BtnPressRight2[1] = pGUIWindow_CurrentMenu->CreateButton( | |
5996 233u, | |
5997 103u, | |
5998 11u, | |
5999 13u, | |
6000 1, | |
6001 0, | |
6002 0x91u, | |
6003 1u, | |
6004 0, | |
6005 "", | |
6006 pTexture_pressrigh, | |
6007 0); | |
6008 pCreationUI_BtnPressRight2[2] = pGUIWindow_CurrentMenu->CreateButton( | |
6009 391u, | |
6010 103u, | |
6011 11u, | |
6012 13u, | |
6013 1, | |
6014 0, | |
6015 0x91u, | |
6016 2u, | |
6017 0, | |
6018 "", | |
6019 pTexture_pressrigh, | |
6020 0); | |
6021 pCreationUI_BtnPressRight2[3] = pGUIWindow_CurrentMenu->CreateButton( | |
6022 549u, | |
6023 103u, | |
6024 11u, | |
6025 13u, | |
6026 1, | |
6027 0, | |
6028 0x91u, | |
6029 3u, | |
6030 0, | |
6031 "", | |
6032 pTexture_pressrigh, | |
6033 0); | |
6034 uControlParamb = 0; | 5866 uControlParamb = 0; |
6035 uXb = 8; | 5867 uXb = 8; |
6036 do | 5868 do |
6037 { | 5869 { |
6038 pGUIWindow_CurrentMenu->CreateButton(uXb, 308u, 150u, v0, 1, 0, 0x48u, uControlParamb, 0, "", 0); | 5870 pGUIWindow_CurrentMenu->CreateButton(uXb, 308, 150, v0, 1, 0, 0x48u, uControlParamb, 0, "", 0); |
6039 pGUIWindow_CurrentMenu->CreateButton( | 5871 pGUIWindow_CurrentMenu->CreateButton(uXb, v0 + 308, 150, v0, 1, 0, 0x49u, uControlParamb, 0, "", 0); |
6040 uXb, | 5872 pGUIWindow_CurrentMenu->CreateButton(uXb, 2 * v0 + 308, 150u, v0, 1, 0, 0x4Au, uControlParamb, 0, "", 0); |
6041 v0 + 308, | 5873 pGUIWindow_CurrentMenu->CreateButton(uXb, 3 * v0 + 308, 150u, v0, 1, 0, 0x4Bu, uControlParamb, 0, "", 0); |
6042 150u, | |
6043 v0, | |
6044 1, | |
6045 0, | |
6046 0x49u, | |
6047 uControlParamb, | |
6048 0, | |
6049 "", | |
6050 0); | |
6051 pGUIWindow_CurrentMenu->CreateButton( | |
6052 uXb, | |
6053 2 * v0 + 308, | |
6054 150u, | |
6055 v0, | |
6056 1, | |
6057 0, | |
6058 0x4Au, | |
6059 uControlParamb, | |
6060 0, | |
6061 "", | |
6062 0); | |
6063 pGUIWindow_CurrentMenu->CreateButton( | |
6064 uXb, | |
6065 3 * v0 + 308, | |
6066 150u, | |
6067 v0, | |
6068 1, | |
6069 0, | |
6070 0x4Bu, | |
6071 uControlParamb, | |
6072 0, | |
6073 "", | |
6074 0); | |
6075 uXb += 158; | 5874 uXb += 158; |
6076 ++uControlParamb; | 5875 ++uControlParamb; |
6077 } | 5876 } |
6078 while ( (signed int)uXb < 640 ); | 5877 while ( (signed int)uXb < 640 ); |
6079 pGUIWindow_CurrentMenu->CreateButton(5u, 21u, 0x99u, 0x16Du, 1, 0, 0x76u, 0, 0x31u, "", 0); | 5878 pGUIWindow_CurrentMenu->CreateButton(5u, 21u, 0x99u, 0x16Du, 1, 0, 0x76u, 0, 0x31u, "", 0); |
6082 pGUIWindow_CurrentMenu->CreateButton(479u, 21u, 0x99u, 0x16Du, 1, 0, 0x76u, 3u, 0x34u, "", 0); | 5881 pGUIWindow_CurrentMenu->CreateButton(479u, 21u, 0x99u, 0x16Du, 1, 0, 0x76u, 3u, 0x34u, "", 0); |
6083 uXc = 23; | 5882 uXc = 23; |
6084 uControlParamc = 2; | 5883 uControlParamc = 2; |
6085 do | 5884 do |
6086 { | 5885 { |
6087 pGUIWindow_CurrentMenu->CreateButton(uXc, 169u, 120u, 20u, 1, 0, 0, uControlParamc - 2, 0, "", 0); | 5886 pGUIWindow_CurrentMenu->CreateButton(uXc, 169, 120, 20, 1, 0, 0, uControlParamc - 2, 0, "", 0); |
6088 pGUIWindow_CurrentMenu->CreateButton( | 5887 pGUIWindow_CurrentMenu->CreateButton(uXc, v0 + 169, 120, 20, 1, 0, 0, uControlParamc - 1, 0, "", 0); |
6089 uXc, | 5888 pGUIWindow_CurrentMenu->CreateButton(uXc, 2 * v0 + 169, 120, 20, 1, 0, 0, uControlParamc, 0, "", 0); |
6090 v0 + 169, | 5889 pGUIWindow_CurrentMenu->CreateButton(uXc, 3 * v0 + 169, 120, 20, 1, 0, 0, uControlParamc + 1, 0, "", 0); |
6091 120u, | 5890 pGUIWindow_CurrentMenu->CreateButton(uXc, 4 * v0 + 169, 120, 20, 1, 0, 0, uControlParamc + 2, 0, "", 0); |
6092 20u, | 5891 pGUIWindow_CurrentMenu->CreateButton(uXc, 5 * v0 + 169, 120, 20, 1, 0, 0, uControlParamc + 3, 0, "", 0); |
6093 1, | 5892 pGUIWindow_CurrentMenu->CreateButton(uXc, 6 * v0 + 169, 120, 20, 1, 0, 0, uControlParamc + 4, 0, "", 0); |
6094 0, | |
6095 0, | |
6096 uControlParamc - 1, | |
6097 0, | |
6098 "", | |
6099 0); | |
6100 pGUIWindow_CurrentMenu->CreateButton( | |
6101 uXc, | |
6102 2 * v0 + 169, | |
6103 120u, | |
6104 20u, | |
6105 1, | |
6106 0, | |
6107 0, | |
6108 uControlParamc, | |
6109 0, | |
6110 "", | |
6111 0); | |
6112 pGUIWindow_CurrentMenu->CreateButton( | |
6113 uXc, | |
6114 3 * v0 + 169, | |
6115 120u, | |
6116 20u, | |
6117 1, | |
6118 0, | |
6119 0, | |
6120 uControlParamc + 1, | |
6121 0, | |
6122 "", | |
6123 0); | |
6124 pGUIWindow_CurrentMenu->CreateButton( | |
6125 uXc, | |
6126 4 * v0 + 169, | |
6127 120u, | |
6128 20u, | |
6129 1, | |
6130 0, | |
6131 0, | |
6132 uControlParamc + 2, | |
6133 0, | |
6134 "", | |
6135 0); | |
6136 pGUIWindow_CurrentMenu->CreateButton( | |
6137 uXc, | |
6138 5 * v0 + 169, | |
6139 120u, | |
6140 20u, | |
6141 1, | |
6142 0, | |
6143 0, | |
6144 uControlParamc + 3, | |
6145 0, | |
6146 "", | |
6147 0); | |
6148 pGUIWindow_CurrentMenu->CreateButton( | |
6149 uXc, | |
6150 6 * v0 + 169, | |
6151 120u, | |
6152 20u, | |
6153 1, | |
6154 0, | |
6155 0, | |
6156 uControlParamc + 4, | |
6157 0, | |
6158 "", | |
6159 0); | |
6160 uControlParamc += 7; | 5893 uControlParamc += 7; |
6161 uXc += 158; | 5894 uXc += 158; |
6162 } | 5895 } |
6163 while ( (signed int)uControlParamc < 30 ); | 5896 while ( (signed int)uControlParamc < 30 ); |
6164 pGUIWindow_CurrentMenu->_41D08F(28, 0, 7, 40); | 5897 pGUIWindow_CurrentMenu->_41D08F(28, 0, 7, 40); |
6165 pGUIWindow_CurrentMenu->CreateButton(323u, 417u, 65u, v0, 1, 0, 0x41u, 0, 0, "", 0); | 5898 pGUIWindow_CurrentMenu->CreateButton(323, 417, 65, v0, 1, 0, 0x41, 0, 0, "", 0); |
6166 pGUIWindow_CurrentMenu->CreateButton(323u, v0 + 417, 65u, v0, 1, 0, 0x41u, 0xCu, 0, "", 0); | 5899 pGUIWindow_CurrentMenu->CreateButton(323, v0 + 417, 65, v0, 1, 0, 0x41, 0xC, 0, "", 0); |
6167 pGUIWindow_CurrentMenu->CreateButton(323u, 2 * v0 + 417, 65u, v0, 1, 0, 0x41u, 0x14u, 0, "", 0); | 5900 pGUIWindow_CurrentMenu->CreateButton(323, 2 * v0 + 417, 65, v0, 1, 0, 0x41, 0x14, 0, "", 0); |
6168 pGUIWindow_CurrentMenu->CreateButton(388u, 417u, 65u, v0, 1, 0, 0x41u, 0x18u, 0, "", 0); | 5901 pGUIWindow_CurrentMenu->CreateButton(388, 417, 65, v0, 1, 0, 0x41, 0x18, 0, "", 0); |
6169 pGUIWindow_CurrentMenu->CreateButton(388u, v0 + 417, 65u, v0, 1, 0, 0x41u, 0x1Cu, 0, "", 0); | 5902 pGUIWindow_CurrentMenu->CreateButton(388, v0 + 417, 65, v0, 1, 0, 0x41, 0x1C, 0, "", 0); |
6170 pGUIWindow_CurrentMenu->CreateButton(388u, 2 * v0 + 417, 65u, v0, 1, 0, 0x41u, 0x20u, 0, "", 0); | 5903 pGUIWindow_CurrentMenu->CreateButton(388, 2 * v0 + 417, 65, v0, 1, 0, 0x41, 0x20, 0, "", 0); |
6171 pGUIWindow_CurrentMenu->CreateButton(453u, 417u, 65u, v0, 1, 0, 0x41u, 0x10u, 0, "", 0); | 5904 pGUIWindow_CurrentMenu->CreateButton(453, 417, 65, v0, 1, 0, 0x41, 0x10, 0, "", 0); |
6172 pGUIWindow_CurrentMenu->CreateButton(453u, v0 + 417, 65u, v0, 1, 0, 0x41u, 8u, 0, "", 0); | 5905 pGUIWindow_CurrentMenu->CreateButton(453, v0 + 417, 65, v0, 1, 0, 0x41, 8, 0, "", 0); |
6173 pGUIWindow_CurrentMenu->CreateButton(453u, 2 * v0 + 417, 65u, v0, 1, 0, 0x41u, 4u, 0, "", 0); | 5906 pGUIWindow_CurrentMenu->CreateButton(453, 2 * v0 + 417, 65, v0, 1, 0, 0x41, 4, 0, "", 0); |
6174 uControlParamd = 0; | 5907 uControlParamd = 0; |
6175 do | 5908 do |
6176 { | 5909 { |
6177 uXd = -5; | 5910 uXd = -5; |
6178 if ( uControlParamd <= 3 ) | 5911 if ( uControlParamd <= 3 ) |
6179 uXd = 0; | 5912 uXd = 0; |
6180 pGUIWindow_CurrentMenu->CreateButton( | 5913 pGUIWindow_CurrentMenu->CreateButton(100 * (uControlParamd / 3) + uXd + 17, v0 * (uControlParamd % 3) + 417, 100, v0, 1, 0, 0x40, |
6181 100 * (uControlParamd / 3) + uXd + 17, | 5914 uControlParamd, 0, "", 0); |
6182 v0 * (uControlParamd % 3) + 417, | |
6183 100u, | |
6184 v0, | |
6185 1, | |
6186 0, | |
6187 0x40u, | |
6188 uControlParamd, | |
6189 0, | |
6190 "", | |
6191 0); | |
6192 ++uControlParamd; | 5915 ++uControlParamd; |
6193 } | 5916 } |
6194 while ( uControlParamd < 9 ); | 5917 while ( uControlParamd < 9 ); |
6195 pPlayerCreationUI_BtnOK = pGUIWindow_CurrentMenu->CreateButton( | 5918 pPlayerCreationUI_BtnOK = pGUIWindow_CurrentMenu->CreateButton(580, 431, 51, 39, 1, 0, 0x42, 0, 0xD, "", |
6196 580u, | 5919 (Texture *)(uTextureID_BUTTMAKE != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTMAKE] : 0), 0); |
6197 431u, | 5920 pPlayerCreationUI_BtnReset = pGUIWindow_CurrentMenu->CreateButton(527, 431, 51, 39, 1, 0, 0x43, 0, 0x43, "", |
6198 51u, | 5921 (Texture *)(uTextureID_BUTTMAKE2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTMAKE2] : 0), 0); |
6199 39u, | 5922 pPlayerCreationUI_BtnMinus = pGUIWindow_CurrentMenu->CreateButton(523, 393, 20, 35, 1, 0, 0x3F, 0, 0x2D, "", pTexture_buttminu, 0); |
6200 1, | 5923 pPlayerCreationUI_BtnPlus = pGUIWindow_CurrentMenu->CreateButton(613, 393, 20, 35, 1, 0, 0x3E, 1, 0x2B, "", pTexture_buttplus, 0); |
6201 0, | |
6202 0x42u, | |
6203 0, | |
6204 0xDu, | |
6205 "", | |
6206 (Texture *)(uTextureID_BUTTMAKE != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTMAKE] : 0), | |
6207 0); | |
6208 pPlayerCreationUI_BtnReset = pGUIWindow_CurrentMenu->CreateButton( | |
6209 527u, | |
6210 431u, | |
6211 51u, | |
6212 39u, | |
6213 1, | |
6214 0, | |
6215 0x43u, | |
6216 0, | |
6217 0x43u, | |
6218 "", | |
6219 (Texture *)(uTextureID_BUTTMAKE2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTMAKE2] : 0), | |
6220 0); | |
6221 pPlayerCreationUI_BtnMinus = pGUIWindow_CurrentMenu->CreateButton( | |
6222 523u, | |
6223 393u, | |
6224 20u, | |
6225 35u, | |
6226 1, | |
6227 0, | |
6228 0x3Fu, | |
6229 0, | |
6230 0x2Du, | |
6231 "", | |
6232 pTexture_buttminu, | |
6233 0); | |
6234 pPlayerCreationUI_BtnPlus = pGUIWindow_CurrentMenu->CreateButton( | |
6235 613u, | |
6236 393u, | |
6237 20u, | |
6238 35u, | |
6239 1, | |
6240 0, | |
6241 0x3Eu, | |
6242 1u, | |
6243 0x2Bu, | |
6244 "", | |
6245 pTexture_buttplus, | |
6246 0); | |
6247 pFontCChar = LoadFont("cchar.fnt", "FONTPAL", 0); | 5924 pFontCChar = LoadFont("cchar.fnt", "FONTPAL", 0); |
6248 } | 5925 } |
6249 // 4E28F8: using guessed type int pCurrentScreen; | 5926 // 4E28F8: using guessed type int pCurrentScreen; |
6250 | 5927 |
6251 //----- (0049750E) -------------------------------------------------------- | 5928 //----- (0049750E) -------------------------------------------------------- |
6261 RGBTexture *v0; // ebx@1 | 5938 RGBTexture *v0; // ebx@1 |
6262 UINT v1; // esi@1 | 5939 UINT v1; // esi@1 |
6263 unsigned int v2; // ecx@3 | 5940 unsigned int v2; // ecx@3 |
6264 LONG uMouseX; // edi@6 | 5941 LONG uMouseX; // edi@6 |
6265 LONG uMouseY; // eax@6 | 5942 LONG uMouseY; // eax@6 |
6266 GUIButton *v5; // edx@6 | 5943 GUIButton *pControlsHead; // edx@6 |
6267 unsigned int v6; // ecx@7 | 5944 unsigned int v6; // ecx@7 |
6268 int v7; // esi@12 | 5945 int v7; // esi@12 |
6269 signed int v8; // edi@30 | 5946 signed int v8; // edi@30 |
6270 int v9; // edx@31 | 5947 int v9; // edx@31 |
6271 char *v10; // ebx@37 | 5948 char *v10; // ebx@37 |
6301 { | 5978 { |
6302 if ( pAsyncMouse != (void *)v1 ) | 5979 if ( pAsyncMouse != (void *)v1 ) |
6303 pAsyncMouse->_46B736_consume_click_lists(1); | 5980 pAsyncMouse->_46B736_consume_click_lists(1); |
6304 uMouseX = pMouse->GetCursorPos(&v24)->x; | 5981 uMouseX = pMouse->GetCursorPos(&v24)->x; |
6305 uMouseY = pMouse->GetCursorPos(&v25)->y; | 5982 uMouseY = pMouse->GetCursorPos(&v25)->y; |
6306 v5 = pGUIWindow_CurrentMenu->pControlsHead; | 5983 pControlsHead = pGUIWindow_CurrentMenu->pControlsHead; |
6307 if ( v5 != (GUIButton *)v1 ) | 5984 if ( pControlsHead != (GUIButton *)v1 ) |
6308 { | 5985 { |
6309 v6 = pMessageQueue_50CBD0->uNumMessages; | 5986 v6 = pMessageQueue_50CBD0->uNumMessages; |
6310 do | 5987 do |
6311 { | 5988 { |
6312 if ( uMouseX >= (signed int)v5->uX //mouse movement | 5989 if ( uMouseX >= (signed int)pControlsHead->uX && uMouseX <= (signed int)pControlsHead->uZ && uMouseY >= (signed int)pControlsHead->uY && uMouseY <= (signed int)pControlsHead->uW )//mouse movement |
6313 && uMouseX <= (signed int)v5->uZ | 5990 { |
6314 && uMouseY >= (signed int)v5->uY | 5991 v7 = pControlsHead->uControlParam; |
6315 && uMouseY <= (signed int)v5->uW ) | |
6316 { | |
6317 v7 = v5->uControlParam; | |
6318 if ( (signed int)v6 < 40 ) | 5992 if ( (signed int)v6 < 40 ) |
6319 { | 5993 { |
6320 pMessageQueue_50CBD0->pMessages[v6].eType = (UIMessageType)v5->field_1C; | 5994 pMessageQueue_50CBD0->pMessages[v6].eType = (UIMessageType)pControlsHead->field_1C; |
6321 v0 = &pTexture_PCX; | 5995 v0 = &pTexture_PCX; |
6322 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = v7; | 5996 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = v7; |
6323 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; | 5997 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; |
6324 v6 = pMessageQueue_50CBD0->uNumMessages + 1; | 5998 v6 = pMessageQueue_50CBD0->uNumMessages + 1; |
6325 ++pMessageQueue_50CBD0->uNumMessages; | 5999 ++pMessageQueue_50CBD0->uNumMessages; |
6326 } | 6000 } |
6327 v1 = 0; | 6001 v1 = 0; |
6328 } | 6002 } |
6329 v5 = v5->pNext; | 6003 pControlsHead = pControlsHead->pNext; |
6330 } | 6004 } |
6331 while ( v5 != (GUIButton *)v1 ); | 6005 while ( pControlsHead != (GUIButton *)v1 ); |
6332 } | 6006 } |
6333 while ( PeekMessageA(&Msg, (HWND)v1, v1, v1, PM_REMOVE) ) | 6007 while ( PeekMessageA(&Msg, (HWND)v1, v1, v1, PM_REMOVE) ) |
6334 { | 6008 { |
6335 if ( Msg.message == WM_QUIT ) | 6009 if ( Msg.message == WM_QUIT ) |
6336 Game_DeinitializeAndTerminate(0); | 6010 Game_DeinitializeAndTerminate(0); |