本文整理匯總了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);
}