Example #1
0
        private void CmbGraphics1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (SelectionMode == SelectionMode.Full)
            {
                if (CmbGraphics1.SelectedIndex > 252)
                {
                    CmbGraphics1.SelectedIndex = 252;
                    return;
                }
            }
            else if (SelectionMode == SelectionMode.Half)
            {
                if (CmbGraphics1.SelectedIndex > 254)
                {
                    CmbGraphics1.SelectedIndex = 254;
                    return;
                }
            }

            GraphicsInfo gi = CmbGraphics1.SelectedItem as GraphicsInfo;

            TxtGName1.Text = gi.Name;
            CompositeTable.SetGraphicsbank(0, ProjectController.GraphicsManager.GraphicsBanks[gi.Bank]);

            if (SelectionMode == SelectionMode.Full)
            {
                CmbGraphics2.SelectedIndex = CmbGraphics1.SelectedIndex + 1;
                CmbGraphics3.SelectedIndex = CmbGraphics1.SelectedIndex + 2;
                CmbGraphics4.SelectedIndex = CmbGraphics1.SelectedIndex + 3;
            }
            else if (SelectionMode == SelectionMode.Half)
            {
                CmbGraphics2.SelectedIndex = CmbGraphics1.SelectedIndex + 1;
            }

            PtvTileSelector.UpdateSelection();
            LblHexGraphics1.Text = "x" + CmbGraphics1.SelectedIndex.ToHexString();
        }
Example #2
0
 private void CmbGraphics1_SelectedIndexChanged(object sender, EventArgs e)
 {
     CurrentTable.SetGraphicsbank(0, ProjectController.GraphicsManager.GraphicsBanks[CmbGraphics1.SelectedIndex]);
     CurrentTable.SetGraphicsbank(1, ProjectController.GraphicsManager.GraphicsBanks[CmbGraphics1.SelectedIndex + 1]);
     LblHexGraphics1.Text = "x" + CmbGraphics1.SelectedIndex.ToHexString();
 }