public AUI_Slider_Horizontal(int X, int Y) { bkgLineWindow = new AUI_Window(X, Y, Width, 4); bkgLineWindow.rec_bkg.color = Assets.ForegroundColor; bkgLineWindow.rec_fore.color = Assets.BackgroundColor; text = new AUI_Text("0.15", X + 16 * 9 + 6, Y - 10, Assets.ForegroundColor); text.color = Assets.ForegroundColor; text.font = Assets.font; //this is what user clicks left/right of handle = new Int4(X, Y - 6, 4, 16); //this is what controls the clickable area hitbox = new Int4(X, Y - 10, Width, 24); //this gives user feedback they clicked somewhere clickLine = new Int4(X, Y - 3, 1, 10); //inits slider to start 0 clickX = X + 4; //inits slider to end 1.0 max //clickX = X + Width - 8; displayState = DisplayState.Closed; }
public AUI_Button(int X, int Y, int W, string Text) { color_over = Assets.OverColor; color_normal = Assets.ForegroundColor; color_over_text = Assets.OverColor; color_normal_text = Assets.TextColor; window = new AUI_Window(X, Y, W, 16); window.rec_bkg.color = color_normal; window.rec_fore.color = Assets.BackgroundColor; text = new AUI_Text(Text, X, Y, new Color(255, 255, 255, 0)); displayState = DisplayState.Closed; }