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; }
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; }
public XuaViewModel( List <ToggleViewModel> toggles, DropdownViewModel <TranslatorDropdownOptionViewModel, TranslationEndpointManager> dropdown, List <ButtonViewModel> commandButtons, List <LabelViewModel> labels) { Toggles = toggles; Dropdown = dropdown; CommandButtons = commandButtons; Labels = labels; }