Implementing GuiScrollPanel() -WIP-

This commit is contained in:
Ray
2019-01-09 00:43:33 +01:00
parent 0adc948ec1
commit ef9eb883d9
2 changed files with 73 additions and 14 deletions

View File

@ -36,8 +36,8 @@ int main()
{
// Initialization
//---------------------------------------------------------------------------------------
int screenWidth = 600;
int screenHeight = 600;
int screenWidth = 690;
int screenHeight = 540;
InitWindow(screenWidth, screenHeight, "raygui - controls test suite");
@ -83,6 +83,8 @@ int main()
int comboBoxActive = 1;
int toggleGroupActive = 0;
Vector2 viewScroll = { 0, 0 };
//----------------------------------------------------------------------------------
// Custom GUI font loading
@ -148,6 +150,8 @@ int main()
sliderBarValue = GuiSliderBarEx((Rectangle){ 320, 430, 200, 20 }, NULL, sliderBarValue, 0, 100, true);
progressValue = GuiProgressBarEx((Rectangle){ 320, 460, 200, 20 }, progressValue, 0, 1, true);
viewScroll = GuiScrollPanel((Rectangle){ 560, 25, 100, 160 }, (Rectangle){ 560, 25, 100, 400 }, viewScroll);
//GuiEnable();
GuiUnlock();
//----------------------------------------------------------------------------------