public ActionEverybodyGetsOneView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { var mainStack = new StackLayout(); mainStack.Orientation = StackOrientation.Horizontal; var player = new PlayerUI(actionContainer, false, 50, 800); mainStack.Children.Add(player); StackLayout finalStack = new StackLayout(); mainStack.Children.Add(finalStack); FluxxHandXF otherHand = new FluxxHandXF(); otherHand.LoadList(actionContainer.TempHand !, ""); otherHand.Margin = new Thickness(3, 15, 0, 0); finalStack.Children.Add(otherHand); var button = GetGamingButton("Give Cards To Selected Player", nameof(ActionEverybodyGetsOneViewModel.GiveCardsAsync)); // i think button.HorizontalOptions = LayoutOptions.Start; button.VerticalOptions = LayoutOptions.Start; finalStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); finalStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionDoAgainView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { Text = "Card List"; StackPanel stack = new StackPanel(); SKRect thisRect = ThisFrame.GetControlArea(); SetUpMarginsOnParentControl(stack, thisRect); //i think. ListChooserWPF list = new ListChooserWPF(); list.LoadLists(actionContainer.CardList1 !); // i think ScrollViewer thisScroll = new ScrollViewer(); thisScroll.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; thisScroll.Content = list; thisScroll.Height = 500; // well see. stack.Orientation = Orientation.Horizontal; stack.Children.Add(thisScroll); StackPanel finalStack = new StackPanel(); stack.Children.Add(finalStack); var button = GetGamingButton("Select Card", nameof(ActionDoAgainViewModel.SelectCardAsync)); // i think finalStack.Children.Add(button); button = GetGamingButton("View Card", nameof(ActionDoAgainViewModel.ViewCard)); finalStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); finalStack.Children.Add(button); Grid grid = new Grid(); grid.Children.Add(ThisDraw); grid.Children.Add(stack); Content = ActionHelpers.GetFinalStack(grid, model, actionContainer, keeperContainer); }
public ActionDirectionView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { Text = "Direction"; StackPanel stack = new StackPanel(); SKRect rect = ThisFrame.GetControlArea(); SetUpMarginsOnParentControl(stack, rect); //i think. ListChooserWPF list = new ListChooserWPF(); list.ItemHeight = 60; list.LoadLists(actionContainer.Direction1 !); stack.Children.Add(list); var button = GetGamingButton("Choose Direction", nameof(ActionDirectionViewModel.DirectionAsync)); button.HorizontalAlignment = HorizontalAlignment.Left; button.VerticalAlignment = VerticalAlignment.Top; StackPanel otherStack = new StackPanel(); otherStack.Orientation = Orientation.Horizontal; stack.Children.Add(otherStack); otherStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); otherStack.Children.Add(button); Grid grid = new Grid(); grid.Children.Add(ThisDraw); grid.Children.Add(stack); Content = ActionHelpers.GetFinalStack(grid, model, actionContainer, keeperContainer); }
public ActionDirectionView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { Text = "Direction"; StackLayout stack = new StackLayout(); SetUpMarginsOnParentControl(stack); //i think. ListChooserXF list = new ListChooserXF(); list.ItemHeight = 60; list.LoadLists(actionContainer.Direction1 !); stack.Children.Add(list); var button = GetGamingButton("Choose Direction", nameof(ActionDirectionViewModel.DirectionAsync)); button.HorizontalOptions = LayoutOptions.Start; button.VerticalOptions = LayoutOptions.Start; StackLayout otherStack = new StackLayout(); otherStack.Orientation = StackOrientation.Horizontal; stack.Children.Add(otherStack); otherStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); otherStack.Children.Add(button); Grid grid = new Grid(); grid.Children.Add(ThisDraw); grid.Children.Add(stack); Content = ActionHelpers.GetFinalStack(grid, model, actionContainer, keeperContainer); }
public ActionDoAgainView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { Text = "Card List"; StackLayout stack = new StackLayout(); SetUpMarginsOnParentControl(stack); //i think. ListChooserXF list = new ListChooserXF(); list.LoadLists(actionContainer.CardList1 !); // i think ScrollView thisScroll = new ScrollView(); thisScroll.Orientation = ScrollOrientation.Vertical; thisScroll.Content = list; thisScroll.HeightRequest = 500; // well see. stack.Orientation = StackOrientation.Horizontal; stack.Children.Add(thisScroll); StackLayout finalStack = new StackLayout(); stack.Children.Add(finalStack); var button = GetGamingButton("Select Card", nameof(ActionDoAgainViewModel.SelectCardAsync)); // i think finalStack.Children.Add(button); button = GetGamingButton("View Card", nameof(ActionDoAgainViewModel.ViewCard)); finalStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); finalStack.Children.Add(button); Grid grid = new Grid(); grid.Children.Add(ThisDraw); grid.Children.Add(stack); Content = ActionHelpers.GetFinalStack(grid, model, actionContainer, keeperContainer); }
public ActionTradeHandsView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { StackLayout mainStack = new StackLayout(); PlayerUI player = new PlayerUI(actionContainer, true, 50, 800); mainStack.Children.Add(player); // hopefully this simple. var button = ActionHelpers.GetKeeperButton(); mainStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionDrawUseView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { StackLayout mainStack = new StackLayout(); FluxxHandXF hand = new FluxxHandXF(); hand.LoadList(actionContainer !.TempHand !, ""); // i think this is the only difference for this one. mainStack.Children.Add(hand); var button = GetGamingButton("Choose Card", nameof(ActionDrawUseViewModel.DrawUseAsync)); //hopefully this simple (?) button.HorizontalOptions = LayoutOptions.Start; button.VerticalOptions = LayoutOptions.Start; mainStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); mainStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionFirstCardRandomView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { StackLayout mainStack = new StackLayout(); FluxxHandXF thisHand = new FluxxHandXF(); thisHand.LoadList(actionContainer !.OtherHand !, ""); thisHand.MinimumWidthRequest = 400; mainStack.Children.Add(thisHand); var button = GetGamingButton("Choose Card", nameof(ActionFirstCardRandomViewModel.ChooseCardAsync)); // i think button.HorizontalOptions = LayoutOptions.Start; button.VerticalOptions = LayoutOptions.Start; mainStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); mainStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionFirstCardRandomView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { StackPanel mainStack = new StackPanel(); FluxxHandWPF thisHand = new FluxxHandWPF(); thisHand.LoadList(actionContainer !.OtherHand !, ""); thisHand.MinWidth = 400; mainStack.Children.Add(thisHand); var button = GetGamingButton("Choose Card", nameof(ActionFirstCardRandomViewModel.ChooseCardAsync)); // i think button.HorizontalAlignment = HorizontalAlignment.Left; button.VerticalAlignment = VerticalAlignment.Top; mainStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); mainStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionDiscardRulesView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { StackLayout mainStack = new StackLayout(); var firstInfo = new SimpleLabelGridXF(); firstInfo.AddRow("Rules To Discard", nameof(ActionDiscardRulesViewModel.RulesToDiscard)); // i think mainStack.Children.Add(firstInfo.GetContent); var nextLabel = GetDefaultLabel(); nextLabel.Margin = new Thickness(3, 15, 0, 2); nextLabel.Text = "Choose Rules To Discard"; ScrollView scroll = new ScrollView(); // could have to scroll scroll.Orientation = ScrollOrientation.Vertical; scroll.HeightRequest = 400; ListChooserXF rule1 = new ListChooserXF(); rule1.LoadLists(actionContainer !.Rule1 !); rule1.ItemHeight = 40; rule1.ItemWidth = 600; scroll.Content = rule1; StackLayout otherStack = new StackLayout(); otherStack.Orientation = StackOrientation.Horizontal; mainStack.Children.Add(otherStack); otherStack.Children.Add(scroll); var button = GetGamingButton("View Card", nameof(ActionDiscardRulesViewModel.ViewRuleCard)); StackLayout finalStack = new StackLayout(); finalStack.Children.Add(button); button = GetGamingButton("Discard Selected Rule(s)", nameof(ActionDiscardRulesViewModel.DiscardRulesAsync)); finalStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); finalStack.Children.Add(button); otherStack.Children.Add(finalStack); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionTakeUseView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { var mainStack = new StackPanel(); var player = new PlayerUI(actionContainer, true, 50, 800); //player.ItemHeight = 50; //player.ItemWidth = 1300; mainStack.Children.Add(player); var otherHand = new FluxxHandWPF(); otherHand.LoadList(actionContainer !.OtherHand !, ""); otherHand.MinWidth = 400; mainStack.Children.Add(otherHand); var button = GetGamingButton("Choose Card", nameof(ActionTakeUseViewModel.ChooseCardAsync)); var thisBind = GetVisibleBinding(nameof(ActionTakeUseViewModel.ButtonChooseCardVisible)); button.SetBinding(Button.VisibilityProperty, thisBind); button.HorizontalAlignment = HorizontalAlignment.Left; button.VerticalAlignment = VerticalAlignment.Top; mainStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); mainStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }
public ActionTakeUseView(FluxxVMData model, ActionContainer actionContainer, KeeperContainer keeperContainer) { var mainStack = new StackLayout(); var player = new PlayerUI(actionContainer, true, 50, 800); //player.ItemHeight = 50; //player.ItemWidth = 1300; mainStack.Children.Add(player); var otherHand = new FluxxHandXF(); otherHand.LoadList(actionContainer !.OtherHand !, ""); otherHand.MinimumWidthRequest = 400; mainStack.Children.Add(otherHand); var button = GetGamingButton("Choose Card", nameof(ActionTakeUseViewModel.ChooseCardAsync)); var thisBind = new Binding(nameof(ActionTakeUseViewModel.ButtonChooseCardVisible)); button.SetBinding(Button.IsVisibleProperty, thisBind); button.HorizontalOptions = LayoutOptions.Start; button.VerticalOptions = LayoutOptions.Start; mainStack.Children.Add(button); button = ActionHelpers.GetKeeperButton(); mainStack.Children.Add(button); Content = ActionHelpers.GetFinalStack(mainStack, model, actionContainer, keeperContainer); }