示例#1
0
 // Constructor
 public MainPage()
 {
     GaugeRenderer.Init();
     InitializeComponent();
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new Gauges101.App());
 }
示例#2
0
        // Constructor
        public MainPage()
        {
            FlexGridRenderer.Init();
            GaugeRenderer.Init();
            CoreRenderer.Init();
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new FlexGrid101.App());
        }
示例#3
0
    protected override void InitValue()
    {
        gauge_   = Object.GetComponentInChildren <GaugeRenderer>();
        uigauge_ = Object.GetComponentInChildren <UIGaugeRenderer>();
        if (initialValue_ != null)
        {
            UpdateAnimValue();
            return;
        }
        if (gauge_ != null)
        {
            switch (Param)
            {
            case ParamType.GaugeLength:
                initialValue_ = (float)gauge_.Length;
                break;

            case ParamType.GaugeRate:
                initialValue_ = (float)gauge_.Rate;
                break;

            case ParamType.GaugeWidth:
                initialValue_ = (float)gauge_.Width;
                break;
            }
        }
        else if (uigauge_ != null)
        {
            switch (Param)
            {
            case ParamType.GaugeLength:
                initialValue_ = (float)uigauge_.Length;
                break;

            case ParamType.GaugeRate:
                initialValue_ = (float)uigauge_.Rate;
                break;

            case ParamType.GaugeWidth:
                initialValue_ = (float)uigauge_.Width;
                break;
            }
        }
    }
示例#4
0
 private void InitSprites()
 {
     m_spriteList  = new SpriteList(this);
     GaugeRenderer = new GaugeRenderer(P1_Active, P1_Character);
 }