public override void Run() { gameMainPanel = UIManager.Instance.CreatePanel("gameMainPanel", 1.0f, 0.08f, 0.0f, 0.92f); gameMainPanel.AddCol(ValueType.Percent); gameMainPanel.AddCol(ValueType.Percent); gameMainPanel.AddCol(ValueType.Percent); gameMainPanel.AddCol(ValueType.Percent); gameMainPanel.AddCol(ValueType.Percent); gameMainPanel.AddCol(ValueType.Percent); gameMainPanel.AddCol(ValueType.Abosulte, 0.1f); gameMainPanel.AddCol(ValueType.Abosulte, 180); btnTerrain = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnTerrain", "Terrain", 150); btnTerrain.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnTerrain.Top = 0.025f; btnTerrain.OnClick += BtnTerrain_OnClick; gameMainPanel.AddWidget(1, 1, btnTerrain, AlignMode.Left, AlignMode.Center, DockMode.FillWidth); if (!GameManager.Instance.IS_ENABLE_EDIT_MODE) { btnTerrain.Hide(); } btnCamp = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnCamp", "Camp", 150); btnCamp.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnCamp.Top = 0.025f; btnCamp.OnClick += BtnCamp_OnClick; gameMainPanel.AddWidget(1, 2, btnCamp); btnReports = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnReports", "Reports", 150); btnReports.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnReports.OnClick += BtnReports_OnClick; btnReports.Top = 0.025f; gameMainPanel.AddWidget(1, 3, btnReports, AlignMode.Left, AlignMode.Center, DockMode.FillWidth); btnNotes = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnNotes", "Notes", 150); btnNotes.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnNotes.Top = 0.025f; btnNotes.OnClick += BtnNotes_OnClick; gameMainPanel.AddWidget(1, 4, btnNotes); btnInventory = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnInventory", "Inventory", 150); btnInventory.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnInventory.Top = 0.025f; btnInventory.OnClick += BtnInventory_OnClick; gameMainPanel.AddWidget(1, 5, btnInventory, AlignMode.Left, AlignMode.Center, DockMode.FillWidth); btnCharacter = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnCharacter", "Characters", 150); btnCharacter.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnCharacter.Top = 0.025f; btnCharacter.OnClick += BtnCharacter_OnClick; gameMainPanel.AddWidget(1, 6, btnCharacter); btnParty = UIManager.Instance.CreateButton(UIWidgetLocation.TL_NONE, "btnParty", "Party", 150); btnParty.MetricMode = GuiMetricsMode.GMM_RELATIVE; btnParty.Top = 0.025f; btnParty.OnClick += BtnParty_OnClick; gameMainPanel.AddWidget(1, 7, btnParty, AlignMode.Left, AlignMode.Center, DockMode.FillWidth); txtCurrentDate = UIManager.Instance.CreateStaticText("gameDate", TimerManager.Instance.GetDate()); txtCurrentTime = UIManager.Instance.CreateStaticText("gameTime", TimerManager.Instance.CurrentTime.ToString()); txtCurrentDate.MetricMode = GuiMetricsMode.GMM_RELATIVE; txtCurrentTime.MetricMode = GuiMetricsMode.GMM_RELATIVE; txtCurrentDate.Top = 0.015f; txtCurrentTime.Top = 0.03f; gameMainPanel.AddWidget(1, 9, txtCurrentDate); gameMainPanel.AddWidget(1, 9, txtCurrentTime); }