コード例 #1
0
        public DropdownGUI(float x, float y, float width, DropdownViewModel <TDropdownOptionViewModel, TSelection> viewModel)
        {
            _x           = x;
            _y           = y;
            _width       = width;
            _noSelection = new GUIContent("----", "<b>SELECT TRANSLATOR</b>\nNo translator is currently selected, which means no new translations will be performed. Please select one from the dropdown.");
            _unselect    = new GUIContent("----", "<b>UNSELECT TRANSLATOR</b>\nThis will unselect the current translator, which means no new translations will be performed.");

            _viewModel = viewModel;
        }
コード例 #2
0
        public DropdownGUI(float x, float y, float width, DropdownViewModel <TDropdownOptionViewModel, TSelection> viewModel)
        {
            _x           = x;
            _y           = y;
            _width       = width;
            _noSelection = GUIUtil.CreateContent(viewModel.NoSelection, viewModel.NoSelectionTooltip);
            _unselect    = GUIUtil.CreateContent(viewModel.Unselect, viewModel.UnselectTooltip);

            _viewModel = viewModel;
        }
コード例 #3
0
 public XuaViewModel(
     List <ToggleViewModel> toggles,
     DropdownViewModel <TranslatorDropdownOptionViewModel, TranslationEndpointManager> dropdown,
     List <ButtonViewModel> commandButtons,
     List <LabelViewModel> labels)
 {
     Toggles        = toggles;
     Dropdown       = dropdown;
     CommandButtons = commandButtons;
     Labels         = labels;
 }