- [NEW] fonts amb colorets

- [WIP] stringProperty
This commit is contained in:
2025-11-18 20:23:09 +01:00
parent f72311bb17
commit 57f9ed32e3
4 changed files with 18 additions and 3 deletions

View File

@@ -31,7 +31,18 @@ namespace propertygrid
std::string stringProperty(std::string label, std::string value)
{
const SDL_Point win_size = draw::getWindowSize();
const int x = win_size.x-propertygrid::width;
const int y = 48+line*24;
draw::setClip(x,y,propertygrid::width, 24);
draw::setColor(0xffffffff);
draw::fillrect(x,y,propertygrid::width, 24);
draw::setColor(0xffa0a0a0);
draw::line(x,71+line*24,win_size.x, y+23);
draw::line(x+propertygrid::width/2,y,x+propertygrid::width/2, y+23);
font::print(label.c_str(), x+8, y+9, 0xff000000);
line++;
return "";
}
void end()