コード例 #1
0
ファイル: TooltipWindow.cs プロジェクト: cerebrate/NanoGauges
            private void AlignToGauge()
            {
                int x = gauge.GetX();
                int y = gauge.GetY();

                if (x + TOOLTIP_WIDTH + 10 < Screen.width)
                {
                    SetPosition(x + gauge.GetWidth(), y);
                }
                else
                {
                    SetPosition(x - TOOLTIP_WIDTH, y);
                }
            }
コード例 #2
0
 public void SetWindowPosition(AbstractGauge gauge)
 {
     currentGaugeSet.SetWindowPosition(gauge.GetWindowId(), gauge.GetX(), gauge.GetY());
 }
コード例 #3
0
ファイル: SnapinManager.cs プロジェクト: cerebrate/NanoGauges
 public void snap(AbstractGauge gauge)
 {
     checkSnap(gauge, gauge.GetX(), gauge.GetY(), gauge.GetWidth(), gauge.GetHeight());
 }