Beispiel #1
0
 public VisualClickableUIElement CreateButton(Vector2 position)
 {
     return(new ImageTextButton(new Transform2(position, UiButtons.PonderingSize()), () =>
     {
         _clearPriorDeduction();
         Event.Publish(new ThoughtGained(_thought));
         Scene.NavigateTo("Dilemmas");
     }, GameResources.GetPonderText(_thought), "Pondering/DilemmaCard", "Pondering/DilemmaCard-Hover", "Pondering/DilemmaCard-Press")
     {
         OnEnter = () =>
         {
             if (!CurrentGameState.HasViewedItem(_thought))
             {
                 Event.Publish(new ItemViewed(_thought));
             }
         }
     });
 }
Beispiel #2
0
 protected Dilemma(Vector2 position, string dilemma, params Deduction[] deductions)
 {
     _transform  = new Transform2(position, UiButtons.PonderingSize());
     _dilemma    = dilemma;
     _deductions = deductions;
 }