Пример #1
0
        // c'tor
        public WaterTool()
        {
            HelpOverlayID = @"MouseEditWaterRaiseLower";

            RightAudioStart  = delegate() { Foley.PlayRaiseWater(); };
            MiddleAudioStart = delegate() { };
            LeftAudioStart   = delegate() { Foley.PlayLowerWater(); };
            RightAudioEnd    = delegate() { Foley.StopRaiseWater(); };
            MiddleAudioEnd   = delegate() { };
            LeftAudioEnd     = delegate() { Foley.StopLowerWater(); };

            // We don't want to see any brush rendered for this tool.
            prevBrushIndex = -1;
        }   // end of c'tor
Пример #2
0
        // c'tor
        public WaterAdd()
        {
            Description     = Strings.Localize("tools.waterAdd");
            HelpOverlayID   = @"WaterAdd";
            IconTextureName = @"\UI2D\Tools\WaterAdd";

            RightAudioStart  = delegate() { Foley.PlayRaiseWater(); };
            MiddleAudioStart = delegate() { };
            LeftAudioStart   = delegate() { Foley.PlayLowerWater(); };
            RightAudioEnd    = delegate() { Foley.StopRaiseWater(); };
            MiddleAudioEnd   = delegate() { };
            LeftAudioEnd     = delegate() { Foley.StopLowerWater(); };

            // We don't want to see any brush rendered for this tool.
            prevBrushIndex = -1;
        }   // end of c'tor