public LauncherWindow() { this.Title = "TrueCraft Launcher"; this.Width = 1200; this.Height = 576; this.User = new TrueCraftUser(); MainContainer = new HBox(); WebScrollView = new ScrollView(); WebView = new WebView("https://truecraft.io/updates"); LoginView = new LoginView(this); OptionView = new OptionView(this); MultiplayerView = new MultiplayerView(this); SingleplayerView = new SingleplayerView(this); InteractionBox = new VBox(); using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("TrueCraft.Launcher.Content.truecraft_logo.png")) TrueCraftLogoImage = new ImageView(Image.FromStream(stream).WithBoxSize(350, 75)); WebScrollView.Content = WebView; MainContainer.PackStart(WebScrollView, true); InteractionBox.PackStart(TrueCraftLogoImage); InteractionBox.PackEnd(LoginView); MainContainer.PackEnd(InteractionBox); this.Content = MainContainer; }
public void SpawnOptions(List <Option> options) { options.ForEach((option) => { Button spawnedButton = GameObject.Instantiate(optionButton, Vector3.zero, Quaternion.identity); OptionView optionView = spawnedButton.GetComponent <OptionView>(); optionView.SetProperties(option.name, option._id); RectTransform buttonTransform = spawnedButton.GetComponent <RectTransform>(); buttonTransform.SetParent(transform); buttonTransform.SetPositionAndRotation(transform.position, transform.rotation); }); }
private void PlatformViewGenerator() { //Ładowanie opcji dla Platform _ = new OptionView(_PlatformTab); //Ładowanie Drzwa PNC dla wybranego Projektu _ = new PNCTreeView(_PlatformTab); //Ładowanie przycisków akcji _ = new ButtonView(_PlatformTab); //Ładowanie Specyfikacji dla PNC i jego predecessora _ = new SpecificationView(_PlatformTab); }
public LauncherWindow() { this.Title = "TrueCraft Launcher"; this.Width = 1200; this.Height = 576; this.User = new TrueCraftUser(); MainContainer = new HBox(); WebScrollView = new ScrollView(); WebView = new WebView("http://truecraft.io/updates"); LoginView = new LoginView(this); OptionView = new OptionView(this); MultiplayerView = new MultiplayerView(this); SingleplayerView = new SingleplayerView(this); WebScrollView.Content = WebView; MainContainer.PackStart(WebScrollView, true); MainContainer.PackEnd(LoginView); this.Content = MainContainer; }
public LauncherWindow() { Title = "TrueCraft Launcher"; Width = 300; Height = 100; User = new TrueCraftUser(); MainContainer = new HBox(); OptionView = new OptionView(this); MultiPlayerView = new MultiPlayerView(this); SinglePlayerView = new SinglePlayerView(this); InteractionBox = new VBox(); MainMenuView = new MainMenuView(this); using (var stream = Assembly.GetExecutingAssembly() .GetManifestResourceStream("TrueCraft.Launcher.Content.truecraft_logo.png")) TrueCraftLogoImage = new ImageView(Image.FromStream(stream).WithBoxSize(300, 75)); InteractionBox.PackStart(TrueCraftLogoImage); InteractionBox.PackEnd(MainMenuView); MainContainer.PackEnd(InteractionBox); Content = MainContainer; }
public OrganizationalChart() { selectionPicker1 = new UIPickerView(); this.OptionView = new UIView(); string deviceType = UIDevice.CurrentDevice.Model; overviewLabel = new UILabel(); overviewLabel.Text = "Enable Overview"; overviewLabel.TextColor = UIColor.Black; overviewLabel.TextAlignment = UITextAlignment.Left; overviewLabel.BackgroundColor = UIColor.Clear; overviewLabel.Frame = new CGRect(this.Frame.X + 10, 70, 150, 30); overviewSwitch = new UISwitch(); overviewSwitch.On = true; overviewSwitch.Frame = new CGRect(this.Frame.X + 250, 70, 50, 30); overviewSwitch.TouchUpInside += OverviewSwitch_TouchUpInside; overviewSwitch.BackgroundColor = UIColor.Clear; dragLabel = new UILabel(); dragLabel.Text = "Change Hierarchy"; dragLabel.TextColor = UIColor.Black; dragLabel.TextAlignment = UITextAlignment.Left; dragLabel.BackgroundColor = UIColor.Clear; dragLabel.Frame = new CGRect(this.Frame.X + 10, 10, 150, 30); dragSwitch = new UISwitch(); dragSwitch.On = false; dragSwitch.Frame = new CGRect(this.Frame.X + 250, 10, 50, 30); dragSwitch.TouchUpInside += dragSwitch_TouchUpInside; dragSwitch.BackgroundColor = UIColor.Clear; diagram = new SfDiagram(); //Dictionary collection FillColor = new Dictionary <string, UIColor>(); FillColor.Add("Managing Director", UIColor.FromRGB(239, 75, 93)); FillColor.Add("Project Manager", UIColor.FromRGB(49, 162, 255)); FillColor.Add("Senior Manager", UIColor.FromRGB(49, 162, 255)); FillColor.Add("Project Lead", UIColor.FromRGB(0, 194, 192)); FillColor.Add("Senior S/W Engg", UIColor.FromRGB(0, 194, 192)); FillColor.Add("Software Engg", UIColor.FromRGB(0, 194, 192)); FillColor.Add("Team Lead", UIColor.FromRGB(0, 194, 192)); FillColor.Add("Project Trainee", UIColor.FromRGB(255, 129, 0)); StrokeColor = new Dictionary <string, CGColor>(); StrokeColor.Add("Managing Director", UIColor.FromRGB(201, 32, 61).CGColor); StrokeColor.Add("Project Manager", UIColor.FromRGB(23, 132, 206).CGColor); StrokeColor.Add("Senior Manager", UIColor.FromRGB(23, 132, 206).CGColor); StrokeColor.Add("Project Lead", UIColor.FromRGB(4, 142, 135).CGColor); StrokeColor.Add("Senior S/W Engg", UIColor.FromRGB(4, 142, 135).CGColor); StrokeColor.Add("Software Engg", UIColor.FromRGB(4, 142, 135).CGColor); StrokeColor.Add("Team Lead", UIColor.FromRGB(4, 142, 135).CGColor); StrokeColor.Add("Project Trainee", UIColor.FromRGB(206, 98, 9).CGColor); diagram.BeginNodeRender += Dia_BeginNodeRender; diagram.ItemLongPressed += Dia_ItemLongPressed; diagram.LayoutNodeDropped += Diagram_OnLayoutNodeDropped; diagram.BackgroundColor = UIColor.White; diagram.EnableSelectors = false; diagram.NodeClicked += Dia_NodeClicked; diagram.Loaded += Dia_Loaded; //Initialize Method datamodel = new DataModel(); datamodel.Data(); //To Represent DataSourceSttings Properties DataSourceSettings settings = new DataSourceSettings(); settings.ParentId = "ReportingPerson"; settings.Id = "Name"; settings.DataSource = datamodel.employee; diagram.DataSourceSettings = settings; //To Represent LayoutManager Properties diagram.LayoutManager = new LayoutManager() { Layout = new DirectedTreeLayout() { Type = LayoutType.Organization, HorizontalSpacing = 35, } }; for (int i = 0; i < diagram.Connectors.Count; i++) { diagram.Connectors[i].TargetDecoratorType = DecoratorType.None; diagram.Connectors[i].Style.StrokeBrush = new SolidBrush(UIColor.FromRGB(127, 132, 133)); diagram.Connectors[i].Style.StrokeWidth = 1; } this.AddSubview(diagram); diagram.Width = (float)this.Frame.Width; diagram.Height = (float)this.Frame.Height; OptionView.AddSubview(dragLabel); OptionView.AddSubview(dragSwitch); if (deviceType == "iPad") { OptionView.AddSubview(overviewLabel); OptionView.AddSubview(overviewSwitch); overviewPanel = new OverviewPanel(); overviewPanel.Layer.BorderColor = UIColor.Orange.CGColor; overviewPanel.Layer.BorderWidth = 2; overviewPanel.Frame = new CGRect(0, 0, UIScreen.MainScreen.Bounds.Width / 2, UIScreen.MainScreen.Bounds.Height / 4); diagram.AddSubview(overviewPanel); diagram.OverviewPanel = overviewPanel; } }
void Start() { playerTurn = playerTurnObject.GetComponent <PlayerTurn> (); optionView = optionViewObject.GetComponent <OptionView> (); }
public OptionPage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.OptionView = new OptionView(new OptionViewmodel(bootstrapperController)); }
public LangTableSource(List <Lang> items, OptionView view) { TableItems = items; View = view; }
private void Option() { Window window = new OptionView(); window.ShowDialog(); }