Exemplo n.º 1
0
        private void IconSizeChange(bool isSmall)
        {
            ListViewEditor.IconSizeChange(ProjectFolders.TextureAtlasPath, LV_TA, SmallIconsSize, LargeIconsSize, isSmall);
            ListViewEditor.IconSizeChange(ProjectFolders.NormalMapsPath, LV_NM, SmallIconsSize, LargeIconsSize, isSmall);
            ListViewEditor.IconSizeChange(ProjectFolders.SpecularMapsPath, LV_SM, SmallIconsSize, LargeIconsSize, isSmall);

            TSMI_LargeIcons.Checked = !isSmall;
            TSMI_SmallIcons.Checked = isSmall;
        }
Exemplo n.º 2
0
        private void TSMI_Refresh_Click(object sender, EventArgs e)
        {
            if (LV_TA.Focused)
            {
                ListViewEditor.Refresh(ProjectFolders.TextureAtlasPath, LV_TA, SmallIconsSize, LargeIconsSize);
            }
            if (LV_NM.Focused)
            {
                ListViewEditor.Refresh(ProjectFolders.NormalMapsPath, LV_NM, SmallIconsSize, LargeIconsSize);
            }
            if (LV_SM.Focused)
            {
                ListViewEditor.Refresh(ProjectFolders.SpecularMapsPath, LV_SM, SmallIconsSize, LargeIconsSize);
            }

            TSMI_LargeIcons.Checked = true;
            TSMI_SmallIcons.Checked = false;
        }
Exemplo n.º 3
0
        private void EntityTextures_Load(object sender, EventArgs e)
        {
            MinimizeCheckBoxHeight = this.Height - 72;

            MCB_TA.Height = MinimizeCheckBoxHeight;
            MCB_NM.Height = MinimizeCheckBoxHeight;
            MCB_SM.Height = MinimizeCheckBoxHeight;

            MCB_TA.Minimize();
            MCB_NM.Minimize();
            MCB_SM.Minimize();

            ListViewEditor.Connect(ProjectFolders.TextureAtlasPath, LV_TA, SmallIconsSize, LargeIconsSize);
            ListViewEditor.Dispose();
            ListViewEditor.Connect(ProjectFolders.NormalMapsPath, LV_NM, SmallIconsSize, LargeIconsSize);
            ListViewEditor.Dispose();
            ListViewEditor.Connect(ProjectFolders.SpecularMapsPath, LV_SM, SmallIconsSize, LargeIconsSize);
            ListViewEditor.Dispose();
        }
Exemplo n.º 4
0
 private void LV_SM_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Add)
     {
         if (!TSMI_LargeIcons.Checked)
         {
             IconSizeChange(false);
         }
     }
     if (e.KeyData == Keys.Subtract)
     {
         if (!TSMI_SmallIcons.Checked)
         {
             IconSizeChange(true);
         }
     }
     if (e.KeyData == Keys.F5)
     {
         ListViewEditor.Refresh(ProjectFolders.TextureAtlasPath, LV_TA, SmallIconsSize, LargeIconsSize);
         TSMI_LargeIcons.Checked = true;
         TSMI_SmallIcons.Checked = false;
     }
 }