update logic show Install Dialogue
This commit is contained in:
@@ -375,7 +375,7 @@ namespace BrewMonster
|
||||
{
|
||||
message = GetGameUIMan().GetStringFromTable(226);
|
||||
CECUIManager.Instance.ShowMessageBox("", message);
|
||||
// GetGameUIMan()->MessageBox("", GetGameUIMan().GetStringFromTable(226), MB_OK,
|
||||
// GetGameUIMan().GetDialog("")
|
||||
// A3DCOLORRGBA(255, 255, 255, 160), &pMsgBox);
|
||||
// pMsgBox->SetLife(3);
|
||||
return;
|
||||
|
||||
@@ -3406,22 +3406,9 @@ namespace BrewMonster.UI
|
||||
if (pCurNPCEssence.HasValue)
|
||||
{
|
||||
uint npcID = pCurNPCEssence.Value.id;
|
||||
DlgInstall dlgInstall = FindFirstObjectByType<DlgInstall>();
|
||||
if (dlgInstall == null)
|
||||
{
|
||||
CECGameUIMan gameUIMan = GetGameUIMan();
|
||||
DialogScriptTableObject dialogResource = gameUIMan.GetDialogResource();
|
||||
Canvas canvas = gameUIMan.GetCanvas();
|
||||
|
||||
if(dialogResource != null && canvas != null)
|
||||
{
|
||||
GameObject ob = dialogResource.GetPrefabDialog("Win_Enchase");
|
||||
if (ob != null)
|
||||
{
|
||||
dlgInstall = GameObject.Instantiate(ob, canvas.transform).GetComponent<DlgInstall>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var dlgInstall =GetGameUIMan().GetDialog("Win_Enchase");
|
||||
dlgInstall.Show(true);
|
||||
}
|
||||
//pShow1 = m_pAUIManager.GetDialog("Win_Enchase");
|
||||
//pShow2 = m_pAUIManager.GetDialog("Win_Inventory");
|
||||
|
||||
Reference in New Issue
Block a user