- [NEW] Ajustat el color del propertygrid
- [NEW] Seccions en el propertygrid - [NEW] JA es mostren les propietats bàsiques de les habitacions
This commit is contained in:
@@ -122,10 +122,25 @@ bool loop()
|
||||
|
||||
tilemap::start();
|
||||
tilemap::draw();
|
||||
|
||||
char tmp[256];
|
||||
propertygrid::start();
|
||||
propertygrid::stringProperty("Peiv", "Teib");
|
||||
propertygrid::stringProperty("Peiv", "Teib");
|
||||
if (treeview::getSelected(0) > -1) {
|
||||
if (treeview::getSelected(2) == -1) {
|
||||
propertygrid::sectionProperty("ROOM:");
|
||||
propertygrid::stringProperty("NAME", room["room"]["name"].get_value<std::string>());
|
||||
propertygrid::stringProperty("BGCOLOR", room["room"]["bgColor"].get_value<std::string>());
|
||||
propertygrid::stringProperty("BORDER", room["room"]["border"].get_value<std::string>());
|
||||
propertygrid::stringProperty("TILESET", room["room"]["tileSetFile"].get_value<std::string>());
|
||||
propertygrid::stringProperty("ITEMCOL1", room["room"]["itemColor1"].get_value<std::string>());
|
||||
propertygrid::stringProperty("ITEMCOL2", room["room"]["itemColor2"].get_value<std::string>());
|
||||
propertygrid::stringProperty("CONVEYOR", SDL_itoa(room["room"]["autoSurface"].get_value<int>(), tmp, 10));
|
||||
propertygrid::sectionProperty("CONNECTIONS:");
|
||||
propertygrid::stringProperty("UP", room["room"]["connections"]["up"].is_null()?"null":room["room"]["connections"]["up"].get_value<std::string>()+": "+rooms[room["room"]["connections"]["up"].get_value<std::string>()]);
|
||||
propertygrid::stringProperty("DOWN", room["room"]["connections"]["down"].is_null()?"null":room["room"]["connections"]["down"].get_value<std::string>()+": "+rooms[room["room"]["connections"]["down"].get_value<std::string>()]);
|
||||
propertygrid::stringProperty("LEFT", room["room"]["connections"]["left"].is_null()?"null":room["room"]["connections"]["left"].get_value<std::string>()+": "+rooms[room["room"]["connections"]["left"].get_value<std::string>()]);
|
||||
propertygrid::stringProperty("RIGHT", room["room"]["connections"]["right"].is_null()?"null":room["room"]["connections"]["right"].get_value<std::string>()+": "+rooms[room["room"]["connections"]["right"].get_value<std::string>()]);
|
||||
}
|
||||
}
|
||||
propertygrid::end();
|
||||
|
||||
/*x1 += 6; x2 = x1 + font::len("FILE")+6;
|
||||
|
||||
Reference in New Issue
Block a user