Esempio n. 1
0
        public WhiskeyPage()
        {
            InitializeComponent();

            startAerateButton       = StartAerateButton;
            stopAerateButton        = StopAerateButton;
            durationSlider          = DurationSlider;
            durationSliderContainer = DurationSliderContainer;

            string funMessageResource = nameof(WhiskeySpiritFun);

            funMessageSource = new Helpers.MessageSource(Localization.Enums.MessageType.FUN, funMessageResource, ResourceContainer.Instance.GetAllResourceKeys(funMessageResource));
            string factMessageResource = nameof(WhiskeySpiritFacts);

            factMessageSource = new Helpers.MessageSource(Localization.Enums.MessageType.FACT, factMessageResource, ResourceContainer.Instance.GetAllResourceKeys(factMessageResource));
            messageBox        = Messages;

            vibrationPattern = new List <int>()
            {
                5000, 500, 5000, 500
            };

            //Set custom fluid sim.
            viscosityConstant *= 1.04f;
            fluidColor         = Color.FromHex("b46100");
            SetupFluidSim(WineContainer, "whiskey_staticbg.png");

            vm = (WhiskeyViewModel)BindingContext;
            vm.InitializeDefaults();
            glassHereContainer = GlassHereContainer;
        }
Esempio n. 2
0
        public RedWinePage()
        {
            InitializeComponent();

            startAerateButton       = StartAerateButton;
            stopAerateButton        = StopAerateButton;
            durationSlider          = DurationSlider;
            durationSliderContainer = DurationSliderContainer;

            string funMessageResource = nameof(RedWineFun);

            funMessageSource = new Helpers.MessageSource(Localization.Enums.MessageType.FUN, funMessageResource, ResourceContainer.Instance.GetAllResourceKeys(funMessageResource));
            string factMessageResource = nameof(RedWineFacts);

            factMessageSource = new Helpers.MessageSource(Localization.Enums.MessageType.FACT, factMessageResource, ResourceContainer.Instance.GetAllResourceKeys(factMessageResource));
            messageBox        = Messages;

            //Set custom fluid sim.
            fluidColor = Color.FromHex("8f0009"); // new Color(0.55f, 0, 0);
            SetupFluidSim(WineContainer, "red_wine_staticbg.png");

            vm = (RedWineViewModel)BindingContext;
            vm.InitializeDefaults();
            glassHereContainer = GlassHereContainer;
        }