本文整理汇总了Java中itdelatrisu.opsu.ui.UI.drawScrollbar方法的典型用法代码示例。如果您正苦于以下问题:Java UI.drawScrollbar方法的具体用法?Java UI.drawScrollbar怎么用?Java UI.drawScrollbar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类itdelatrisu.opsu.ui.UI
的用法示例。
在下文中一共展示了UI.drawScrollbar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawResultScrollbar
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
/**
* Draws the scroll bar for the download result buttons.
* @param g the graphics context
* @param position the start button index
* @param total the total number of buttons
*/
public static void drawResultScrollbar(Graphics g, float position, float total) {
UI.drawScrollbar(g, position, total, maxResultsShown * buttonOffset, buttonBaseX, buttonBaseY,
buttonWidth * 1.01f, (maxResultsShown-1) * buttonOffset + buttonHeight,
Colors.BLACK_BG_NORMAL, Color.white, true);
}
示例2: drawDownloadScrollbar
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
/**
* Draws the scroll bar for the download information area.
* @param g the graphics context
* @param index the start index
* @param total the total number of downloads
*/
public static void drawDownloadScrollbar(Graphics g, float index, float total) {
UI.drawScrollbar(g, index, total, maxDownloadsShown * infoHeight, infoBaseX, infoBaseY,
infoWidth, maxDownloadsShown * infoHeight, Colors.BLACK_BG_NORMAL, Color.white, true);
}
示例3: drawScrollbar
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
/**
* Draws the scroll bar for the score buttons.
* @param g the graphics context
* @param pos the start button index
* @param total the total number of buttons
*/
public static void drawScrollbar(Graphics g, float pos, float total) {
UI.drawScrollbar(g, pos, total, SongMenu.MAX_SCORE_BUTTONS * buttonOffset, 0, baseY,
0, buttonAreaHeight, null, Color.white, false);
}