|
@@ -400,7 +400,7 @@ void CFESEditPlayer::Init(void) {
|
|
|
if (CFE::m_eLastFlowDirection != 2) {
|
|
|
// 0012821E
|
|
|
FREE_RenderInit();
|
|
|
- this->field_F4 = -1;
|
|
|
+ this->editPlayerPos_F4 = -1;
|
|
|
this->field_F8 = 0;
|
|
|
this->vector32_FC = s_vCamTarget[0];
|
|
|
this->field_108 = s_fCamDist[0];
|
|
@@ -621,7 +621,7 @@ void CFESEditPlayer::SetUpdateMovement(void) {
|
|
|
//测试结果: 游戏表现正常无崩溃且无明显变化,检测到日志输出
|
|
|
//测试分支: 无
|
|
|
void CFESEditPlayer::SetupHighlight(void) {
|
|
|
- switch (this->field_F4) {
|
|
|
+ switch (this->editPlayerPos_F4) {
|
|
|
case 1: {
|
|
|
// loc_1289E0
|
|
|
int r1_i = 0;
|
|
@@ -1339,7 +1339,7 @@ void CFESEditPlayer::Process() {
|
|
|
//测试分支: 无
|
|
|
void CFESEditPlayer::RenderLines(void) {
|
|
|
// 00129CD0
|
|
|
- int r0_i = this->field_F4;
|
|
|
+ int r0_i = this->editPlayerPos_F4;
|
|
|
r0_i = r0_i + 1;
|
|
|
if (r0_i == 0) {
|
|
|
CFTTVector32 var_74;
|
|
@@ -1568,14 +1568,15 @@ void CFESEditPlayer::SetupEditMode(int i1) {
|
|
|
// 001284CC
|
|
|
if (i1 >= -1) {
|
|
|
// 001284D2
|
|
|
- this->field_F4 = i1;
|
|
|
+ this->editPlayerPos_F4 = i1;
|
|
|
}
|
|
|
CFESEditPlayer::ms_pKeyboard->Hide();
|
|
|
int r7_i = 1;
|
|
|
this->m_pUITileManager_4->Reset(1);
|
|
|
this->m_pUITileManager_4->uy_13D = 0;
|
|
|
this->m_pUITileManager_4->b_13E = false;
|
|
|
- int r0_i = this->field_F4;
|
|
|
+ this->m_pUITileManager_4->b_13F = false;
|
|
|
+ int r0_i = this->editPlayerPos_F4;
|
|
|
this->m_pMsgShopButton_130 = 0;
|
|
|
this->m_pTileItemSelectors_134[0] = 0;
|
|
|
this->m_pTileItemSelectors_134[1] = 0;
|
|
@@ -1590,15 +1591,16 @@ void CFESEditPlayer::SetupEditMode(int i1) {
|
|
|
// 0012851E
|
|
|
int r6_i = 1;
|
|
|
SNDFE_PlaySFX(1, 0, 1);
|
|
|
- this->m_pUITileManager_4->ull_90 =
|
|
|
- this->m_pUITileManager_4->ull_90 & 0xFFFFFFFFFFFFFFFD;
|
|
|
+ this->m_pUITileManager_4->ul_90 =
|
|
|
+ this->m_pUITileManager_4->ul_90 & (~2);
|
|
|
// 00128540
|
|
|
- if (this->field_F4 != 0) {
|
|
|
+ if (this->editPlayerPos_F4 != 0) {
|
|
|
// 00128546
|
|
|
- this->m_pUITileManager_4->ull_90 =
|
|
|
- this->m_pUITileManager_4->ull_90 | 0x2000;
|
|
|
- this->m_pUITileManager_4->ull_98 =
|
|
|
- this->m_pUITileManager_4->ull_98 & 0xFFFFFFFFFFFFDFFF;
|
|
|
+ this->m_pUITileManager_4->ul_90 =
|
|
|
+ this->m_pUITileManager_4->ul_90 | 0x2000;
|
|
|
+ this->m_pUITileManager_4->ul_98 =
|
|
|
+ this->m_pUITileManager_4->ul_98 & 0xFFFFDFFF;
|
|
|
+ //!!!注意 CUIMsgShopButton 修改注意去更新
|
|
|
CUIMsgShopButton* r5_pMsgShopButton = new CUIMsgShopButton(116, 76);
|
|
|
r7_i = 2;
|
|
|
this->m_pMsgShopButton_130 = r5_pMsgShopButton;
|
|
@@ -1610,7 +1612,7 @@ void CFESEditPlayer::SetupEditMode(int i1) {
|
|
|
float s2_f = r0_i;
|
|
|
this->m_pUITileManager_4->AddTile(s0_f, s2_f, r5_pMsgShopButton, r6_i, -1,
|
|
|
EHUDPosition_2);
|
|
|
- r0_i = this->field_F4;
|
|
|
+ r0_i = this->editPlayerPos_F4;
|
|
|
r1_i = -1;
|
|
|
this->field_154 = -1;
|
|
|
switch (r0_i) {
|
|
@@ -1689,13 +1691,13 @@ void CFESEditPlayer::SetupEditMode(int i1) {
|
|
|
// loc_1286F8
|
|
|
} else {
|
|
|
// loc_1285E4
|
|
|
- float s16_f = 1.0;
|
|
|
+ float s16_f = 1.0f;
|
|
|
int r5_i = 0;
|
|
|
float var_70[14];
|
|
|
var_70[0] = -0.699999988079071;
|
|
|
var_70[1] = -0.30000001192092896;
|
|
|
var_70[2] = -0.699999988079071;
|
|
|
- var_70[3] = -5.877471754111438e-39;
|
|
|
+ var_70[3] = -0.0f;
|
|
|
|
|
|
var_70[4] = -0.699999988079071;
|
|
|
var_70[5] = -0.6000000238418579;
|
|
@@ -1727,22 +1729,22 @@ void CFESEditPlayer::SetupEditMode(int i1) {
|
|
|
s2_f = s2_f * s6_f;
|
|
|
s0_f = s0_f * s18_f;
|
|
|
s2_f = s2_f * s18_f;
|
|
|
- int var_80 = r7_i;
|
|
|
- r7_i = 1;
|
|
|
+ // int var_80 = r7_i;
|
|
|
+ // r7_i = 1;
|
|
|
this->m_pUITileManager_4->AddTile(s0_f, s2_f, r3_pUITitleItemSelector,
|
|
|
- var_80, -1, EHUDPosition_0);
|
|
|
+ 1, -1, EHUDPosition_0);
|
|
|
r5_i++;
|
|
|
}
|
|
|
// 0012869E
|
|
|
this->field_F8 = 0;
|
|
|
this->SetUpdateMovement();
|
|
|
- this->m_pUITileManager_4->ull_90 =
|
|
|
- this->m_pUITileManager_4->ull_90 & (uint64)0xFFFFFFFFFFFFDFFF;
|
|
|
- this->m_pUITileManager_4->ull_90 =
|
|
|
- this->m_pUITileManager_4->ull_90 & (uint64)0xFFFFFFFFFFFFBFFF;
|
|
|
- this->m_pUITileManager_4->ull_98 =
|
|
|
- this->m_pUITileManager_4->ull_98 & (uint64)0xFFFFFFFFFFFFFFFD;
|
|
|
- this->m_pUITileManager_4->ull_90 = this->m_pUITileManager_4->ull_90 | 0x2;
|
|
|
+ this->m_pUITileManager_4->ul_90 =
|
|
|
+ this->m_pUITileManager_4->ul_90 &0xFFFFDFFF;
|
|
|
+ this->m_pUITileManager_4->ul_90 =
|
|
|
+ this->m_pUITileManager_4->ul_90 & (~0x4000u);
|
|
|
+ this->m_pUITileManager_4->ul_98 =
|
|
|
+ this->m_pUITileManager_4->ul_98 & (~2);
|
|
|
+ this->m_pUITileManager_4->ul_90 = this->m_pUITileManager_4->ul_90 | 0x2;
|
|
|
this->SetupHighlight();
|
|
|
return;
|
|
|
}
|
|
@@ -2073,7 +2075,7 @@ void AddBoard(CFTTVector32* pVector0, CFTTVector32* pVector1, float* pf2,
|
|
|
//测试分支: 无
|
|
|
void CFESEditPlayer::ProcessEditMode(int i1) {
|
|
|
// 001292E6
|
|
|
- switch (this->field_F4) {
|
|
|
+ switch (this->editPlayerPos_F4) {
|
|
|
case -1: {
|
|
|
// loc_1292F4
|
|
|
this->m_p3DPlayer_98->field_20C = 0;
|