コード例 #1
0
        /// <summary>
        /// This class is used to draw icons in a cascading fashion
        /// </summary>
        /// <returns>The correct offset for the new icon</returns>
        internal static int getIconXPosition()
        {
            int iconX = (int)DemiacleUtility.getWidthInPlayArea() - 134 - (46 * amountOfVisibleIcons);

            amountOfVisibleIcons++;
            return(iconX);
        }
コード例 #2
0
ファイル: LuckOfDay.cs プロジェクト: Juice805/UiModSuite
 /// <summary>
 /// Shifts the icon if there is a black border
 /// </summary>
 internal void adjustIconXToBlackBorder(object sender, EventArgsCurrentLocationChanged e)
 {
     icon = new ClickableTextureComponent("", new Rectangle(( int )DemiacleUtility.getWidthInPlayArea() - 134, 260, 10 * Game1.pixelZoom, 10 * Game1.pixelZoom), "", "", Game1.mouseCursors, new Rectangle(50, 428, 10, 14), Game1.pixelZoom);
 }