示例#1
0
 void RecentIPChanged(object sender, UIListBox.SelectionChangedEventArgs args)
 {
     SettingsBag.Current         = store.Recent[args.index];
     uiMapInfoAddress.text       = SettingsBag.Current[SettingName.IPAddress].As <IPAddress>().ToString();
     uiMapInfoPort.text          = SettingsBag.Current[SettingName.Port].As <int>().ToString();
     uiMapInfoScalingFactor.text = SettingsBag.Current[SettingName.Scale].As <float>().ToString();
 }
        private void RecentFileChanged(object sender, UIListBox.SelectionChangedEventArgs e)
        {
            SettingsBag.Current = store.Recent[e.index];
            var browseField = goFileInput.GetComponentInChildren <InputField>();

            browseField.text = SettingsBag.Current[SettingName.Path].As <string>();
            var scalingField = GameObject.Find("Input scaling").GetComponent <InputField>();

            scalingField.text = SettingsBag.Current[SettingName.Scale].As <float>().ToString();
        }
        private void ObjectInfoSelectionChanged(object sender, UIListBox.SelectionChangedEventArgs e)
        {
            var item = listBoxWithSpecializedObjects[e.index] as SpecialInfoListBoxItem;

            loggerForSpecialInformation.ShowObjectInformation(item.Message, item.Position);
        }