1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
.............
.............
Font * font = sysMain.OpenFont("calibri.ttf", 10);
Color groundC = {80, 80, 80}, ground_onC = {220, 220, 220}, ground_clickC = {50, 50, 50}, textC = {255, 255, 255};
Texture * tex2 = texMain.CreateRGBTexture(ren, 250, 250, 32, {0, 0, 0});
fge::button myBtn;
Rect myBtnRect;
myBtnRect.h = 130;
myBtnRect.w = 25;
myBtnRect.x = 100;
myBtnRect.y = 100;
btnMain.CreateButton(myBtn, "test", ren, font, &myBtnRect, groundC, ground_onC, ground_clickC, textC);
.............
.............
|