Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        panelUpdater = this.GetComponent <WardrobePreviewPanelUpdater>();
        pageText     = GameObject.Find("PageText").GetComponent <Text>();
        //filterField = GameObject.Find("FilterField").GetComponent<InputField>();

        raceString   = "human";
        genderString = "male";

        genderDropdown.ClearOptions();
        genderDropdown.AddOptions(WardrobeStuff.genderMap.Keys.ToList());
        raceDropdown.ClearOptions();
        raceDropdown.AddOptions(WardrobeStuff.raceMap.Keys.ToList());
        appearanceDropdown.ClearOptions();
        updateRaceGender();

        slotChangeDropdown.ClearOptions();
        List <DOption> slotOptions = new List <DOption>();

        foreach (GearSlot slot in Enum.GetValues(typeof(GearSlot)))
        {
            DOption option = new DOption(slot.ToString(), slot);
            option.userObject = slot;
            slotOptions.Add(option);
        }
        slotChangeDropdown.AddOptions(slotOptions.Cast <Dropdown.OptionData>().ToList());

        DBInst.progress += (m) => progress = m;
        DBInst.loadOrCallback((d) => {
            db = d;
        });
    }
Esempio n. 2
0
    void Start()
    {
        root              = GameObject.Find("ROOT");
        progressText      = GameObject.Find("ProgressText").GetComponent <Text>();
        nIFModelDropdown  = GameObject.Find("NIFmodelImaDropdown").GetComponent <ImaDropdown>();
        animationDropdown = GameObject.Find("AnimationDropdown").GetComponent <Dropdown>();
        speedSlider       = GameObject.Find("SpeedSlider").GetComponent <Slider>();
        speedSlider.value = this.animSpeed;
        filterField       = GameObject.Find("FilterField").GetComponent <InputField>();

        adb = AssetDatabaseInst.DB;

        DBInst.loadOrCallback((d) => db = d);
        DBInst.progress += (m) => progress = m;
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("TestDecomp start called");

        tex         = GetComponentInChildren <Text>();
        img         = GetComponentInChildren <Image>();
        dropdown    = GetComponentInChildren <ImaDropdown>();
        dropdownbox = dropdown.gameObject;
        dropdownbox.SetActive(false);
        loadbutton            = GameObject.Find("LoadWorldButton");
        loadModelViewerbutton = GameObject.Find("LoadModelButton");
        thirdPersonToggle     = GetComponentInChildren <Toggle>().gameObject;
        thirdPersonToggle.SetActive(false);
        loadbutton.SetActive(false);
        loadModelViewerbutton.SetActive(false);
        color            = Color.grey;
        DBInst.progress += (s) => this.error = s;
        DBInst.loadOrCallback((d) => db = d);
        error = "Loading asset database";
        adb   = AssetDatabaseInst.DB;
    }
    public void init()
    {
        itemText     = GameObject.Find("ItemNameText").GetComponent <Text>();
        previewsRoot = GameObject.Find("PreviewsRoot");
        DBInst.loadOrCallback((d) => db = d);
        mainPaperdoll = GameObject.Find("MainPaperdoll").GetComponent <Paperdoll>();
        ourPreview    = new GameObject();
        ourPreview.transform.parent = previewsRoot.transform;

        EventTrigger trigger = this.gameObject.AddComponent <EventTrigger>();

        EventTrigger.Entry entry = new EventTrigger.Entry();
        entry.eventID = EventTriggerType.PointerDown;
        entry.callback.AddListener((data) => { itemClicked(); });
        trigger.triggers.Add(entry);

        EventTrigger.Entry eentry = new EventTrigger.Entry();
        eentry.eventID = EventTriggerType.PointerEnter;
        eentry.callback.AddListener((data) => { itemEntered(); });
        trigger.triggers.Add(eentry);
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     adb = AssetDatabaseInst.DB;
     DBInst.loadOrCallback((d) => db = d);
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     DBInst.loadOrCallback((d) => db = d);
 }
Esempio n. 7
0
        //long appearenceSet = long.MinValue;

        public Paperdoll() : base()
        {
            DBInst.loadOrCallback((d) => state = ClassState.UPDATE);
        }