75 lines
1.2 KiB
C#
75 lines
1.2 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class select_window_class
|
|
{
|
|
public bool active;
|
|
|
|
public bool button_colormap;
|
|
|
|
public bool button_node;
|
|
|
|
public bool button_terrain;
|
|
|
|
public bool button_heightmap;
|
|
|
|
public float terrain_zoom;
|
|
|
|
public float terrain_zoom2;
|
|
|
|
public Vector2 terrain_pos;
|
|
|
|
public float node_zoom;
|
|
|
|
public float node_zoom2;
|
|
|
|
public Vector2 node_pos;
|
|
|
|
public bool node_grid;
|
|
|
|
public bool node_grid_center;
|
|
|
|
public int mode;
|
|
|
|
public Vector2 terrain_offset;
|
|
|
|
public Vector2 node_offset;
|
|
|
|
public select_window_class()
|
|
{
|
|
button_heightmap = true;
|
|
terrain_zoom = 40f;
|
|
terrain_zoom2 = 40f;
|
|
terrain_pos = new Vector2(0f, 0f);
|
|
node_zoom = 40f;
|
|
node_zoom2 = 40f;
|
|
node_pos = new Vector2(0f, 0f);
|
|
node_grid = true;
|
|
node_grid_center = true;
|
|
terrain_offset = new Vector2(0f, 0f);
|
|
node_offset = new Vector2(0f, 0f);
|
|
}
|
|
|
|
public virtual void select_colormap()
|
|
{
|
|
button_node = false;
|
|
button_colormap = true;
|
|
button_terrain = false;
|
|
}
|
|
|
|
public virtual void select_terrain()
|
|
{
|
|
button_node = false;
|
|
button_colormap = false;
|
|
button_terrain = true;
|
|
}
|
|
|
|
public virtual void select_node()
|
|
{
|
|
button_node = true;
|
|
button_colormap = false;
|
|
button_terrain = false;
|
|
}
|
|
}
|