- [NEW] fonts amb colorets
- [WIP] stringProperty
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user