Esempio n. 1
0
        private void InitGUI()
        {
            //Coordinate Select
            ChaFileDefine.CoordinateType[] coordinateList = new ChaFileDefine.CoordinateType[]
            {
                ChaFileDefine.CoordinateType.School01,
                ChaFileDefine.CoordinateType.School02,
                ChaFileDefine.CoordinateType.Gym,
                ChaFileDefine.CoordinateType.Swim,
                ChaFileDefine.CoordinateType.Club,
                ChaFileDefine.CoordinateType.Plain,
                ChaFileDefine.CoordinateType.Pajamas,
            };
            List <string> coordinateStringList = new List <string>();

            for (int i = 0; i < coordinateList.Count(); i++)
            {
                coordinateStringList.Add(coordinateList[i].ToString());
            }
            coordinateSelect = new CoordinateSelect(coordinateStringList.ToArray(), coordinateList, "");

            //Preset select
            presetSelectBust = new PresetSelect(PluginPath.presetDirBust, "Load Bust preset", 0, 20);
            presetSelectHip  = new PresetSelect(PluginPath.presetDirHip, "Load Hip preset", 0, 20);

            //Save dialog
            s_dialog = new DialogSavePreset(_parent, _s_dialogID, "Save preset", SDRect);

            //message box
            msgBox = new MessageBox(WindowID.GetNewID());
        }
Esempio n. 2
0
        private void Start()
        {
            if (!Directory.Exists(PresetDir))
            {
                try
                {
                    DirectoryInfo info = Directory.CreateDirectory(PresetDir);
                }
                catch (Exception e)
                {
                    Logger.LogError("Failed create directory for presets. \r\nException info:\r\n" + e.ToString());
                }
            }

            CharacterApi.RegisterExtraBehaviour <ParamCharaController>(GUID);
            window = new ControllerWindow(WindowID.GetNewID(), WindowID.GetNewID(), WindowID.GetNewID());
        }