private void UpdateWorldScreenDataTextbox(RandomizerModWorldScreen worldScreen) { tb_output.Clear(); tb_output.Text += "ParentWorld: " + worldScreen.ParentWorld + Environment.NewLine; tb_output.Text += "AmbientSound: " + worldScreen.AmbientSound + Environment.NewLine; tb_output.Text += "Content: " + worldScreen.GetContentValue() + " (" + worldScreen.GetContentName() + ")" + Environment.NewLine; tb_output.Text += "ObjectSet: " + worldScreen.ObjectSet + Environment.NewLine; tb_output.Text += "ScreenIndexRight: " + worldScreen.ScreenIndexRight + Environment.NewLine; tb_output.Text += "ScreenIndexLeft: " + worldScreen.ScreenIndexLeft + Environment.NewLine; tb_output.Text += "ScreenIndexDown: " + worldScreen.ScreenIndexDown + Environment.NewLine; tb_output.Text += "ScreenIndexUp: " + worldScreen.ScreenIndexUp + Environment.NewLine; tb_output.Text += "DataPointer: " + worldScreen.DataPointer + Environment.NewLine; tb_output.Text += "ExitPosition: " + worldScreen.ExitPosition + Environment.NewLine; tb_output.Text += "TopTiles: " + worldScreen.TopTiles + Environment.NewLine; //Showing just the byte value here, even though we have the TileSection objects which can give more info tb_output.Text += "BottomTiles: " + worldScreen.BottomTiles + Environment.NewLine; //Showing just the byte value here, even though we have the TileSection objects which can give more info tb_output.Text += "WorldScreenColor: " + worldScreen.WorldScreenColor + Environment.NewLine; tb_output.Text += "SpritesColor: " + worldScreen.SpritesColor + Environment.NewLine; tb_output.Text += "Unknown: " + worldScreen.Unknown + Environment.NewLine; tb_output.Text += "Event: " + worldScreen.Event + Environment.NewLine; }
private void UpdateWorldScreenDataListView(RandomizerModWorldScreen worldScreen) { lv_variables.Items[0].SubItems[1].Text = worldScreen.ParentWorld.ToString("X2"); lv_variables.Items[1].SubItems[1].Text = worldScreen.AmbientSound.ToString("X2"); lv_variables.Items[2].SubItems[1].Text = worldScreen.GetContentValue().ToString("X2"); lv_variables.Items[3].SubItems[1].Text = worldScreen.ObjectSet.ToString("X2"); lv_variables.Items[4].SubItems[1].Text = worldScreen.ScreenIndexRight.ToString("X2"); lv_variables.Items[5].SubItems[1].Text = worldScreen.ScreenIndexLeft.ToString("X2"); lv_variables.Items[6].SubItems[1].Text = worldScreen.ScreenIndexDown.ToString("X2"); lv_variables.Items[7].SubItems[1].Text = worldScreen.ScreenIndexUp.ToString("X2"); lv_variables.Items[8].SubItems[1].Text = worldScreen.DataPointer.ToString("X2"); lv_variables.Items[9].SubItems[1].Text = worldScreen.ExitPosition.ToString("X2"); lv_variables.Items[10].SubItems[1].Text = worldScreen.TopTiles.ToString("X2"); lv_variables.Items[11].SubItems[1].Text = worldScreen.BottomTiles.ToString("X2"); lv_variables.Items[12].SubItems[1].Text = worldScreen.WorldScreenColor.ToString("X2"); lv_variables.Items[13].SubItems[1].Text = worldScreen.SpritesColor.ToString("X2"); lv_variables.Items[14].SubItems[1].Text = worldScreen.Unknown.ToString("X2"); lv_variables.Items[15].SubItems[1].Text = worldScreen.Event.ToString("X2"); var CONTENTINDEX = 2; //hints //content lv_variables.Items[CONTENTINDEX].SubItems[2].Text = worldScreen.GetContentName(); ////objectSets //if (KnownObjectSets.ContainsKey(ws.ObjectSet.ToString("X2"))) lv_variables.Items[(int)WorldScreen.DataContent.ObjectSet].SubItems[2].Text = KnownObjectSets[ws.ObjectSet.ToString("X2")]; //else lv_variables.Items[(int)WorldScreen.DataContent.ObjectSet].SubItems[2].Text = "?"; ////events //if (KnownEvents.ContainsKey(ws.Event.ToString("X2"))) lv_variables.Items[(int)WorldScreen.DataContent.Event].SubItems[2].Text = KnownEvents[ws.Event.ToString("X2")]; //else lv_variables.Items[(int)WorldScreen.DataContent.Event].SubItems[2].Text = "?"; ////screenexits //if (KnownScreenExits.ContainsKey(ws.ScreenIndexLeft.ToString("X2"))) lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexLeft].SubItems[2].Text = KnownScreenExits[ws.ScreenIndexLeft.ToString("X2")]; //else lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexLeft].SubItems[2].Text = "enter screen " + ws.ScreenIndexLeft.ToString("X2"); //if (KnownScreenExits.ContainsKey(ws.ScreenIndexRight.ToString("X2"))) lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexRight].SubItems[2].Text = KnownScreenExits[ws.ScreenIndexRight.ToString("X2")]; //else lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexRight].SubItems[2].Text = "enter screen " + ws.ScreenIndexRight.ToString("X2"); //if (KnownScreenExits.ContainsKey(ws.ScreenIndexUp.ToString("X2"))) lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexUp].SubItems[2].Text = KnownScreenExits[ws.ScreenIndexUp.ToString("X2")]; //else lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexUp].SubItems[2].Text = "enter screen " + ws.ScreenIndexUp.ToString("X2"); //if (KnownScreenExits.ContainsKey(ws.ScreenIndexDown.ToString("X2"))) lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexDown].SubItems[2].Text = KnownScreenExits[ws.ScreenIndexDown.ToString("X2")]; //else lv_variables.Items[(int)WorldScreen.DataContent.ScreenIndexDown].SubItems[2].Text = "enter screen " + ws.ScreenIndexDown.ToString("X2"); //lv_worldScreens.Items.Clear(); //string[] data = new string[] { // lv_variables // worldScreen.ParentWorld.ToString("X2"), // worldScreen.AmbientSound.ToString("X2"), // worldScreen.GetContentValue().ToString("X2"), // worldScreen.ObjectSet.ToString("X2"), // worldScreen.ScreenIndexRight.ToString("X2"), // worldScreen.ScreenIndexLeft.ToString("X2"), // worldScreen.ScreenIndexDown.ToString("X2"), // worldScreen.ScreenIndexUp.ToString("X2"), // worldScreen.DataPointer.ToString("X2"), // worldScreen.ExitPosition.ToString("X2"), // worldScreen.TopTiles.ToString("X2"), // worldScreen.BottomTiles.ToString("X2"), // worldScreen.WorldScreenColor.ToString("X2"), // worldScreen.SpritesColor.ToString("X2"), // worldScreen.Unknown.ToString("X2"), // worldScreen.Event.ToString("X2") // }; // lv_worldScreens.Items.Add(" ").SubItems.AddRange(data); }