mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-27 06:50:23 +00:00
6d7579e6e0
Camera is now centerd when a bfres is selected. This will apply to reseting the camera aswell. The method is based on Smash Forge so thanks to the devs for it. Start on bfsha program linking for bfres materials. Dunno how far i'll take this. Basic ortho mode added. Needs improvements to zoom in and mainly just changes the projection matrix to ortho atm. Controls are not altered.
255 lines
No EOL
14 KiB
C#
255 lines
No EOL
14 KiB
C#
namespace Switch_Toolbox.Library
|
|
{
|
|
partial class Viewport
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.normalsShadingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.panelViewport = new Switch_Toolbox.Library.Forms.STPanel();
|
|
this.stContextMenuStrip1 = new Switch_Toolbox.Library.Forms.STMenuStrip();
|
|
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.cameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.modeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.perspectiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.orthographicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.orientationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.frontToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.backToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.topToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.bottomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.rightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.shadingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.resetCameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.resetPoseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.reloadShadersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.stContextMenuStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// normalsShadingToolStripMenuItem
|
|
//
|
|
this.normalsShadingToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
|
this.normalsShadingToolStripMenuItem.Image = global::Switch_Toolbox.Library.Properties.Resources.normalsSphere;
|
|
this.normalsShadingToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
this.normalsShadingToolStripMenuItem.Name = "normalsShadingToolStripMenuItem";
|
|
this.normalsShadingToolStripMenuItem.Size = new System.Drawing.Size(204, 46);
|
|
this.normalsShadingToolStripMenuItem.Text = "Normals Shading";
|
|
this.normalsShadingToolStripMenuItem.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
|
//
|
|
// panelViewport
|
|
//
|
|
this.panelViewport.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.panelViewport.Location = new System.Drawing.Point(0, 24);
|
|
this.panelViewport.Name = "panelViewport";
|
|
this.panelViewport.Size = new System.Drawing.Size(781, 498);
|
|
this.panelViewport.TabIndex = 3;
|
|
//
|
|
// stContextMenuStrip1
|
|
//
|
|
this.stContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.viewToolStripMenuItem,
|
|
this.shadingToolStripMenuItem,
|
|
this.resetCameraToolStripMenuItem,
|
|
this.resetPoseToolStripMenuItem,
|
|
this.optionsToolStripMenuItem});
|
|
this.stContextMenuStrip1.Location = new System.Drawing.Point(0, 0);
|
|
this.stContextMenuStrip1.Name = "stContextMenuStrip1";
|
|
this.stContextMenuStrip1.Size = new System.Drawing.Size(781, 24);
|
|
this.stContextMenuStrip1.TabIndex = 4;
|
|
this.stContextMenuStrip1.Text = "stContextMenuStrip1";
|
|
//
|
|
// viewToolStripMenuItem
|
|
//
|
|
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.cameraToolStripMenuItem});
|
|
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
|
this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
|
this.viewToolStripMenuItem.Text = "View";
|
|
//
|
|
// cameraToolStripMenuItem
|
|
//
|
|
this.cameraToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.modeToolStripMenuItem,
|
|
this.orientationToolStripMenuItem});
|
|
this.cameraToolStripMenuItem.Name = "cameraToolStripMenuItem";
|
|
this.cameraToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.cameraToolStripMenuItem.Text = "Camera";
|
|
//
|
|
// modeToolStripMenuItem
|
|
//
|
|
this.modeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.perspectiveToolStripMenuItem,
|
|
this.orthographicToolStripMenuItem});
|
|
this.modeToolStripMenuItem.Name = "modeToolStripMenuItem";
|
|
this.modeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.modeToolStripMenuItem.Text = "Mode";
|
|
//
|
|
// perspectiveToolStripMenuItem
|
|
//
|
|
this.perspectiveToolStripMenuItem.Name = "perspectiveToolStripMenuItem";
|
|
this.perspectiveToolStripMenuItem.Size = new System.Drawing.Size(145, 22);
|
|
this.perspectiveToolStripMenuItem.Text = "Perspective";
|
|
this.perspectiveToolStripMenuItem.Click += new System.EventHandler(this.perspectiveToolStripMenuItem_Click);
|
|
//
|
|
// orthographicToolStripMenuItem
|
|
//
|
|
this.orthographicToolStripMenuItem.Name = "orthographicToolStripMenuItem";
|
|
this.orthographicToolStripMenuItem.Size = new System.Drawing.Size(145, 22);
|
|
this.orthographicToolStripMenuItem.Text = "Orthographic";
|
|
this.orthographicToolStripMenuItem.Click += new System.EventHandler(this.orthographicToolStripMenuItem_Click);
|
|
//
|
|
// orientationToolStripMenuItem
|
|
//
|
|
this.orientationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.frontToolStripMenuItem,
|
|
this.backToolStripMenuItem,
|
|
this.topToolStripMenuItem,
|
|
this.bottomToolStripMenuItem,
|
|
this.rightToolStripMenuItem,
|
|
this.leftToolStripMenuItem});
|
|
this.orientationToolStripMenuItem.Name = "orientationToolStripMenuItem";
|
|
this.orientationToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.orientationToolStripMenuItem.Text = "Orientation";
|
|
//
|
|
// frontToolStripMenuItem
|
|
//
|
|
this.frontToolStripMenuItem.Name = "frontToolStripMenuItem";
|
|
this.frontToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.frontToolStripMenuItem.Text = "Front";
|
|
this.frontToolStripMenuItem.Click += new System.EventHandler(this.frontToolStripMenuItem_Click);
|
|
//
|
|
// backToolStripMenuItem
|
|
//
|
|
this.backToolStripMenuItem.Name = "backToolStripMenuItem";
|
|
this.backToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.backToolStripMenuItem.Text = "Back";
|
|
this.backToolStripMenuItem.Click += new System.EventHandler(this.backToolStripMenuItem_Click);
|
|
//
|
|
// topToolStripMenuItem
|
|
//
|
|
this.topToolStripMenuItem.Name = "topToolStripMenuItem";
|
|
this.topToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.topToolStripMenuItem.Text = "Top";
|
|
this.topToolStripMenuItem.Click += new System.EventHandler(this.topToolStripMenuItem_Click);
|
|
//
|
|
// bottomToolStripMenuItem
|
|
//
|
|
this.bottomToolStripMenuItem.Name = "bottomToolStripMenuItem";
|
|
this.bottomToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.bottomToolStripMenuItem.Text = "Bottom";
|
|
this.bottomToolStripMenuItem.Click += new System.EventHandler(this.bottomToolStripMenuItem_Click);
|
|
//
|
|
// rightToolStripMenuItem
|
|
//
|
|
this.rightToolStripMenuItem.Name = "rightToolStripMenuItem";
|
|
this.rightToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.rightToolStripMenuItem.Text = "Right";
|
|
this.rightToolStripMenuItem.Click += new System.EventHandler(this.rightToolStripMenuItem_Click);
|
|
//
|
|
// leftToolStripMenuItem
|
|
//
|
|
this.leftToolStripMenuItem.Name = "leftToolStripMenuItem";
|
|
this.leftToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
this.leftToolStripMenuItem.Text = "Left";
|
|
this.leftToolStripMenuItem.Click += new System.EventHandler(this.leftToolStripMenuItem_Click);
|
|
//
|
|
// shadingToolStripMenuItem
|
|
//
|
|
this.shadingToolStripMenuItem.Name = "shadingToolStripMenuItem";
|
|
this.shadingToolStripMenuItem.Size = new System.Drawing.Size(62, 20);
|
|
this.shadingToolStripMenuItem.Text = "Shading";
|
|
this.shadingToolStripMenuItem.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.shadingToolStripMenuItem_DropDownItemClicked);
|
|
//
|
|
// resetCameraToolStripMenuItem
|
|
//
|
|
this.resetCameraToolStripMenuItem.Name = "resetCameraToolStripMenuItem";
|
|
this.resetCameraToolStripMenuItem.Size = new System.Drawing.Size(91, 20);
|
|
this.resetCameraToolStripMenuItem.Text = "Reset Camera";
|
|
this.resetCameraToolStripMenuItem.Click += new System.EventHandler(this.resetCameraToolStripMenuItem_Click);
|
|
//
|
|
// resetPoseToolStripMenuItem
|
|
//
|
|
this.resetPoseToolStripMenuItem.Name = "resetPoseToolStripMenuItem";
|
|
this.resetPoseToolStripMenuItem.Size = new System.Drawing.Size(75, 20);
|
|
this.resetPoseToolStripMenuItem.Text = "Reset Pose";
|
|
this.resetPoseToolStripMenuItem.Click += new System.EventHandler(this.resetPoseToolStripMenuItem_Click);
|
|
//
|
|
// optionsToolStripMenuItem
|
|
//
|
|
this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.reloadShadersToolStripMenuItem});
|
|
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
|
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
|
|
this.optionsToolStripMenuItem.Text = "Options";
|
|
//
|
|
// reloadShadersToolStripMenuItem
|
|
//
|
|
this.reloadShadersToolStripMenuItem.Name = "reloadShadersToolStripMenuItem";
|
|
this.reloadShadersToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
|
|
this.reloadShadersToolStripMenuItem.Text = "Reload Shaders";
|
|
this.reloadShadersToolStripMenuItem.Click += new System.EventHandler(this.reloadShadersToolStripMenuItem_Click);
|
|
//
|
|
// Viewport
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.Controls.Add(this.panelViewport);
|
|
this.Controls.Add(this.stContextMenuStrip1);
|
|
this.Name = "Viewport";
|
|
this.Size = new System.Drawing.Size(781, 522);
|
|
this.stContextMenuStrip1.ResumeLayout(false);
|
|
this.stContextMenuStrip1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.ToolStripMenuItem normalsShadingToolStripMenuItem;
|
|
private Forms.STPanel panelViewport;
|
|
private Forms.STMenuStrip stContextMenuStrip1;
|
|
private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem resetCameraToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem shadingToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem reloadShadersToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem resetPoseToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem cameraToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem modeToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem perspectiveToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem orthographicToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem orientationToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem frontToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem backToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem topToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem bottomToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem rightToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem leftToolStripMenuItem;
|
|
}
|
|
} |