220 lines
4.0 KiB
C#
220 lines
4.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class map_class
|
|
{
|
|
public map_type_enum type;
|
|
|
|
public int timeOut;
|
|
|
|
public bool active;
|
|
|
|
public bool button_parameters;
|
|
|
|
public bool button_image_editor;
|
|
|
|
public bool button_region;
|
|
|
|
public bool button_image_export;
|
|
|
|
public bool button_heightmap_export;
|
|
|
|
public bool button_converter;
|
|
|
|
public bool button_settings;
|
|
|
|
public bool button_create_terrain;
|
|
|
|
public bool button_help;
|
|
|
|
public bool button_update;
|
|
|
|
public float alpha;
|
|
|
|
public Color backgroundColor;
|
|
|
|
public Color titleColor;
|
|
|
|
public Color errorColor;
|
|
|
|
public bool region_popup_edit;
|
|
|
|
public bool area_popup_edit;
|
|
|
|
public bool disable_region_popup_edit;
|
|
|
|
public bool disable_area_popup_edit;
|
|
|
|
public List<map_region_class> region;
|
|
|
|
public string[] region_popup;
|
|
|
|
public int region_select;
|
|
|
|
public bool manual_edit;
|
|
|
|
public Rect region_rect;
|
|
|
|
public Rect area_rect;
|
|
|
|
public preimage_edit_class preimage_edit;
|
|
|
|
public Color color_fault;
|
|
|
|
public Texture2D tex1;
|
|
|
|
public Texture2D tex2;
|
|
|
|
public Texture2D tex3;
|
|
|
|
public FileStream file_tex2;
|
|
|
|
public FileStream file_tex3;
|
|
|
|
public bool tex_swapped;
|
|
|
|
public tile_class tex2_tile;
|
|
|
|
public tile_class tex3_tile;
|
|
|
|
public WWW elExt_check;
|
|
|
|
public bool elExt_check_loaded;
|
|
|
|
public bool elExt_check_assign;
|
|
|
|
public List<ext_class> elExt;
|
|
|
|
public List<ext_class> texExt;
|
|
|
|
public List<float> time_start_elExt;
|
|
|
|
public List<float> time_start_texExt;
|
|
|
|
public int export_texExt;
|
|
|
|
public int export_elExt;
|
|
|
|
public int mode;
|
|
|
|
public bool export_tex3;
|
|
|
|
public bool export_tex2;
|
|
|
|
public latlong_area_class export_heightmap_area;
|
|
|
|
public latlong_area_class export_image_area;
|
|
|
|
public tile_class export_pullIndex;
|
|
|
|
public int export_pulled;
|
|
|
|
public bool export_image_active;
|
|
|
|
public bool export_heightmap_active;
|
|
|
|
public int export_heightmap_zoom;
|
|
|
|
public float export_heightmap_timeStart;
|
|
|
|
public float export_heightmap_timeEnd;
|
|
|
|
public float export_heightmap_timePause;
|
|
|
|
public bool export_heightmap_continue;
|
|
|
|
public map_export_class export_heightmap;
|
|
|
|
public map_export_class export_image;
|
|
|
|
public int export_image_zoom;
|
|
|
|
public float export_image_timeStart;
|
|
|
|
public float export_image_timeEnd;
|
|
|
|
public float export_image_timePause;
|
|
|
|
public bool export_image_continue;
|
|
|
|
public int export_jpg_quality;
|
|
|
|
public bool export_jpg;
|
|
|
|
public bool export_png;
|
|
|
|
public bool export_raw;
|
|
|
|
public Color color;
|
|
|
|
public bool key_edit;
|
|
|
|
public List<map_key_class> bingKey;
|
|
|
|
public int bingKey_selected;
|
|
|
|
public float mouse_sensivity;
|
|
|
|
public bool path_display;
|
|
|
|
public bool warnings;
|
|
|
|
public bool track_tile;
|
|
|
|
public bool snap;
|
|
|
|
public float snapValue;
|
|
|
|
public map_class()
|
|
{
|
|
timeOut = 4;
|
|
active = true;
|
|
button_parameters = true;
|
|
button_image_editor = true;
|
|
button_region = true;
|
|
button_image_export = true;
|
|
button_heightmap_export = true;
|
|
button_settings = true;
|
|
alpha = 0.65f;
|
|
errorColor = new Color(0.49803922f, 0.49803922f, 0.49803922f);
|
|
region = new List<map_region_class>();
|
|
preimage_edit = new preimage_edit_class();
|
|
tex2_tile = new tile_class();
|
|
tex3_tile = new tile_class();
|
|
elExt = new List<ext_class>();
|
|
texExt = new List<ext_class>();
|
|
time_start_elExt = new List<float>();
|
|
time_start_texExt = new List<float>();
|
|
export_texExt = 8;
|
|
export_elExt = 16;
|
|
export_heightmap_area = new latlong_area_class();
|
|
export_image_area = new latlong_area_class();
|
|
export_pullIndex = new tile_class();
|
|
export_heightmap_continue = true;
|
|
export_heightmap = new map_export_class();
|
|
export_image = new map_export_class();
|
|
export_image_continue = true;
|
|
export_jpg_quality = 100;
|
|
export_jpg = true;
|
|
color = Color.red;
|
|
bingKey = new List<map_key_class>();
|
|
mouse_sensivity = 2f;
|
|
warnings = true;
|
|
track_tile = true;
|
|
snapValue = 0.1f;
|
|
make_region_popup();
|
|
}
|
|
|
|
public virtual void make_region_popup()
|
|
{
|
|
region_popup = new string[region.Count];
|
|
for (int i = 0; i < region.Count; i++)
|
|
{
|
|
region_popup[i] = region[i].name;
|
|
}
|
|
}
|
|
}
|